v1
latestOpenAPI 3.0.12026-08-062555238.4 KBOrder API endpoints
Update order state
Use this endpoint to accept/cancel an order or mark an order as ready for pickup.
Unavailable Items
When cancelling an order due to item unavailability (e.g. ITEM_PERMANENTLY_NOT_AVAILABLE or ITEM_TEMPORARILY_UNAVAILABLE), you can optionally provide the list of unavailable items in the unavailable_items field.
This data is used to drive future decisions such as automatically snoozing items that are temporarily out of stock, preventing them from appearing on the menu until they are available again.
Example request body:
{
"state": "cancelled",
"cancellation_reason": "ITEM_TEMPORARILY_UNAVAILABLE",
"unavailable_items": [
{
"item_id": "item-123",
"item_type": "item"
},
{
"item_id": "modifier-456",
"item_type": "modifier_option"
}
]
}
put/orders/{order_id}
Path parameters
order_idinteger required
Headers
Authorizationstring required
User-Agentstring required
Brand-Idstring
Branch-Idstring required
Request body
Example request
{
"state": "cancelled",
"cancellation_reason": "ITEM_TEMPORARILY_UNAVAILABLE",
"unavailable_items": [
{
"item_id": "item-123",
"item_type": "item"
}
]
}Response
Order state updated successfully