Skip to main content

What you can do

Verify your API credentials, check which modules they allow you to access, and select the client whose business records you want to work with.

Before you start

Your Eaze Customs API credential is issued during onboarding. The full credential is displayed only when it is created or rotated. Make sure to store it securely. Only an active Eaze Customs internal administrator can create, rotate, or revoke API credentials. Broker administrators cannot create API credentials through the Public API or broker portal. They can see whether a credential exists, but cannot view its secret again. API credentials belong to the broker and can be used to access the broker’s clients. Client-owned API credentials are not supported.

Credential format

The credential has three parts:
EZ is the literal prefix. The credential ID is a UUID. The secret is a random string. Send the whole value. Do not send only the secret, and do not add a space.
The examples in this site use eazeCustomsApiCredential for that full value.

Steps

1

Store the credential

Keep it in a secret manager. Do not put it in source code, tickets, or logs. The portal will not show it again.
2

Read the credential

GET /public/v1/me returns the name, the last four characters, the expiry, and scopes.Current modules are import, export, ncts, and rto. A credential can have more than one. You only see and change data for modules on the credential.
3

Select a client

GET /public/v1/clients returns clientRef. Send that exact value on client routes:
The header is required for Shipments, templates, uploads, NCTS, RTO configurations and movements, documents, declarations, and operations.Do not send the header to Get Credential Details or List Clients. Those routes belong to the broker credential, not to one client.A webhook event includes clientRef. Send that value as X-Eaze-Client-Ref when you read the resource. Configure the endpoint in the portal. See Set Up Webhooks.

Working example

Staging — For Integration Testing: set EAZE_CUSTOMS_API_BASE_URL to https://staging.api.eazecustoms.com. Paths already include /public/v1.

IP restrictions

Eaze Customs can limit a credential to specific source IP addresses. A call from another address fails with HTTP 401. Ask Eaze Customs to change the list. There is no Public API for that change.

Rotation and revocation

When Eaze Customs rotates a credential, the credential ID stays the same and the secret changes. The previous full credential stops working. Store the new value immediately. It is shown once. A revoked or expired credential returns HTTP 401. Create a new request only after you have a current credential. Reusing an idempotency key does not repair a revoked credential.

Statuses and errors

Reference: Get Credential Details and List Clients. Next: Pagination.