Get Current Order Information
Get all the detailed information related to a specific order, including product details and current order status.
Endpointβ
GET /v1/client/shipment/current_data/:unique_order_number
Descriptionβ
Get all the detailed information related to a specific order, including product details such as SKU, quantity, batch, as well as the current order status, which includes the current status. This endpoint is useful for tracking the status of an order and getting the latest information about the order.
Headersβ
| Header | Type | Required | Description |
|---|---|---|---|
| Authorization | string | β | Bearer token obtained from /token/generate endpoint |
| Content-Type | string | β | Must be application/json |
| Accept | string | β | Must be application/json |
Examplesβ
cURLβ
curl -X GET https://apisandbox.eonwms.com/v1/client/shipment/current_data/COD00000Test \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
JavaScriptβ
const uniqueOrderNumber = 'COD00000Test';
const response = await fetch(
`https://apisandbox.eonwms.com/v1/client/shipment/data/${uniqueOrderNumber}`,
{
method: 'GET',
headers: {
'Authorization': 'Bearer YOUR_TOKEN',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
}
);
const orderInfo = await response.json();
Responsesβ
200 - Successβ
{
"data": {
"id": "2949",
"type": "shipment",
"attributes": {
"uniqueOrderNumber": "COD00000Test",
"masterTracking": "0000000000000",
"products": [
{
"data": {
"id": 12361,
"type": "detailOrder",
"attributes": {
"sku": "SKUTESTING",
"quantity": 5,
"batch": "LOTE_TESTING"
}
}
}
],
"currentStatus": {
"data": {
"id": "4638",
"type": "status",
"attributes": {
"status": "READY",
"current": true,
"date": null,
"time": null,
"createdAt": "2025-08-21T16:07:38.393-06:00"
}
}
}
}
}
}
401 - Unauthorizedβ
{
"code": 401,
"fault": {
"arguments": {
"Authorization": "invalid"
},
"type": "InvalidAuthorizationException",
"message": "The request is unauthorized, the access token is invalid."
}
}
404 - Not Foundβ
{
"code": 404,
"fault": {
"arguments": {
"unique_order_number": "invalid"
},
"type": "shipmentNotFound",
"message": "Shipment not found."
}
}