What you can do
Subscribe to the events below in the portal. Each event uses payload version 1. There are no Export declaration webhooks. The envelope is always:data.resource is { module, type, id }. Call the matching GET with clientRef. The status in the payload is the status at the time of the event. GET returns the current status.
The examples below are pretty-printed. Verify the signature against the raw request body, not against JSON you format again.
Available events
Payloads
import.declaration.released:
import.declaration.completed uses the same data shape. type is import.declaration.completed and status is COMPLETED. clientReference can be null. Call Get Declaration with data.resource.id.
ncts.departure.released:
ncts.arrival.released uses the same data shape. type is ncts.arrival.released, status is RELEASED, and data.resource.id is the Arrival Transit Declaration ID. Call Get Transit Declaration. A release does not mean every document is ready to download.
rto.completed:
data.resource.id. clientReference can be null. List movements only when you need the handling detail. The event is not one movement status.
Next: Verify Signatures.