Skip to main content

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​

HeaderTypeRequiredDescription
Authorizationstringβœ“Bearer token obtained from /token/generate endpoint
Content-Typestringβœ“Must be application/json
Acceptstringβœ“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."
}
}