Get Order Detail
Get detail information of an order
- cURL
- JavaScript
curl --location 'https://partner-apistg.ahamove.com/v3/orders/<order_id>' \
--header 'Authorization: Bearer <token>'
const myHeaders = new Headers();
myHeaders.append('Authorization', 'Bearer <token>');
const requestOptions = {
method: 'GET',
headers: myHeaders,
redirect: 'follow',
};
fetch('https://partner-apistg.ahamove.com/v3/orders/<order_id>', requestOptions)
.then((response) => response.text())
.then((result) => console.log(result))
.catch((error) => console.error(error));
HTTP Request
GET https://partner-apistg.ahamove.com/v3/orders/<order_id>
Headers
Parameter | Value | Required | Description |
---|---|---|---|
Authorization | Bearer <token> | Yes | Token of the order creator or the parent account |
Query Parameters
Parameter | Type | Required | Description |
---|---|---|---|
order_id | String | Yes | Order ID |
Response
JSON response example:
{
"_id": "24ABCD",
...# order detail
}
Status-Code: 200 OK
Errors
Code | Text | Description |
---|---|---|
401 | NOT_AUTHORIZED | Invalid token |
403 | DENY_ACCESS_ORDER_DETAIL | No permission to get order detail |
404 | ORDER_NOT_FOUND | Order ID not found |
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 |