Get Multiple Order Detail
Get detail information of multiple order at once
- cURL
- JavaScript
curl --location 'https://partner-apistg.ahamove.com/v3/orders?ids=<order_id>,<order_id>,<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?ids=<order_id>,<order_id>,<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
Headers
Parameter | Value | Required | Description |
---|---|---|---|
Authorization | Bearer <token> | Yes | Token of the order creator or the parent account |
Query Parameters
Parameter | Type | Required | Description |
---|---|---|---|
ids | String | Yes | List of order IDs, separated by commas |
Response
JSON response example:
{
{
"_id": "24ABCD",
...# order detail
},
{
"_id": "24EFGH",
...# order detail
},
{
"_id": "24IJKL",
...# 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 |