get-current-order-information
id: get-current-order-information title: Obtener información actual del pedido sidebar_label: Obtener información actual del pedido
Obtener información actual del pedido
Obtén la información detallada relacionada con un pedido específico, incluyendo detalles del producto y el estado actual del pedido.
Endpoint
GET /v1/client/shipment/current_data/:unique_order_number
Descripción
Obtén la información detallada de un pedido específico, incluyendo detalles del producto como SKU, cantidad, lote y el estado actual del pedido. Este punto de acceso es útil para consultar el estado de un pedido y obtener la información más reciente sobre el mismo.
Headers
| Header | Tipo | Requerido | Descripción |
|---|---|---|---|
| Authorization | string | ✓ | Token Bearer obtenido del endpoint /token/generate |
| Content-Type | string | ✓ | Debe ser application/json |
| Accept | string | ✓ | Debe ser application/json |
Ejemplos
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();
Respuestas
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."
}
}