Skip to main content

Cancel Warehouse Order

Canceling an Warehouse order and only cancel order which has VERIFYING (IDLE) status

curl --request POST \
--url https://apistg.ahamove.com/api/v1/partner/warehouse/order/cancel \
--header 'content-type: application/x-www-form-urlencoded' \
--header 'Authorization: Bearer <Token STG>' \
--data-urlencode 'order_id=PARTNER_ABCXXXXXXXX' \
--data-urlencode 'comment=User hủy đơn'

HTTP Request

POST https://apistg.ahamove.com/api/v1/partner/warehouse/order/cancel

Support both x-www-form-urlencoded and data raw body type

Authorization

KeyValueDescription
AuthorizationBearer <TOKEN_STG>The user Token
KeyValue
Content-Typeapplication/x-www-form-urlencoded

Query Parameters

ParameterTypeRequiredDescription
order_idStringTrueWarehouse Order ID (PARTNER_ABCXXXXXXXX)
commentStringNoThe cancel reason

Response

JSON response example:

{}

Status-Code: 200 OK

Errors

CodeTextDescription
404Not Found- Token not found
- Order not found
402Not allowedNot authorized
406Not AcceptableOrder not in valid status
500Internal Server ErrorWe had a problem with our server. Try again later
503Service UnavailableWe're temporarily offline for maintenance. Please try again later