Get Order List
This API is used to get a list of orders for a user. The returned list is sorted in descending order by order_time
- cURL
- JavaScript
curl -X GET \
'https://apistg.ahamove.com/v1/order/list?token=5d352c14eb44d753c5dcfc0b' \
-H 'cache-control: no-cache'
var requestOptions = {
method: 'GET',
redirect: 'follow',
};
fetch(
'https://apistg.ahamove.com/v1/order/list?token=5d352c14eb44d753c5dcfc0b',
requestOptions
)
.then((response) => response.text())
.then((result) => console.log(result))
.catch((error) => console.log('error', error));
HTTP Request
GET https://apistg.ahamove.com/v1/order/list
Query Parameters
Parameter | Type | Required | Description |
---|---|---|---|
token | String | Yes | The user Token. |
status | String | No | Filter by order status |
count | Number | No | Number of elements returned, default 20 |
offset | Number | No | Offset, default 0 |
from_time | Number | No | Filter by order_time |
to_time | Number | No | Filter by order_time |
child_ids | Array | No | Limit to a subset of child ids, for partner account |
fields | String | No | Set to return only these fields |
total | Boolean | No | Return total count, default False |
Response
JSON response example:
[
{
"_id": "ABCDEF",
... # order detail
},
...
]
Status-Code: 200 OK
Errors
Code | Text | Description |
---|---|---|
404 | Not Found | Token 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. |