Order Rejected

[Webhook] POST https://{order_platform_url}/orders/{id}/reject

This 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

ParameterTypeDescription
idstringUnique 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

  • 400 - Bad request
  • 404 - Resource not found
  • 500 - Internal server error

Response Code Formats

This is the JSON format for the failure response codes.

{
   "code": "INTERNAL_SERVER_ERROR",
   "message": "string",
   "errors": {
     "additionalProp1": {}
   },
   "timestamp": "string"
}