---
title: Cancel a single seat
description: "Cancels one seat by its reference uid: the booking_seats row AND its attendee are hard-deleted (the booking row is the surviving record)."
api_method: POST
api_path: "/v1/bookings/seats/{referenceUid}/cancel"
canonical_url: https://wiblo.app/docs/developers/api/seats/cancel-booking-seat
last_updated: 2026-07-28T18:08:25+02:00
md_url: https://wiblo.app/docs/developers/api/seats/cancel-booking-seat.md
---

# Cancel a single seat

`POST /v1/bookings/seats/{referenceUid}/cancel`

Cancels one seat by its reference uid: the booking_seats row AND its attendee are hard-deleted (the booking row is the surviving record). Cancelling the LAST seat cancels the whole 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 returns to availability immediately, and a partially-freed slot regains a seat. Authorized for the booking's organizer, any of its hosts, and workspace owners/admins; unknown and cross-workspace references collapse onto 404 `SEAT_NOT_FOUND`. Per-user rate-limited at 30/60s.

## Path parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `referenceUid` | `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); recorded in the booking's `cancellation_reason` only when this was the last seat and the whole booking cancelled. |

## Request

**curl**

```bash
curl https://api.wiblo.app/v1/bookings/seats/c8e2b5f9-3d7a-4f6c-9b1e-4a7d2c8f5b3e/cancel \
  -X POST \
  -H "Authorization: Bearer $WIBLO_TOKEN" \
  -H "X-Wiblo-Workspace: $WIBLO_WORKSPACE_ID" \
  -H "Content-Type: application/json" \
  -d '{
  "reason": "Attendee can no longer make the session"
}'
```

**TypeScript**

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

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

const { data, error } = await cancelBookingSeat({
  client: sdk,
  path: { referenceUid: "c8e2b5f9-3d7a-4f6c-9b1e-4a7d2c8f5b3e" },
  headers: { "X-Wiblo-Workspace": "..." },
  body: {
    "reason": "Attendee can no longer make the session"
  },
})
```

## Example response

```json
{
  "seat": {
    "booking_id": "e4a7c2d9-6b1f-4d8e-9a3c-5f2b8d7e4c1a",
    "booking_uid": "f2b8e5c1-9d4a-4c7f-b6e3-1a8d5f2c9b7e",
    "seat_cancelled": true,
    "booking_cancelled": false,
    "remaining_seats": 5,
    "message": "Seat cancelled successfully"
  }
}
```

## Responses

**`200`** — The seat was cancelled. `booking_cancelled: true` means it was the last seat and the whole booking went with it. Returns `CancelSeatResponse`.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `seat` | `object` | Yes | The seat-cancel outcome. |
| `seat.booking_id` | `string` | Yes | Id of the booking the seat was on. |
| `seat.booking_uid` | `string` | Yes | Public uid of the booking the seat was on. |
| `seat.seat_cancelled` | `boolean` | Yes | `true` on success — the seat row and its attendee were hard-deleted (the booking row is the surviving record). |
| `seat.booking_cancelled` | `boolean` | Yes | `true` when this was the last seat and the whole booking was cancelled with it. |
| `seat.remaining_seats` | `integer` | Yes | Seats left on the booking after the cancel; `0` when the booking cancelled. |
| `seat.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 seat with this reference uid in this workspace (`SEAT_NOT_FOUND` — cross-workspace references 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`.
