Skip to main content

What you can do

A Shipment is the business file for one consignment. It can include Customs clearance, RTO handling, or both. You create the Shipment, then import a manifest when clearance needs declaration lines. The Public API does not submit the Shipment to Customs and does not update or delete a Shipment.

Before you start

  1. Authenticate. See Authentication & Clients.
  2. Choose clientRef from List Clients.
  3. For RTO, call List RTO Configurations and keep rtoConfigurationId.
Send X-Eaze-Client-Ref on every Shipment request.

Shipment type and services

shipmentType is the direction: enabledServices is the processing you turn on. Send at least one value. Do not repeat a value. rtoProcessType is one of IMPORT_HANDLING, EXPORT_HANDLING, DIRECT_PICKUP, DIRECT_DELIVERY, or FORWARDER_TRANSFER. The API does not force a process type to match shipmentType. Use the process your RTO configuration expects. packageCount is a positive whole number. totalWeight is a positive number. Both are required when rto is enabled. You may omit them for a clearance-only Shipment. Set hasUld to true only for an RTO Shipment that uses unit load devices. When it is true, uldCount is a positive whole number. Do not send uldCount when hasUld is omitted or false.

Steps

1

Create the Shipment

Call Create Shipment. shipmentNumber is your own number, up to 100 characters. It is not the public Shipment ID.The response id is the public Shipment ID. Use it in later paths. clientReference is optional and is your own reference, separate from clientRef.
2

Read it back

Call Get Shipment or List Shipments. Get Shipment returns businessData for the stored cargo and schedule. List Shipments returns the summary fields and accepts shipmentType and service (clearance or rto).
3

Continue the workflow

Clearance continues in Manifest & Declaration Templates and Manifest Import. RTO continues in RTO Integration.
A response includes a service only when the credential can see that module. A credential without rto does not receive the RTO status of a Shipment that also has clearance. Create Shipment and Get Shipment include businessData. List Shipments returns the summary fields. businessData.rto is included when the Shipment has RTO enabled and the credential includes the rto module. The configuration object contains the public configuration id.

Working example

Import clearance only:
Import clearance and RTO:
A later Get Shipment for that combination includes the stored cargo, schedule, and RTO balances:
durationDays stays null while the RTO process is still active. accountTotals uses decimal strings for weight. RTO only uses "enabledServices": ["rto"] and the same RTO fields. Export uses "shipmentType": "EXPORT" and the export module when clearance is enabled.

Statuses and errors

Clearance status is created, inCustoms, or completed. One completed Declaration does not complete the Shipment. declarationNew, declarationInClearance, declarationException, and declarationCompleted are percentages from 0 to 100. totalDeclarationsCount is the number of Declarations. RTO status is separate. See Statuses. Next: Import & Export.