Get Order Tracking Link
Get the delivery tracking link of an order
- cURL
- JavaScript
curl --location 'https://partner-apistg.ahamove.com/v3/orders/<order_id>/shared-link' \
--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>/shared-link',
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>/shared-link
Headers
Parameter | Value | Required | Description |
---|---|---|---|
Authorization | Bearer <token> | Yes | Token of partner |
Query Parameters
Parameter | Type | Required | Description |
---|---|---|---|
order_id | String | Yes | Order ID |
Response
JSON response example:
{
"shared_link": "https://expressstg.ahamove.com/s/241021HRHVJ4"
}
Status-Code: 200 OK
Errors
Code | Text | Description |
---|---|---|
401 | NOT_AUTHORIZED | No permission to get order tracking link |
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 |