Skip to main content
Webhooks notify your application when important events happen in Eaze Customs. Configure your webhook endpoint in the Eaze Customs Portal to receive secure event notifications. The notification is small. After you verify it, call an authorized Public API GET to read the latest Shipment, Declaration, or Transit Declaration. The webhook does not include the full business record. One endpoint receives events for the broker’s clients. Each event includes clientRef so you know which client it belongs to.
Security requirement: Always verify the Eaze-Signature header using your webhook signing secret before processing events. Requests without a valid signature must be rejected.
Eaze Customs signs the request. Check that signature before you parse the body for business use. A missing or invalid signature means you reject the request.

Before you start

  • A broker user, or a platform administrator, who can open the broker in the portal.
  • An active API key for that broker. The portal cannot save a webhook endpoint until one exists.
  • An HTTPS endpoint on the public internet. Private, loopback, and link-local addresses are rejected.
  • An API credential that includes the module for the follow-up GET. Import events need import. NCTS events need ncts. RTO events need rto.

Steps

1

Configure the endpoint in the portal

Add the HTTPS URL and choose the events. Copy the signing secret when the portal shows it. See Set Up Webhooks.
2

Verify and ignore duplicates

Follow Verify Signatures. Keep the event id. The same event can be delivered more than once.
3

Read the current resource

Call the GET endpoint for data.resource. Send clientRef as X-Eaze-Client-Ref. The record may have changed since the event was created.
4

Review deliveries in the portal

Open delivery history for the endpoint. Retry a failed delivery from there. See Deliveries & Retries.

Working example

A release notification looks like this:
After verification, call Get Declaration with 33333333-3333-4333-8333-333333333333 and X-Eaze-Client-Ref: ACME-AMS. Return a success status only after the signature is valid and you have stored the event ID. Events are not guaranteed to arrive in order, and a missed event is not sent again on its own. Read the resource, or retry a failed delivery in the portal. Next: Set Up Webhooks.