# Cancel a booking

`POST /bookings/{id}/cancel` · Rivier · bookings

Cancel a booking. Shows what the policy makes of it; a dry run changes nothing. Refunds and fees are separate, approved steps.

- Scope: bookings:write
- Mcp: rivier_booking_cancel
- Graphql: Mutation.cancelBooking
- Sdk: bookings.booking.cancel
- Cli: bookings booking cancel
- Events: bookings.booking.cancelled

## Parameters

- `id` (path, required), string
- `dryRun` (query), string

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "reason": {
      "type": "string",
      "maxLength": 300,
      "default": ""
    }
  },
  "additionalProperties": false
}
```

## Responses

- `200`: Success
- `400`: The request was malformed
- `401`: No valid credential
- `403`: The credential lacks the scope, origin or address
- `429`: Over the key's rate limit; see Retry-After

## Example

```sh
curl -X POST 'https://api.rivier.ai/bookings/{id}/cancel' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "reason": ""
}'
```
