Get Order Callback Logs
Get a list of callback logs for an order based on the tracking number
- cURL
- JavaScript
curl --location 'https://partner-apistg.ahamove.com/v3/orders/callback-logs?tracking_number=HD0001' \
--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/callback-logs?tracking_number=HD0001',
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/callback-logs
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 |
Response
JSON response example:
{
"tracking_number": "HD0001",
"callback_logs": [
{
"partner": "guu",
"response_text": "",
"tracking_number": "200205",
"response_time": 1729486904.970746,
"response_code": 200,
"callback_time": 1729486904.0418425,
"request": {
"_id": "24ABCD",
"status": "COMPLETED",
//order detail
}
}
}
Status-Code: 200 OK
Errors
Code | Text | Description |
---|---|---|
401 | NOT_AUTHORIZED | No permission to get order callback logs |
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 |