Skip to main content
This page describes the event types sent by Eaze Customs webhooks and lists their payload structures.

Event payload structure

Every webhook delivery contains a JSON object with the following top-level fields:

Declaration events

These events trigger during the customs lifecycle of a declaration.

declaration.created

Occurs when you successfully create a new declaration.

Payload fields

Example payload

declaration.status_updated

Occurs when the customs status of a declaration is updated.

Payload fields

Declaration status codes

The status field contains one of the following values:
  • new — The declaration has just been created.
  • readyToDeclare — The data is complete and ready to declare.
  • prelodged — The advance declaration has been submitted.
  • registered — The declaration has been registered with customs.
  • presentation — The presentation notification has been sent.
  • acknowledged — The declaration has been legally accepted.
  • control — The declaration is under document or physical control.
  • invalid — The declaration is invalid.
  • blocked — The declaration has technical errors.
  • released — The goods have been cleared by customs.
  • norelease — The goods are not cleared.
  • finalTaxNotice — The final customs tax decision is issued.
  • completed — The customs process is finalized.
  • canceled — The declaration is canceled.

Example payload

declaration.completed

Occurs when the customs clearance process is fully completed.

Payload fields

Example payload

declaration.invalidated

Occurs when a declaration is invalidated by customs.

Payload fields

Example payload

declaration.error

Occurs when a declaration fails validation or receives an error from customs.

Payload fields

Example payload


Shipment events

These events trigger when you create or update shipments.

shipment.created

Occurs when you successfully create a new shipment.

Payload fields

Example payload

shipment.updated

Occurs when you update shipment details, such as weights, pricing, or status.

Payload fields

Example payload