Deny Order
POSThttps://api.uber.com/v1/eats/orders/{order_id}/deny_pos_order
This endpoint allows a developer to reject an order coming from Uber on behalf of a merchant. This does not necessarily cancel the order immediately, as the store might still want to accept orders on their in-store tablet. You must be the store’s nominated order manager app to call this endpoint.
¶ Authorization
OAuth 2.0 Bearer token with the eats.order
scope. For more information, see Authentication.
¶ Path Parameters
Name | Type | Description |
---|---|---|
order_id |
string |
Unique identifier representing an order on Uber Eats. |
¶ Request Example
{
"reason": {
"explanation":"failed to submit order",
"code":"ITEM_AVAILABILITY",
"out_of_stock_items":[
"540cb880-0286-417b-9c6c-be586fd50f76",
"094f3308-4389-4ce5-bf30-ce9e09c6ed1c"
],
"invalid_items":[
"1cd26db9-6be3-4b0a-9216-e4868c5d79ec"
]
}
}
¶ Request Body
Name | Type | Description |
---|---|---|
reason |
object |
Object containing details about the order denial. |
reason.explanation |
string |
Reason or note for denial. |
reason.code |
string enum |
Reason code from set list of possible predefined values. Examples for each can be found here. |
reason.out_of_stock_items |
array[] (optional) |
Array of identifiers of out of stock items. |
reason.invalid_items |
array (optional) |
Array of identifiers of invalid items. |
¶ Response
Status-Code: 204 No Content
This endpoint returns an empty response body.
¶ Request Body - Allowed Reason Codes
Reason Code | Examples |
---|---|
STORE_CLOSED |
|
POS_NOT_READY |
|
POS_OFFLINE |
|
ITEM_AVAILABILITY |
|
MISSING_ITEM |
|
MISSING_INFO |
|
PRICING |
|
CAPACITY |
|
ADDRESS |
|
SPECIAL_INSTRUCTIONS |
|
OTHER |
|