Cancel order
Cancel a DaaS delivery order.
PUT
/api/daas/orders/{orderId}/cancelNo body. Denied if the order is already picked up or delivered.
Example:
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9…
PATH SCHEMA
orderIdrequiredRESPONSE BODY SCHEMA: application/json
statusmessagedataResponses
200 — Cancel result
200 — Cancel result
status is success when the order is cancelled.
400 — Already picked up or delivered
400 — Already picked up or delivered
You cannot cancel after pickup or delivery.
Request example
cURL
bashcurl -X PUT http://ext-integration.haat-delivery.io/api/daas/orders/5887966/cancel \
-H "Authorization: Bearer YOUR_TOKEN"Response example
200
json{"status":"success","message":null,"data":null}