# The restaurant accepted an order EVENT `order.accepted` `pickupAt` is the time the restaurant promised, `deliveryAt` its drop-off time (deliveries only), `prepMinutes` the minutes from acceptance to `pickupAt`. They are present when the restaurant set a time. ## Headers - `X-Partner-Signature` (string, required) `t=,v1=.")>`, one `v1=` per active secret (two during a rotation; the key is the whole `whsec_…` string). Recomputed at every attempt. Verify against the raw body, reject `t` more than 300 s off, compare in constant time. - `X-Partner-Event-Id` (string, required, pattern: `^evt_`) The event's `id`; deduplicate by it. - `X-Partner-Event-Type` (string, required, `order.accepted` | `order.ready` | `order.completed` | `order.rejected` | `order.cancelled` | `menu.updated` | `store.status_changed` | `connection.revoked`) ## Payload `application/json` - `id` (string, required, pattern: `^evt_`) - `type` (string, required, Value: `order.accepted`) - `createdAt` (string, required, format: date-time) - `connectionId` (string, required, pattern: `^pc_[0-9a-f]{20}$`) - `data` (object, required) - `orderId` (string, required, pattern: `^oo_[0-9a-f]{64}$`) Our order id - `externalId` (string, required, pattern: `^[A-Za-z0-9._~-]{1,64}$`) Your order id, unique per connection - `version` (integer, required, ≥ 2) - `occurredAt` (string, required, format: date-time) - `status` (string, required, Value: `accepted`) - `pickupAt` (string, optional, format: date-time) The time the restaurant promised - `deliveryAt` (string, optional, format: date-time) Drop-off time (deliveries only) - `prepMinutes` (integer, optional, ≥ 0) Minutes from acceptance to pickupAt ## Expected response ### 200 — Stored. Answer `2xx` within 3 s, as soon as the event is stored. Timeouts, network errors, `429` and `5xx` are retried (`Retry-After` first; else after about 1, 2, 10 min, then every 30 min, for 24 h). Other `4xx` and every `3xx` are final. ## Payload — Example ```json { "id": "evt_6f1c2d3e4f5a6b7c", "type": "order.accepted", "createdAt": "2026-10-15T10:05:00.000Z", "connectionId": "pc_3f1c0a9e5b7d2c4f6a81", "data": { "orderId": "oo_5c1e2d3f4a5b6c7d8e9f0a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d", "externalId": "A-1001", "version": 2, "status": "accepted", "occurredAt": "2026-10-15T10:05:00.000Z", "pickupAt": "2026-10-15T10:35:00.000Z", "prepMinutes": 30 } } ```