What you can do
This is one complete path: configure the endpoint, check the signature, ignore a duplicate, and GET the Declaration.Configure the endpoint
- Sign in to the Eaze Customs Portal.
- Open Global Modules, then Brokers. Open the broker and select System Config.
- On the Webhooks card, select the add button. Its tooltip is Create Webhook, and the dialog title is Create Webhook.
- Enter a name and
https://broker.example.com/eaze/webhooks. - In Event, select import.declaration.released. You can add the other events from Webhook Events.
- Select Save.
- Copy the signing secret from the Signing secret dialog and store it as
EAZE_WEBHOOK_SECRET. It is not shown again.
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.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.