Skip to main content

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 import or export module that matches the Shipment, and the ncts module. Upload and Operation routes currently require ncts even for a Shipment manifest.
  • clientRef and 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.
The Shipment must be in clearance status 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 Idempotency-Key.
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:
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:
A header mismatch is returned immediately. The suggestion is inside message and errors[].message. There is no separate suggestion object, and there is no operationId.
An alternative template is named only when exactly one other authorized, eligible Manifest Template matches the headers. When several match, or none match, the message lists missing and unexpected headers and does not name a template to use. The text is limited to 500 characters. After HTTP 202, row checks run in the background. When the file has readable rows and some of those rows are invalid, the Operation finishes like this. The upload is reserved.

Statuses and errors

How to retry after HTTP 422:
  1. Read the message. When it names one other Manifest Template, use that ID. Eaze Customs does not switch the template for you.
  2. Send the same uploadId. The failed header check does not reserve it.
  3. Send a new Idempotency-Key when the template or any other field changes.
  4. Create a new upload only when the file itself must change. The same bytes fail the same header check.
How to retry a failed or reviewed import after HTTP 202:
  1. Correct the file.
  2. Create and complete a fresh upload.
  3. Use the new uploadId.
  4. Send a new Idempotency-Key.
Sending the original key with the original body returns the original HTTP 202 response. That is a replay, not a new import. It does not apply to HTTP 422, because that response is not stored. Reusing an 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.