Status: Cancel Delivery
POST /CancelDelivery
You can use this to undo the delivery status of an order that has been sent out for delivery. If the previous status before delivery was Prepared, it returns to Prepared status, otherwise it returns to Preparing status.
If the order's current status is closed, you will get the error Order status is not suitable for performing the operation.
Example Request
Cancel delivery operation
curl -X POST 'https://ext.adisyo.com/api/External/v2/CancelDelivery' \
--header "x-api-key: ..." \
--header "x-api-secret: ..." \
--header "x-api-consumer: ..." \
--header 'Content-Type: application/json' \
--data '{
"orderId": 4815162342
}'Request Parameters
| Parameter | Data Type | Description |
|---|---|---|
orderId | Number | Adisyo ID of the order whose delivery status will be undone |
Example Response
Delivery cancelled response
{
"status": 100,
"message": "İşlem Başarılı"
}