Skip to navigation

Order created

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.

Headers

X-LettBestilt-Webhook-IdstringRequired
The ID of the webhook subscription this delivery belongs to.
X-LettBestilt-Delivery-IdstringRequired
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-TimestampstringRequired
Unix time in seconds when this attempt was signed. Reject old timestamps to stop replays.
X-LettBestilt-Webhook-SignaturestringRequired

sha256= followed by the hex HMAC-SHA256 of {timestamp}.{raw body}, keyed with the webhook’s signing secret (whsec_…).

Payload

The payload of this webhook request is an object.
eventenumRequired
Allowed values:
createdAtdatetimeRequired

When the event happened (ISO 8601, UTC). Use it to order events.

dataobjectRequired

The data of an ORDER_CREATED event.

Response

200

Respond with any 2xx status within 5 seconds to acknowledge the event.