Skip to main content
POST

Authorizations

Authorization
string
header
required

Send Authorization: Bearer followed by the full Eaze Customs API credential. The credential looks like EZ__. It is shown only when Eaze Customs creates or rotates it.

Headers

X-Eaze-Client-Ref
string
required

Required. Send the clientRef returned by List Clients. Do not send this header on Get Credential Details or List Clients.

Required string length: 1 - 100
Example:

"ACME-AMS"

Idempotency-Key
string
required

Required. Use 1 to 200 visible ASCII characters. Create a new key for a new request. Send the same key only when you retry the exact same request after a network failure. The same key with a different body is rejected.

Required string length: 1 - 200
Pattern: ^[!-~]{1,200}$
Example:

"6f1c0b3e-8a21-4c5d-9e10-1a2b3c4d5e6f"

Body

application/json
purpose
enum<string>
required

shipment_manifest for a Shipment CSV or Excel file. ncts_items for an NCTS Departure goods file.

Available options:
ncts_items,
shipment_manifest
filename
string
required

File name ending in .csv or .xlsx. The extension must match contentType. Start with a letter or number. The name can contain letters, numbers, spaces, dots, underscores, hyphens, and parentheses, up to 200 characters.

Required string length: 1 - 200
contentType
enum<string>
required

text/csv for a CSV file, or application/vnd.openxmlformats-officedocument.spreadsheetml.sheet for an Excel .xlsx file.

Available options:
text/csv,
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
byteLength
integer
required

Exact size of the file in bytes. Maximum 20971520 bytes, which is 20 MB. Calculate this from the same bytes you upload.

Required range: 1 <= x <= 20971520
sha256
string
required

SHA-256 fingerprint of the exact file bytes, as 64 hexadecimal characters. Eaze Customs stores it in lowercase.

Pattern: ^[0-9a-fA-F]{64}$

Response

Successful response.

id
string<uuid>
required

Public Upload ID. Use it to complete the upload and later to import the file.

purpose
enum<string>
required

shipment_manifest for a shipment file. ncts_items for an NCTS departure goods file.

Available options:
ncts_items,
shipment_manifest
status
enum<string>
required

pending means the file has not been uploaded yet.

Available options:
pending
upload
object
required

Where and how to send the file.

expiresAt
string<date-time>
required

When this upload address expires. Date and time in ISO 8601 format. Example: 2026-11-17T10:30:00Z.