Order API endpoints
Update order state
Changed onUse 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}
Request
- Base URLhttps://apigateway.careemdash.com/pos/api/v1
- AuthOAuth 2Client credentialsToken URLhttps://identity.careem.com/tokenScopespos
- TypeScriptA function with typed inputs. Its response is checked against the schema.
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
Changes
- info
added the new optional request property
- info
added the required property
//to the response with the status
- info