AcceptOrder¶
Use this api to accept order.
POST /openapi/order/v1/accept
Request Parameters¶
Parameter | Type | Required | Description |
---|---|---|---|
orderId |
string |
true |
Order id in Ginee |
Response Parameters¶
Name | Type | Description |
---|---|---|
orderId |
string |
Order id in Ginee |
Request Example¶
Example
curl -X POST \
-H "X-Advai-Country: ID" \
-H "Authorization: {Your Access Key} + ':' + signature" \
-H "Content-Type: application/json" \
-d '{
"orderId": "SO5F609DC052FAFF000134FC62"
}' \
"{Ginee Host}/openapi/order/v1/accept"
Success
{
"code":"SUCCESS",
"message":"OK",
"data": "SO5F609DC052FAFF000134FC62",
"extra":null,
"transactionId":"f49f370af5805764",
"pricingStrategy": "FREE"
}
Failure
{
"code": "BUSINESS_ERROR",
"message": "This order operation does not support",
"data": "SO5F609DC052FAFF000134FC62",
"extra": null,
"transactionId":"f49f370af5805764",
"pricingStrategy": "FREE"
}
Note
You need to check the code
to see if the operation was successful. If failed, see message
for detail reason.