Skip to main content

What you can do

This is one complete path: configure the endpoint, check the signature, ignore a duplicate, and GET the Declaration.
Security requirement: Always verify the Eaze-Signature header using your webhook signing secret before processing events. Requests without a valid signature must be rejected.

Configure the endpoint

  1. Sign in to the Eaze Customs Portal.
  2. Open Global Modules, then Brokers. Open the broker and select System Config.
  3. On the Webhooks card, select the add button. Its tooltip is Create Webhook, and the dialog title is Create Webhook.
  4. Enter a name and https://broker.example.com/eaze/webhooks.
  5. In Event, select import.declaration.released. You can add the other events from Webhook Events.
  6. Select Save.
  7. Copy the signing secret from the Signing secret dialog and store it as EAZE_WEBHOOK_SECRET. It is not shown again.
The full screen reference is Set Up Webhooks.

Receive, verify, and read

This TypeScript receiver uses the raw body. It rejects a bad signature with HTTP 401, remembers the event ID, and then reads the Declaration. The in-memory set is only a sketch. Store event IDs in durable storage so a restart does not apply the same event twice.
Send event.clientRef as X-Eaze-Client-Ref on the follow-up GET. Staging — For Integration Testing: https://staging.api.eazecustoms.com. Do not append /public/v1 to that host.

Handle repeated deliveries and errors

What each event should trigger

A 204 from your endpoint means you accepted the notification. It does not update the business resource. The GET response is the record to trust. Signature details are on Verify Signatures. Delivery history and Retry are on Deliveries & Retries.