Skip to main content

Create Order

Create a new fulfillment order in the Chronos system. The recipient's data will be validated for delivery coverage based on the selected package and warehouse.

POST/shipment/create

This endpoint allows you to create a new fulfillment order. You must include the Bearer token obtained previously in the request header.

Headers

ParameterTypeRequiredDescription
Authorizationstringβœ… YesBearer token obtained from /token/generate endpoint
Content-Typestringβœ… YesMust be application/json
Acceptstringβœ… YesMust be application/json

Body Parameters

ParameterTypeRequiredDescription
unique_order_numberstringβœ… YesIdentification code provided by the seller (max: 50)
shipping_servicestringβœ… YesValid values: FEDEX, AFIMEX, UPS, USPS, VENCEDOR OR QUALITYPOST (max: 10)
invoicestring❌ NoInvoice number for the order (max: 45)
warehouse_idintegerβœ… YesID of the warehouse from which the order will be fulfilled (max: 10)
codbooleanβœ… Yestrue for Cash on Delivery (COD), false for regular delivery
consigneeobjectβœ… YesCustomer delivery information
consignee.namestringβœ… YesCustomer's name (avoid accents and special characters) (max: 35)
consignee.countrystringβœ… YesCustomer's country (full name, e.g., 'Mexico') (max: 20)
consignee.statestringβœ… YesCustomer's state (must not be abbreviated) (max: 35)
consignee.municipalitystringβœ… YesCustomer's municipality (max: 35)
consignee.neighborhoodstringβœ… YesCustomer's neighborhood (max: 35)
consignee.streetstringβœ… YesCustomer's street (max: 24)
consignee.external_numberstringβœ… YesExternal number or 's/n' if not available (max: 5)
consignee.internal_numberstring❌ NoInternal number (max: 5)
consignee.zipcodestringβœ… Yes5-digit zip code (can start with 0) (max: 5)
consignee.emailstring❌ NoCustomer's email (format: name@domain.com) (max: 50)
consignee.phonestringβœ… Yes10-digit phone number (max: 10)
consignee.commentsstring❌ NoDelivery instructions (avoid quotation marks) (max: 250)
order_detailsarrayβœ… YesArray of products in the order
order_details[].quantityintegerβœ… YesProduct quantity (max: 10)
order_details[].skustringβœ… YesProduct SKU (max: 35)
order_details[].unit_pricefloatβœ… YesUnit price (can be 0) (max: 5)
total_pricefloatβœ… YesTotal order amount (recommended for insurance) (max: 5)

Examples

curl -X POST https://apisandbox.eonwms.com/shipment/create \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{
"unique_order_number": "ORDER-12345",
"shipping_service": "FEDEX",
"invoice": "INV-001",
"warehouse_id": "1",
"cod": false,
"consignee": {
"name": "John Smith",
"country": "Mexico",
"state": "Ciudad de Mexico",
"municipality": "Benito Juarez",
"neighborhood": "Del Valle",
"street": "Insurgentes Sur",
"external_number": "123",
"internal_number": "4B",
"zipcode": "03100",
"email": "john.smith@email.com",
"phone": "5512345678",
"comments": "Deliver to reception"
},
"order_details": [
{
"quantity": 2,
"sku": "PROD-001",
"unit_price": "299.99"
},
{
"quantity": 1,
"sku": "PROD-002",
"unit_price": "149.99"
}
],
"total_price": "749.97"
}'

Responses

200Success - Order created

{
"status": "PLACED",
"message": "The order has been successfully created"
}

401Unauthorized - Invalid token

{
"v": "EON_V2.0",
"fault": {
"arguments": {
"Authorization": "invalid"
},
"type": "InvalidAuthorizationException",
"message": "The request is unauthorized, the access token is invalid."
}
}

422Unprocessable Entity - Validation error

{
"fault": {
"error": "validation_error",
"error_description": "The shipping service is not available for this destination"
}
}

Important Notes​

States

The following list shows the accepted values for the "State" parameter when creating orders for Mexico:

  • Aguascalientes
  • Baja California
  • Baja California Sur
  • Campeche
  • Coahuila
  • Colima
  • Chiapas
  • Chihuahua
  • Ciudad de Mexico
  • Durango
  • Guanajuato
  • Guerrero
  • Hidalgo
  • Jalisco
  • Mexico
  • Michoacan
  • Morelos
  • Nayarit
  • Nuevo Leon
  • Oaxaca
  • Puebla
  • Queretaro
  • Quintana Roo
  • San Luis Potosi
  • Sinaloa
  • Sonora
  • Tabasco
  • Tamaulipas
  • Tlaxcala
  • Veracruz
  • Yucatan
  • Zacatecas
Address Validation
  • Avoid accents and special characters in address fields
  • State names must not be abbreviated
  • Zip codes must be exactly 5 digits
  • External number is required (use 's/n' if not available)
Shipping Services

Available shipping services depend on your contract and warehouse location:

  • Mexico: FEDEX, YEGO, AFIMEX, TIUI, IHS, VENCEDOR
  • USA: FEDEX, UPS, USPS
  • International: JTEXPRESS

Contact support to enable additional carriers.

Order Status Flow​

After creating an order, it will go through the following status flow:

  1. PLACED - The order has been successfully registered and is waiting to be prepared.
  2. READY - The products assigned to the order have been reserved from inventory and the order is being prepared for shipment.
  3. FULFILLED - The products assigned to the order have been deducted from warehouse inventory.
  4. SEND - The order has been picked up by the assigned carrier and is in transit to its destination.
  5. DELIVERED - The order has been successfully delivered to the recipient.
  6. RETURNED TO CHRONOS (Optional) - The delivery attempt was unsuccessful and the order has been returned to the origin warehouse.

*Between the SEND and DELIVERED/RETURNED TO CHRONOS statuses, different carriers assign a variety of statuses that are displayed in the history with the same value as obtained from the source, so the flow of an order in transit may vary with each case.

You can track the order status using the Get Order Status endpoint.