Skip to main content
These examples use fictional identifiers. Staging — For Integration Testing: https://staging.api.eazecustoms.com. Do not append /public/v1 to that host. The credential belongs in your own secret store.
Set EAZE_CUSTOMS_API_CREDENTIAL to the full value, for example EZ_11111111-1111-4111-8111-111111111111_exampleSecretValueNotReal.

Shipment and manifest import

Authenticate, select the client, create an Import Shipment, upload a manifest, import it, and read the Declaration.
Poll until the Operation status is terminal. The snippet reads it once so the sequence stays short. See Operations. Omitting declarationTemplateIds uses mapped defaults. See Templates.

NCTS Departure

Upload the goods file with purpose: ncts_items, complete it, then:

NCTS Arrival

Arrival does not import a goods file.
Subscribe to ncts.arrival.released and keep reading current.status. current.businessData and current.finalDocumentStatuses are on that Get response. See NCTS Arrival.

RTO

latest.businessStatus.rto is the overall process. latest.businessData.rto has the process, public configuration id, and account totals. movements.data[0].status is one movement. rto.completed fires when the overall status first becomes COMPLETED.

Webhooks

Configure the endpoint in the Eaze Customs Portal. Store the signing secret, verify every delivery, ignore an event ID you have already handled, then read the resource. See Set Up Webhooks, Verify Signatures, and Deliveries & Retries. The full receiver is in Webhook examples.
The helper at the top of this page sends one fixed client. For a webhook, send event.clientRef as X-Eaze-Client-Ref instead.

Other languages

Pagination in Python:
Authentication in C#:
Do not add X-Eaze-Client-Ref to Get Credential Details. Next: Webhooks overview.