---
title: Cancel a booking
description: "Soft-deletes a single booking: status flips to cancelled, cancelled_by records the acting member, the optional reason lands in cancellation_reason, and ical_sequence jumps by 100."
api_method: POST
api_path: "/v1/bookings/{uid}/cancel"
canonical_url: https://wiblo.app/docs/developers/api/bookings/cancel-booking
last_updated: 2026-07-28T18:08:25+02:00
md_url: https://wiblo.app/docs/developers/api/bookings/cancel-booking.md
---

# Cancel a booking

`POST /v1/bookings/{uid}/cancel`

Soft-deletes a single booking: status flips to `cancelled`, `cancelled_by` records the acting member, the optional `reason` lands in `cancellation_reason`, and `ical_sequence` jumps by 100. The freed slot becomes bookable again immediately. Authorized for the booking's organizer, any of its hosts, and workspace owners/admins. Series cancellation rides with recurring bookings (WIBLO-132). Per-user rate-limited at 30/60s.

## Path parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `uid` | `string` | Yes |  |

## Headers

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `X-Wiblo-Workspace` | `string` | Yes | Workspace id the call is scoped to. The actor must hold an active membership in it; a foreign or unknown id collapses onto 404 WORKSPACE_NOT_FOUND. |

## Request body

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `reason` | `string` | No | Optional cancellation reason (max 500 characters); it lands in the booking's `cancellation_reason`. |

## Request

**curl**

```bash
curl https://api.wiblo.app/v1/bookings/f2b8d4a6-9e1c-4c7b-8f3a-5d0e9b2c6a4e/cancel \
  -X POST \
  -H "Authorization: Bearer $WIBLO_TOKEN" \
  -H "X-Wiblo-Workspace: $WIBLO_WORKSPACE_ID" \
  -H "Content-Type: application/json" \
  -d '{
  "reason": "Client is travelling that week"
}'
```

**TypeScript**

```ts
import { createSdk, cancelBooking } from "@workspace/sdk"

const sdk = createSdk({ baseUrl: "https://api.wiblo.app" })

const { data, error } = await cancelBooking({
  client: sdk,
  path: { uid: "f2b8d4a6-9e1c-4c7b-8f3a-5d0e9b2c6a4e" },
  headers: { "X-Wiblo-Workspace": "..." },
  body: {
    "reason": "Client is travelling that week"
  },
})
```

## Example response

```json
{
  "booking": {
    "booking_id": "a7c3e9f1-2b5d-4e8a-9c1f-6d3b8a5e2c7f",
    "booking_uid": "f2b8d4a6-9e1c-4c7b-8f3a-5d0e9b2c6a4e",
    "status": "cancelled",
    "cancelled": true,
    "message": "Booking cancelled successfully"
  }
}
```

## Responses

**`200`** — The booking was cancelled (idempotent — cancelling an already-cancelled booking succeeds again). Returns `CancelBookingResponse`.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `booking` | `object` | Yes | The cancel outcome. |
| `booking.booking_id` | `string` | Yes | Unique id of the cancelled booking. |
| `booking.booking_uid` | `string` | Yes | Public uid of the cancelled booking. |
| `booking.status` | `"cancelled"` | Yes | Always `cancelled`. |
| `booking.cancelled` | `boolean` | Yes | `true` on success — the booking's status flipped to `cancelled`. |
| `booking.message` | `string` | Yes | Human-readable outcome message. |

**`400`** — Body failed Zod validation or the `X-Wiblo-Workspace` header was missing (`VALIDATION_FAILED`). Returns `ApiErrorEnvelope`.

**`401`** — No valid session cookie or `wbl_*` bearer was present. Returns `ApiErrorEnvelope`.

**`403`** — The actor is neither the booking's organizer, one of its hosts, nor an owner/admin (`BOOKING_FORBIDDEN`). Returns `ApiErrorEnvelope`.

**`404`** — No booking with this uid in this workspace (`BOOKING_NOT_FOUND` — cross-workspace uids collapse here) or the workspace collapsed (`WORKSPACE_NOT_FOUND`). Returns `ApiErrorEnvelope`.

**`429`** — Rate limit exceeded. The body's `error.code` is `RATE_LIMITED` and `error.details.retry_after` is the same number of seconds as the `Retry-After` header. Returns `ApiErrorEnvelope`.
