Cancel order by tracking_number
Cancel order for partner#
This api is used to cancel order by tracking_number for partnerKey | Value | Description |
---|
Content-Type | application/json | |
Authorization | Bearer {token} | Partner token |
Key | Type | Required | Description |
---|
tracking_number | string | true | Tracking number of order |
comment | string | true | Reason to cancel order |
cancel_code | string | true | Cancel code |
* HTTP Code: 200
* JSON body formatHTTP Status | Code | Meaning |
---|
406 | INVALID_ORDER_STATUS | Order status is not valid |
404 | ORDER_NOT_FOUND | Order does not exist |
Request
Provide your bearer token in the Authorization
header when making requests to protected resources. Example:Authorization: Bearer ********************
Body Params application/json
{
"tracking_number": "HD00001",
"comment": "Khách hàng muốn hủy đơn"
}
Request Code Samples
curl --location --request DELETE 'https://partner-apistg.ahamove.com//v3/orders/tracks' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"tracking_number": "HD00001",
"comment": "Khách hàng muốn hủy đơn"
}'
Responses
application/json Modified at 2025-09-23 15:35:01