What you can do
Import a CSV or Excel manifest into a clearance Shipment. Eaze Customs checks the file headers immediately, then creates Declarations and goods items in the background. Missing configured headers return HTTP 422. No Operation is created, and the upload stays available. Extra columns do not fail this check. HTTP 202 means the headers were accepted. It does not mean the rows imported successfully.Before you start
- Credential with the
importorexportmodule that matches the Shipment, and thenctsmodule. Upload and Operation routes currently requirenctseven for a Shipment manifest. clientRefand the public Shipment ID.- A Manifest Template ID. A Declaration Template ID only if you do not want the mapped defaults. See Templates.
- A file prepared as described in File Uploads.
created, clearance must be enabled, and it must not already contain declarations. mode is always INITIAL. This request does not replace existing declarations.
Steps
1
Select the client and Shipment
Use
X-Eaze-Client-Ref. Create the Shipment or read an existing empty clearance Shipment.2
Select the Manifest Template
List templates for the Shipment direction and copy
manifestTemplateId. The file is checked against that template. Eaze Customs does not switch templates for you.3
Upload the file
Create an upload with
purpose: shipment_manifest, PUT the exact bytes, and complete the upload. Continue only when the status is available.4
Start the import
Call Import Manifest with a new Missing configured headers return HTTP 422 before an Operation exists. The upload is not reserved. Extra columns are allowed and the request continues.A successful acceptance is HTTP 202:
Idempotency-Key.5
Read the result
Poll Get Operation. Progress
100 only means processing finished. Read status.On succeeded, call List Declarations, List Goods Items, and List Shipment Documents.Working example
A successful Operation:message and errors[].message. There is no separate suggestion object, and there is no operationId.
Statuses and errors
How to retry after HTTP 422:
- Read the message. When it names one other Manifest Template, use that ID. Eaze Customs does not switch the template for you.
- Send the same
uploadId. The failed header check does not reserve it. - Send a new
Idempotency-Keywhen the template or any other field changes. - Create a new upload only when the file itself must change. The same bytes fail the same header check.
- Correct the file.
- Create and complete a fresh upload.
- Use the new
uploadId. - Send a new
Idempotency-Key.
uploadId that was already accepted returns HTTP 409: “This upload has already been used for a Shipment manifest import. Create and complete a fresh upload before retrying.” The upload stays reserved after requires_review and after failure.
Only queued and running block another import on the same Shipment. requires_review does not keep that lock. A completed initial import still requires an empty Shipment, so you cannot import a second file over declarations that already exist.
Next: NCTS Overview. The copyable end-to-end script is in Examples.