curl --request POST \
--url https://staging.api.eazecustoms.com/public/v1/uploads \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--header 'X-Eaze-Client-Ref: <x-eaze-client-ref>' \
--data '
{
"purpose": "shipment_manifest",
"filename": "manifest.csv",
"contentType": "text/csv",
"byteLength": 73,
"sha256": "4ea9a34e9b058915cb420a3b6f18fee40a6b877b0f330e33b5497c1fc0370a4d"
}
'{
"id": "aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa",
"purpose": "shipment_manifest",
"status": "pending",
"upload": {
"method": "PUT",
"url": "https://example-uploads.invalid/manifest.csv?signature=example",
"requiredHeaders": {
"content-type": "text/csv",
"content-length": "73",
"content-disposition": "attachment; filename=\"manifest.csv\"",
"x-amz-checksum-sha256": "TqmjTpsFiRXLQgo7bxj+5Aprh3sPMw4ztUl8H8A3Ck0=",
"x-amz-meta-upload-id": "aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa",
"x-amz-meta-credential-id": "11111111-1111-4111-8111-111111111111",
"x-amz-meta-client-company-id": "example-client",
"x-amz-meta-sha256": "4ea9a34e9b058915cb420a3b6f18fee40a6b877b0f330e33b5497c1fc0370a4d",
"x-amz-server-side-encryption": "AES256",
"cache-control": "no-store"
}
},
"expiresAt": "2026-11-17T09:25:00.000Z"
}{
"errorCode": "E0001",
"message": "Invalid request parameters",
"errors": [
{
"field": "shipmentType",
"message": "Invalid option: expected one of \"IMPORT\"|\"EXPORT\""
}
],
"requestId": "550e8400-e29b-41d4-a716-446655440000"
}{
"errorCode": "E0002",
"message": "Missing, invalid, expired or revoked Eaze Customs API credential",
"errors": [],
"requestId": "550e8400-e29b-41d4-a716-446655440000"
}{
"errorCode": "E0003",
"message": "The import module is not enabled for this credential",
"errors": [],
"requestId": "550e8400-e29b-41d4-a716-446655440000"
}{
"errorCode": "E0006",
"message": "Idempotency-Key was already used with a different request",
"errors": [
{
"code": "idempotency_key_reused",
"message": "Idempotency-Key was already used with a different request"
}
],
"requestId": "550e8400-e29b-41d4-a716-446655440000"
}{
"errorCode": "E9999",
"message": "Upload exceeds the 20971520 byte limit",
"errors": [],
"requestId": "550e8400-e29b-41d4-a716-446655440000"
}{
"errorCode": "E0007",
"message": "Only CSV and XLSX uploads are supported",
"errors": [],
"requestId": "550e8400-e29b-41d4-a716-446655440000"
}{
"errorCode": "E0008",
"message": "Public API rate limit exceeded",
"errors": [],
"requestId": "550e8400-e29b-41d4-a716-446655440000"
}{
"errorCode": "E0009",
"message": "Unexpected server error",
"errors": [],
"requestId": "550e8400-e29b-41d4-a716-446655440000"
}File Uploads
Create Upload
Start a secure file upload for a Shipment Manifest or NCTS Departure goods file.
- The API returns a temporary upload URL and the required headers.
- Use these details to upload the original file securely.
- Once the upload is completed, use the returned
uploadIdin the relevant import request.
POST
/
public
/
v1
/
uploads
curl --request POST \
--url https://staging.api.eazecustoms.com/public/v1/uploads \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--header 'X-Eaze-Client-Ref: <x-eaze-client-ref>' \
--data '
{
"purpose": "shipment_manifest",
"filename": "manifest.csv",
"contentType": "text/csv",
"byteLength": 73,
"sha256": "4ea9a34e9b058915cb420a3b6f18fee40a6b877b0f330e33b5497c1fc0370a4d"
}
'{
"id": "aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa",
"purpose": "shipment_manifest",
"status": "pending",
"upload": {
"method": "PUT",
"url": "https://example-uploads.invalid/manifest.csv?signature=example",
"requiredHeaders": {
"content-type": "text/csv",
"content-length": "73",
"content-disposition": "attachment; filename=\"manifest.csv\"",
"x-amz-checksum-sha256": "TqmjTpsFiRXLQgo7bxj+5Aprh3sPMw4ztUl8H8A3Ck0=",
"x-amz-meta-upload-id": "aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa",
"x-amz-meta-credential-id": "11111111-1111-4111-8111-111111111111",
"x-amz-meta-client-company-id": "example-client",
"x-amz-meta-sha256": "4ea9a34e9b058915cb420a3b6f18fee40a6b877b0f330e33b5497c1fc0370a4d",
"x-amz-server-side-encryption": "AES256",
"cache-control": "no-store"
}
},
"expiresAt": "2026-11-17T09:25:00.000Z"
}{
"errorCode": "E0001",
"message": "Invalid request parameters",
"errors": [
{
"field": "shipmentType",
"message": "Invalid option: expected one of \"IMPORT\"|\"EXPORT\""
}
],
"requestId": "550e8400-e29b-41d4-a716-446655440000"
}{
"errorCode": "E0002",
"message": "Missing, invalid, expired or revoked Eaze Customs API credential",
"errors": [],
"requestId": "550e8400-e29b-41d4-a716-446655440000"
}{
"errorCode": "E0003",
"message": "The import module is not enabled for this credential",
"errors": [],
"requestId": "550e8400-e29b-41d4-a716-446655440000"
}{
"errorCode": "E0006",
"message": "Idempotency-Key was already used with a different request",
"errors": [
{
"code": "idempotency_key_reused",
"message": "Idempotency-Key was already used with a different request"
}
],
"requestId": "550e8400-e29b-41d4-a716-446655440000"
}{
"errorCode": "E9999",
"message": "Upload exceeds the 20971520 byte limit",
"errors": [],
"requestId": "550e8400-e29b-41d4-a716-446655440000"
}{
"errorCode": "E0007",
"message": "Only CSV and XLSX uploads are supported",
"errors": [],
"requestId": "550e8400-e29b-41d4-a716-446655440000"
}{
"errorCode": "E0008",
"message": "Public API rate limit exceeded",
"errors": [],
"requestId": "550e8400-e29b-41d4-a716-446655440000"
}{
"errorCode": "E0009",
"message": "Unexpected server error",
"errors": [],
"requestId": "550e8400-e29b-41d4-a716-446655440000"
}Authorizations
Headers
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 - 200Pattern:
^[!-~]{1,200}$Example:
"6f1c0b3e-8a21-4c5d-9e10-1a2b3c4d5e6f"
Body
application/json
Response
Successful response.