Get Order Detail
- cURL
- JavaScript
curl -X GET \
'https://apistg.ahamove.com/v1/order/detail?token=<TOKEN_STG>&order_id=ABCDEF' \
-H 'cache-control: no-cache'
var requestOptions = {
method: 'GET',
redirect: 'follow'
};
fetch("https://apistg.ahamove.com/v1/order/detail?token=<TOKEN_STG>&order_id=ABCDEF", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
This API is used to get detail information about an order
HTTP Request
GET https://apistg.ahamove.com/v1/order/detail
Query Parameters
Parameter | Type | Required | Description |
---|---|---|---|
token | String | Yes | Token of the user who created the order or token of the Parent account |
order_id | String | Yes | order id |
Response
JSON response example:
{
"_id": "ABCDEF",
...# order detail
}
Status-Code: 200 OK
Errors
Code | Text | Description |
---|---|---|
404 | Not Found | Token not found |
401 | Unauthorized | Unauthorized |
500 | Internal Server Error | We had a problem with our server. Try again later. |
503 | Service Unavailable | We're temporarily offline for maintenance. Please try again later. |