What you can do
After an import request is accepted, Eaze Customs processes the file in the background. Use the returned Operation ID to check the result. There is no list of Operations. Keep theoperationId from the HTTP 202 response.
A Shipment manifest whose configured headers do not match the selected template returns HTTP 422 from Import Manifest. That response has no operationId. The upload can be submitted again. See Manifest Import.
Before you start
Import Manifest and Import Departure Details return:X-Eaze-Client-Ref.
Get Operation currently requires the
ncts module on the credential, including for a Shipment manifest import.shipment.details.import and ncts.details.import.
Steps
1
Store the Operation ID
Save
operationId with the Shipment or Transit Declaration you imported.2
Poll with a delay
Wait a few seconds between reads. A short import often finishes within seconds. A large file can take longer. Do not poll in a tight loop.
3
Stop on a terminal status
Stop when the status is
succeeded, partially_succeeded, failed, requires_review, or canceled.queued and running are still active. Progress can move from 0 to 100 while the status is running. Progress 100 with a non-success status means processing finished without success.4
Read the business records
On success, read Declarations or house consignments. The Operation result is a summary. The business GET endpoints are the current record.
Working example
Statuses and errors
error.detail is a sentence. Header mismatches are not delivered here. They return HTTP 422 before the Operation is created, and that message can name one alternative Manifest Template. Nothing is switched automatically.
HTTP 404 means the Operation is not visible for this credential and client. HTTP 403 means the ncts module is missing.
Next: Statuses. Idempotency for the original request is explained in Idempotency.