Get Order List By Tracking Number
Get a list of all Ahamove order ID of an tracking_number
- cURL
- JavaScript
curl --location 'https://partner-apistg.ahamove.com/v3/orders/tracks/<tracking_number>' \
--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/tracks/<tracking_number>',
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/tracks
Headers
Parameter | Value | Required | Description |
---|---|---|---|
Authorization | Bearer <token> | Yes | Token of partner |
Query Parameters
Parameter | Type | Required | Description |
---|---|---|---|
tracking_number | String | Yes | Internal tracking number |
from_time | Int | No | Start time to search the order list. Defaults to 7 days prior to the current time if not specified |
to_time | Int | No | End time to search the order list. Defaults to the current time if not specified |
Response
JSON response example:
[
{
"_id": "24AV9K67",
"path": [
{
"address": "7/28 Thành Thái, Phường 14, Qu ận 10"
},
{
"address": "475A Điện Biên Phủ, Phường 25, Bình Thạnh, Thành phố Hồ Chí Minh",
"status": "FAILED",
"tracking_number": "200207"
}
],
"status": "COMPLETED",
"service_id": "SGN-BIKE",
"create_time": 1729502059
},
{
"_id": "247D21C5",
"path": [
{
"address": "7/28 Thành Thái, Phường 14, Quận 10"
},
{
"address": "475A Điện Biên Phủ, Phường 25, Bình Thạnh, Thành phố Hồ Chí Minh",
"tracking_number": "200207"
}
],
"status": "CANCELLED",
"service_id": "SGN-BIKE",
"create_time": 1729497661
}
]
Status-Code: 200 OK
Errors
Code | Text | Description |
---|---|---|
401 | NOT_AUTHORIZED | Invalid token |
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 |