# Cancel by the signed link; the policy decides the money

`POST /public/bookings/link/cancel` · Rivier · bookings

Cancel by the signed link; the policy decides the money.

- Scope: bookings:read
- Graphql: Mutation.cancelPublicBooking
- Sdk: bookings.public.cancel
- Cli: bookings public cancel
- Events: bookings.booking.cancelled
- Publishable: yes

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "token": {
      "type": "string",
      "minLength": 10,
      "maxLength": 4000
    },
    "reason": {
      "type": "string",
      "maxLength": 300,
      "default": ""
    }
  },
  "required": [
    "token"
  ],
  "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/public/bookings/link/cancel' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "token": "string"
}'
```
