[Webhook]
POST
https://{order_platform_url}/orders/{id}/reject
[Webhook]
POST
https://{order_platform_url}/orders/{id}/rejectThis endpoint needs to be implemented on the order platform. This endpoint allows to mark an order as rejected. This can happen if the restaurant manually rejects the order, system auto rejects the order due mapping issue, out of stock items etc.
Path Parameters
Parameter | Type | Description |
---|---|---|
id | string | Unique identifier representing an order on the order platform |
Request Parameters
There are no request parameters for order started endpoint.
Request Example
{
"reason": "OUT_OF_ITEMS",
"note": "string"
}
Errors & Response Codes
Success Code
- 204 - Successful response OK
Failure Codes
Response Code Formats
This is the JSON format for the failure response codes.
{
"code": "INTERNAL_SERVER_ERROR",
"message": "string",
"errors": {
"additionalProp1": {}
},
"timestamp": "string"
}