Skip to main content
POST

Authorizations

Authorization
string
header
required

Send Authorization: Bearer followed by the full Eaze Customs API credential. The credential looks like EZ__. It is shown only when Eaze Customs creates or rotates it.

Headers

X-Eaze-Client-Ref
string
required

Required. Send the clientRef returned by List Clients. Do not send this header on Get Credential Details or List Clients.

Required string length: 1 - 100
Example:

"ACME-AMS"

Idempotency-Key
string
required

Required. Use 1 to 200 visible ASCII characters. Create a new key for a new request. Send the same key only when you retry the exact same request after a network failure. The same key with a different body is rejected.

Required string length: 1 - 200
Pattern: ^[!-~]{1,200}$
Example:

"6f1c0b3e-8a21-4c5d-9e10-1a2b3c4d5e6f"

Body

application/json
shipmentNumber
string
required

Your own shipment number. This is not the public Shipment ID returned by the API. 1 to 100 characters.

Required string length: 1 - 100
shipmentType
enum<string>
required

IMPORT or EXPORT. This is the direction of the Shipment. It is separate from enabledServices.

Available options:
IMPORT,
EXPORT
enabledServices
enum<string>[]
required

Processing to turn on. Use clearance, rto, or both. Send at least one value, and do not repeat a value. Clearance requires the import or export module that matches shipmentType. RTO requires the rto module.

Required array length: 1 - 2 elements
Available options:
clearance,
rto
clientReference
string | null

Optional reference from your own system, up to 100 characters. Omit it or send null when you do not have one.

Maximum string length: 100
remarks
string | null

Optional note, up to 512 characters.

Maximum string length: 512
totalWeight
number | null

Total weight as a positive number. Required when RTO is enabled. You can omit it for a clearance-only Shipment.

Required range: x > 0
packageCount
integer | null

Number of packages as a positive whole number. Required when RTO is enabled.

Required range: x > 0
hasUld
boolean

Set to true only when the RTO Shipment uses unit load devices. Omit or false when it does not.

uldCount
integer | null

Positive whole number of unit load devices. Required when hasUld is true. Do not send it otherwise.

Required range: x > 0
totalPrice
number | null

Optional total price. Use zero or a positive number.

Required range: x >= 0
arrivalDate
string<date-time> | null

Optional arrival date and time in ISO 8601 format. Example: 2026-11-17T10:30:00Z.

departureDate
string<date-time> | null

Optional departure date and time in ISO 8601 format. Example: 2026-11-17T10:30:00Z.

flightNumber
string | null

Optional flight number, up to 50 characters.

Maximum string length: 50
originAirport
string | null

Optional three-letter airport code, such as AMS. Letters only.

Pattern: ^[A-Z]{3}$
destinationAirport
string | null

Optional three-letter airport code, such as FRA. Letters only.

Pattern: ^[A-Z]{3}$
rtoConfigurationId
string<uuid>

Required when RTO is enabled. Take id from List RTO Configurations. Do not send this field when RTO is not enabled.

rtoProcessType
enum<string>

Required when RTO is enabled. One of IMPORT_HANDLING, EXPORT_HANDLING, DIRECT_PICKUP, DIRECT_DELIVERY, or FORWARDER_TRANSFER. Do not send this field when RTO is not enabled.

Available options:
IMPORT_HANDLING,
EXPORT_HANDLING,
DIRECT_PICKUP,
DIRECT_DELIVERY,
FORWARDER_TRANSFER

Response

Successful response.

id
string<uuid>
required

Public Shipment ID. Use it in later Shipment, Declaration, document, and movement requests.

shipmentNumber
string
required

The shipment number you sent when the Shipment was created.

Maximum string length: 100
clientReference
string | null
required

Your own reference for this shipment.

Maximum string length: 100
shipmentType
enum<string>
required

Direction of the shipment: IMPORT or EXPORT.

Available options:
IMPORT,
EXPORT
enabledServices
enum<string>[]
required

Services you can see on this shipment: clearance, rto, or both.

Available options:
clearance,
rto
businessStatus
object
required

Current clearance status and, when you are allowed to see RTO, the overall RTO status. A credential only sees the services its modules allow.

progress
object
required

Clearance progress for this shipment. Present when you can see clearance.

timestamps
object
required

When the shipment was created and updated, and when clearance or RTO started and finished.

businessData
object
required

Stored remarks, cargo, and schedule. When RTO is enabled and this credential includes the rto module, it also includes the RTO process, the public configuration id, status timing, and account totals. The configuration object contains only that public id.