The third-party system implements the order cancel method according to the definition of the interface and shifts it into service. The Fliggy system will cancel the order by calling the order cancel service from the third party in a real time manner.
POST https://{vendor's host}/cancelOrder
O: Optional; R: Required; SR: Special Required
Name | Type | O/R/SR | Limitation | Description | Example |
---|---|---|---|---|---|
TaoBaoOrderId |
long |
R |
|
Taobao order id |
123455 |
OrderId |
String |
O |
64 |
OTA order id or order id in third party system |
OTA21544874 |
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <CancelOrderRequest> <AuthenticationToken> <Username>taobao</Username> <RequestTimestamp>1499927639</RequestTimestamp> <Signature>8a52844e60f67107492d61453976c4c18a4db44e35d4ae9175359515ad0183e4</Signature> </AuthenticationToken> <TaoBaoOrderId>21544874</TaoBaoOrderId> <OrderId>21544874</OrderId> </CancelOrderRequest>
Name | Type | O/R/SR | Limitation | Description | Example |
---|---|---|---|---|---|
OrderId |
String |
R |
64 |
The order id in the OTA system or the third party system |
OTA3245534 |
CancelFee |
Decimal |
O |
The pennalty of the cancellation, if any-deprecated |
23.34 |
|
CurrencyCode |
String |
O |
The currency code of the penalty amount, if any- |
CNY |
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <CancelOrderResponse> <ResponseTimestamp>32423532523</ResponseTimestamp> <OrderId>21544874</OrderId> <CancelFee>34.56</CancelFee> <CurrencyCode>CNY</CurrencyCode> </CancelOrderResponse>