> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.lettbestilt.no/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.lettbestilt.no/_mcp/server.

# Order cancelled

POST 

Sent when the restaurant cancels an order. `status` is always `CANCELLED`; `previousStatus` is the status before.

Reference: https://docs.lettbestilt.no/api-reference/webhooks/order-cancelled

## Request

### Headers

- `X-LettBestilt-Webhook-Id` (string, required) — The ID of the webhook subscription this delivery belongs to.
- `X-LettBestilt-Delivery-Id` (string, required) — Stable per event and subscription. Retries of the same event carry the same ID, so use it to skip events you have already handled.
- `X-LettBestilt-Webhook-Timestamp` (string, required) — Unix time in seconds when this attempt was signed. Reject old timestamps to stop replays.
- `X-LettBestilt-Webhook-Signature` (string, required) — `sha256=` followed by the hex HMAC-SHA256 of `{timestamp}.{raw body}`, keyed with the webhook's signing secret (`whsec_…`).

### Payload

- `event` (enum, required)
  - Allowed values: `ORDER_CANCELLED`
- `createdAt` (datetime, required) — When the event happened (ISO 8601, UTC).
- `data` (OrderStatusChangeData, required) — The `data` of an `ORDER_STATUS_CHANGED` or `ORDER_CANCELLED` event.

## Types

### OrderStatusChangeData

The `data` of an `ORDER_STATUS_CHANGED` or `ORDER_CANCELLED` event.

- `orderId` (string, required)
- `orderNumber` (integer, required)
- `publicToken` (string, required)
- `previousStatus` (enum, required) — The status of an order or reservation.
  - Allowed values: `PENDING`, `PENDING_APPROVAL`, `AWAITING_PAYMENT`, `PAID`, `CONFIRMED`, `PREPARING`, `READY_FOR_PICKUP`, `OUT_FOR_DELIVERY`, `COMPLETED`, `CANCELLED`, `FAILED`
- `status` (enum, required) — The status of an order or reservation.
  - Allowed values: `PENDING`, `PENDING_APPROVAL`, `AWAITING_PAYMENT`, `PAID`, `CONFIRMED`, `PREPARING`, `READY_FOR_PICKUP`, `OUT_FOR_DELIVERY`, `COMPLETED`, `CANCELLED`, `FAILED`