CompleteOrder¶
Use this api to complete order,Update order status from SHIPPING to DELIVERED.
POST /openapi/order/v1/completed
Request Parameters¶
Parameter | Type | Required | Description |
---|---|---|---|
orderInfoList |
Arrary(OrderInfo) |
true |
Array of object, please refer to OrderInfo for details |
OrderInfo¶
Parameter | Type | Required | Description |
---|---|---|---|
orderId |
String |
true |
Ginee order Id |
channelEnum |
String |
ture |
MANUAL_ID |
Response Parameters¶
Parameter | Type | Required | Description |
---|---|---|---|
id |
String |
true |
Ginee order Id |
externalOrderSn |
String |
ture |
external-order-sn |
Request Example¶
Example
curl -X POST \
-H "X-Advai-Country: ID" \
-H "Authorization: {Your Access Key} + ':' + signature" \
-H "Content-Type: application/json" \
-d '{
"orderInfoList": [
{
"orderId": "SO6330583F5908010001C4006E",
"channelEnum": "MANUAL_ID"
}
]
}' \
"{Ginee Host}/openapi/order/v1/completed
Success
{
"code":"SUCCESS",
"message":"OK",
"data": [
"id":"SO6125178AF4428A0001DABC8F",
"externalOrderSn":"123456789"
]
"extra":null,
"transactionId":"f49f370af5805764"
}
Failure
{
"code": "CHANNEL_NOT_SUPPORT",
"message": "This order operation channel does not support",
"data": "SO5F609DC052FAFF000134FC62",
"extra": null,
"pricingStrategy": "FREE"
}
Note
You need to check the code
to see if the operation was successful. If failed, see message
for detail reason.