Event types


The full catalog of webhook events. The vocabulary carries the truth: order.unconfirmed is first-class, and must never be collapsed into order.failed.

EventMeaning
order.buildingThe order was accepted and the cart is being built.
order.cartedThe cart is priced and ready. Carries the store's name and address, how many items it holds, and the store's total, without Layout's service fee. A cart you canceled while it was building is never sent as order.carted: it ends with one order.failed carrying USER_CANCELED.
order.placingThe person confirmed; Layout is submitting to the merchant.
order.placedThe order reached the merchant, with evidence. Fires only on a confirmed placement.
order.failedNot placed. order.failure_code says why. A ready cart nobody confirmed before expiresAt is CART_EXPIRED. A failed order can still show a pending hold: see Holds on a failed order.
order.unconfirmedPlacement is genuinely uncertain. Do not retry it, automatically or by hand, and do not treat it as failed. Wait for order.placed or read GET /v1/orders/:id. That is the double-charge trap. Layout keeps following the order, and order.placed can follow once it learns the outcome, for instance when the restaurant's receipt arrives.
order.updatedMore pickup details arrived after placement (name, time, order number, instructions), or a delivery reached a step: see Delivery steps. It can come several times, each with its own event_id: see More than one order.updated. Read the order again on each one. order.state stays placed, and it is sent only for an order whose order.placed was sent to you.
order.refundedMoney went back to the person. order.refunded_minor is this one refund and order.method says where it went. order.state does not change. See order.refunded. Add it to a subscription’s events to receive it.
order.challengeLayout texted the person a link to approve this purchase, and it is waiting on them. A pause, not a new state: order.state is where the order was when it paused, which is building, carted or placing. Sent once per order, and only while the order is still in flight.
order.needs_approvalReserved. Not sent.
reservation.updatedA reservation's state or next changed. Early access. See reservation.updated.

Example payload

Every order event carries the same payload, whatever its type, on a webhook and in GET /v1/events. It never carries item names, modifiers or card data: read GET /v1/carts/:id for a cart's items and GET /v1/orders/:id for the order.

{
  "event": "order.carted",
  "event_id": "evt_7c21e4b9a0d3_carted",
  "delivery_id": "dl_351eacf74201",
  "order": {
    "id": "ord_7c21e4b9a0d3",
    "state": "carted",
    "store": "Layout test kitchen",
    "store_address": "1 Sandbox Way, San Francisco, CA 94107",
    "items": 2,
    "total_minor": 2140,
    "currency": "usd"
  },
  "user": { "id": "usr_4b8e9a01c2d3" },
  "occurred_at": "2026-09-10T17:01:05Z",
  "sent_at": "2026-09-10T17:01:07Z"
}
FieldNotes
eventThe event type (not type).
event_idThe event: this order reaching this state, one wave of order.updated, or one refund for order.refunded. Every delivery of it, to every endpoint, on every retry and replay, carries the same id. Deduplicate on it and treat it as opaque.
delivery_idThis delivery (not id). A retry keeps it; a replay gets a new one.
order.idThe same ord_ id GET /v1/orders/:id returns. The order is nested under order (not data).
order.store, order.store_addressThe store's name and address. store_address is null when Layout does not know it, and always null when store is.
order.itemsHow many items the order holds.
order.total_minorThe store's total in minor units, without Layout's service fee, the same as on GET /v1/orders/:id. Null until the cart is priced. The cart's totalMinor includes the fee, and the order's charged_minor is what the card was charged.
order.failure_codeOn order.failed only: the same code GET /v1/orders/:id returns as failure_code, or null when Layout recorded none.
order.ready_eta, order.ready_at, order.fulfillmentOn order.updated only: the values GET /v1/orders/:id returns when the event is written. ready_at is the pickup time as an instant, or null when Layout cannot pin the store’s words to its clock. Absent when Layout could not read the order then.
order.refunded_minor, order.methodOn order.refunded only: the amount of this one refund in minor units, and card or credit.
order.simulatedtrue on a simulated sandbox order. See Simulated orders.
testtrue on a console test delivery, a fired test event and endpoint.verification.
user.idThe usr_ id you provisioned. For a person who connected through your OAuth client, a usr_ id that is stable for your application and differs in every other one; POST /v1/users/:id/grant does not accept it.
occurred_at, sent_atWhen the order changed, and when Layout wrote the delivery (kept on a retry, restamped on a replay). Order events by occurred_at, never by arrival.

simulated and test are absent, never false, when not true. endpoint.verification has its own shape with no order or user: see Endpoint verification.

order.refunded

Sent for each refund on an order. It changes no state, so an order that was placed stays placed; the deprecated refunded state is never sent. order.refunded_minor is the amount of this refund, in minor units, and order.method is card when it goes back to the person’s card, or credit when it is Layout credit on their account. GET /v1/orders/:id refunded_minor is the total refunded so far. A second refund has its own event_id, ending _2, so de-duplicate on event_id.

It is not part of any subscription you already have: edit the subscription and add it to its events.

More than one order.updated

Every other event but order.refunded, which comes once per refund, is sent at most once per order. order.updated is sent once for each wave of pickup details that fills a detail the order did not have yet. A detail already there is never replaced. A delivery order also sends it at some delivery steps, numbered with the waves.

Waveevent_id
Firstevt_7c21e4b9a0d3_updated
Secondevt_7c21e4b9a0d3_updated_2
Third, and so onevt_7c21e4b9a0d3_updated_3
  • De-duplicating on event_id keeps every wave, because each has its own id. A retry or a replay of one wave keeps that wave's id.
  • Do not key on the order id and the event type together: that drops the second wave and everything after it.
  • GET /v1/events?after=evt_7c21e4b9a0d3_updated_2 resumes right after that wave.
  • On each one, read GET /v1/orders/:id and show what it has now. The pickup time is often the last detail to arrive: see Pickup time.
  • Test it with test_place_pickup_later, which sends two.

Delivery steps

A delivery order sends order.updated at some of its steps, not at every one. There is no other event for delivery, and no order.delivered. Each one carries order.fulfillment as GET /v1/orders/:id returns it when the event is written, and order.state stays placed.

Stepfulfillment then readsSent
The driver has the food and is on the waystatus on_the_wayYes
The driver is closestatus arrivingOnly when the cart's handoff was meet_at_door
Delivered, or left at the doorstatus deliveredYes
The driver could not finishstatus failed, with failure_reasonYes
No driver could be bookedtype pickup, with changed_from "delivery"Yes
Finding a driver, heading to the store, at the storefinding_courier, heading_to_store, at_storeNever
A driver canceled before collecting the food, and Layout books anotherstatus finding_courier againNever
The door photo lands after deliveredproof_photo_url setNever
  • Steps only move forward, in the order of the table. Each is sent at most once, and once one is sent no earlier one is. When the first step Layout sees is delivered, on_the_way is never sent.
  • The steps you receive are the same whether Order notifications is on or off for your application (see Texts Layout sends). While it is on and Layout can text the person, on_the_way, arriving and delivered reach you once Layout’s text for that step has gone out. When a text fails, the event waits for Layout to send it again. A delivery the driver left at the door because they could not reach the person does not wait.
  • Delivery steps share the numbering of the pickup waves. After two waves of pickup details, on_the_way is evt_7c21e4b9a0d3_updated_3. De-duplicate on event_id, and order by occurred_at.
  • An order sends at most 10 order.updated, pickup waves and delivery steps together. Past that nothing more is sent.
  • Between events, and for every step marked never, the order changes without telling you. While fulfillment.type is delivery and fulfillment.status is neither delivered nor failed, read GET /v1/orders/:id for the live status, eta and courier. Stop on any other read, including a type of pickup, which has no status. It shares a per-minute ceiling with GET /v1/orders: see limits.

Which orders send events

Events fire for orders your application caused, and only those:

  • Orders built for a user you provisioned, through a build session from POST /v1/users/:id/grant.
  • Orders a person placed through an OAuth client you created in the console, while they are still connected to it.

An order a person placed on their own, or through anyone else's app, never reaches you. Layout sends no event when a person is disconnected.

reservation.updated

Sent when a reservation's state or next changes, for reservations your application made, including when it ends unresolved. Add it to a subscription's events; only an application in early access can.

{
  "event": "reservation.updated",
  "event_id": "evt_5d0c2b1e8a4f4c3e9b7a2f1e0d9c8b7a_reservation_2",
  "delivery_id": "dl_6c0e2b91f4a7",
  "reservation": { "id": "rsv_5d0c2b1e8a4f4c3e9b7a2f1e0d9c8b7a", "state": "booked", "version": 1763143300502, ... },
  "user": { "id": "usr_4b8e9a01c2d3" },
  "occurred_at": "2026-11-14T18:01:40Z",
  "sent_at": "2026-11-14T18:01:41Z"
}
FieldNotes
event_idevt_, the 32 characters after rsv_, then _reservation for the first change, then _2, _3, up to 50 per reservation. Deduplicate on it and treat it as opaque.
reservationThe Reservation, exactly as the API answers it. Not order.
user.idThe usr_ id you provisioned.
delivery_id, occurred_at, sent_atAs on order events.
  • Signed, retried and replayed like order events.
  • It cannot be fired as a test event: POST /v1/sandbox/webhooks/fire answers 400 invalid_request, and the console's Send test event sends order.placed. To see one, book a sandbox place.
  • Order them by the number at the end of event_id (none is 1), never by arrival. reservation.version never decreases but can tie.
  • GET /v1/events carries it, and after takes its event_id. Filtering with event=reservation.updated is not available yet.

Simulated orders

A simulated sandbox order carries "simulated": true in its order object: nothing went to the restaurant and nothing was charged. A sandbox order built from the menu Layout holds, or at a test restaurant, carries it on every event, from order.building on. A sandbox order built with "engine": "real" carries it once its confirm is simulated, and not on its events before that. On every other delivery the key is absent, never false, so test for true. GET /v1/orders/:id follows the same rule.