> 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 created

POST 

Sent when a new takeaway order is created. Online orders are sent while they still wait for payment (`status: "AWAITING_PAYMENT"`); `ORDER_PAID` follows when the payment is confirmed. If the customer never pays, no further event is sent. Cash orders arrive as `CONFIRMED`.

`estimatedReadyAt` is the kitchen's estimate including rush, and `requestedPickupAt` is the agreed time for a pre-order. They are the same times the tracking page shows.

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

## 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_CREATED`
- `createdAt` (datetime, required) — When the event happened (ISO 8601, UTC). Use it to order events.
- `data` (OrderCreatedData, required) — The `data` of an `ORDER_CREATED` event.

## Types

### OrderCreatedData

The `data` of an `ORDER_CREATED` event.

- `orderId` (string, required) — The order's ID, the same as `orderId` from `POST /orders`.
- `orderNumber` (integer, required) — The number the restaurant and the customer see.
- `publicToken` (string, required) — Use it with `GET /orders/{token}`.
- `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`
- `total` (integer, required) — The total in øre.
- `fulfillment` (enum, required)
  - Allowed values: `PICKUP`, `DELIVERY`
- `paymentMethod` (enum, required) — The `paymentMethod` the order was created with. `STRIPE` means online payment through SagaPay.
  - Allowed values: `STRIPE`, `CASH`, `VIPPS`
- `estimatedReadyAt` (datetime, required, nullable) — The kitchen's estimate including rush (ISO 8601, UTC).
- `requestedPickupAt` (datetime, required, nullable) — The agreed time for a pre-order, otherwise `null`.