Get Order Tracking Link
- cURL
- JavaScript
curl -X GET \
'https://apistg.ahamove.com/v1/order/shared_link?token=<TOKEN_STG>&order_id=ABCDEF' \
-H 'cache-control: no-cache'
var requestOptions = {
method: 'GET',
redirect: 'follow'
};
fetch("https://apistg.ahamove.com/v1/order/shared_link?token=<TOKEN_STG>&order_id=ABCDEF", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
This API is used to get the shared link for order tracking
HTTP Request
GET https://apistg.ahamove.com/v1/order/shared_link
Query Parameters
Parameter | Type | Required | Description |
---|---|---|---|
token | String | Yes | User Token |
order_id | String | Yes | Order Id |
Response
JSON response example:
{
"shared_link": "https://cloudstg.ahamove.com/share-order/ABCDEF/84979003147"
}
Status-Code: 200 OK
Errors
Code | Text | Description |
---|---|---|
404 | Not Found | - Token not found - Order not found |
401 | Unauthorized | Unauthorized |
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. |