[Webhook]
POST
https://{logistics_platform_url}/delivery-jobs/{id}/cancellations
[Webhook]
POST
https://{logistics_platform_url}/delivery-jobs/{id}/cancellationsThis endpoint needs to be implemented on the order platform. This endpoint allows GrubOne to indicate an order coming from the order platform is canceled by the partner.The logistic platform can either honor or deny this request based on the current status of the order.
Path Parameters
Parameter | Type | Description |
---|---|---|
id | string | Delivery job id provided by the external party to Grubtech. |
Request Parameters
There are no request parameters for cancel delivery endpoint.
Errors & Response Codes
Success Code
- 201 - Successful response OK
Failure Codes
- 400 - Bad request
- 422 - Error in delivery cancellation.
- 500 - Internal server error
Response Code Formats
This is the JSON format for the failure responses.
{
"code": "CANCELLATION_REJECTED",
"message": "string",
"errors": {
"additionalProp1": {}
},
"timestamp": "string"
}