Key | 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 Status | Code | Meaning |
---|---|---|
406 | INVALID_ORDER_STATUS | Order status is not valid |
404 | ORDER_NOT_FOUND | Order does not exist |
Authorization: Bearer ********************
{
"tracking_number": "HD00001",
"comment": "Khách hàng muốn hủy đơn"
}
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"
}'
{}