Order Completion
Update Date: 2020-09-28 Mandatory Online test(Sandbox)
Summary
- This interface is used to inform Ctrip that the order is complete after the driver service is completed. If the Vendor does not receive the return message from Ctrip, the vendor should retry 3 times in 5 seconds.
- Please do not call this interface before the driver status is service finished, and Ctrip will verify the order status.
API address
API address Format: {Domain}/JNT-{vendorID}/order/complete/2.0/{ctripPurchaseOrderID}/{timeStamp}/{sign}
Request Payload
CompleteOrderRequest
Parameter | Type | Required | Description | Example | Note |
---|---|---|---|---|---|
ctripPurchaseOrderID | Long | Y | Ctrip Purchase Order ID | 881823967638342968 | 18 digital |
vendorOrderID | String | Y | Vendor's Order ID | Provide by Vendor |
Response Payload
CompleteOrderResponse
Parameter | Type | Required | Description | Example | Note |
---|---|---|---|---|---|
msgCode | String | Y | Response Code | OK | Response Code |
message | String | N | Response Detail | Success | Response Code |
Request Example
{
"ctripPurchaseOrderID": 881824212456774814,
"vendorOrderID": "1232423"
}
Response Example
{
"msgCode": "OK",
"massage": "成功"
}
Error Example
{
"msgCode": "Error",
"massage": ""
}