HAAT Integration Docs

Cancel order

Cancel a DaaS delivery order.

PUT/api/daas/orders/{orderId}/cancel

No body. Denied if the order is already picked up or delivered.

Example:

Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9…
PATH SCHEMA
orderIdrequired
integer

HAAT order id from Submit order.

RESPONSE BODY SCHEMA: application/json
status
string

For example success.

message
string | null

Human-readable result.

data
object | null

Usually null on this call.

Responses

200 — Cancel result

status is success when the order is cancelled.

400 — Already picked up or delivered

You cannot cancel after pickup or delivery.

Request example
cURL
bash
curl -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}

Type to search…

↑↓ navigate↵ openesc close