curl --request POST \
--url https://staging.api.eazecustoms.com/public/v1/shipments/{shipmentId}/details/import \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--header 'X-Eaze-Client-Ref: <x-eaze-client-ref>' \
--data '
{
"uploadId": "aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa",
"manifestTemplateId": "77777777-7777-4777-8777-777777777777",
"mode": "INITIAL"
}
'{
"operationId": "bbbbbbbb-bbbb-4bbb-8bbb-bbbbbbbbbbbb",
"status": "queued"
}{
"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": "E0004",
"message": "Shipment not found",
"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": "Selected Manifest Template \"Amsterdam air manifest\" (77777777-7777-4777-8777-777777777777) does not match the uploaded file headers. The file exactly matches authorized Manifest Template \"Rotterdam sea manifest\" (12121212-1212-4212-8212-121212121299). Submit a new import with that template; the template was not switched automatically.",
"errors": [
{
"code": "manifest_invalid",
"message": "Selected Manifest Template \"Amsterdam air manifest\" (77777777-7777-4777-8777-777777777777) does not match the uploaded file headers. The file exactly matches authorized Manifest Template \"Rotterdam sea manifest\" (12121212-1212-4212-8212-121212121299). Submit a new import with that template; the template was not switched automatically."
}
],
"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"
}{
"errorCode": "E0011",
"message": "Public API background processing is not enabled",
"errors": [],
"requestId": "550e8400-e29b-41d4-a716-446655440000"
}Import Manifest
Import a manifest into an empty Import or Export Clearance shipment.
The API checks that the uploaded file contains the required headers before accepting the import.
- Invalid headers (HTTP 422): The API returns an error immediately. No import Operation is created, and you can reuse the same uploaded file after correcting the file or template selection.
- Valid headers (HTTP 202): The API accepts the import for background processing. Extra columns are allowed.
- Check the result: Use the returned
operationIdto track the import status and view any row validation errors.
curl --request POST \
--url https://staging.api.eazecustoms.com/public/v1/shipments/{shipmentId}/details/import \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--header 'X-Eaze-Client-Ref: <x-eaze-client-ref>' \
--data '
{
"uploadId": "aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa",
"manifestTemplateId": "77777777-7777-4777-8777-777777777777",
"mode": "INITIAL"
}
'{
"operationId": "bbbbbbbb-bbbb-4bbb-8bbb-bbbbbbbbbbbb",
"status": "queued"
}{
"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": "E0004",
"message": "Shipment not found",
"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": "Selected Manifest Template \"Amsterdam air manifest\" (77777777-7777-4777-8777-777777777777) does not match the uploaded file headers. The file exactly matches authorized Manifest Template \"Rotterdam sea manifest\" (12121212-1212-4212-8212-121212121299). Submit a new import with that template; the template was not switched automatically.",
"errors": [
{
"code": "manifest_invalid",
"message": "Selected Manifest Template \"Amsterdam air manifest\" (77777777-7777-4777-8777-777777777777) does not match the uploaded file headers. The file exactly matches authorized Manifest Template \"Rotterdam sea manifest\" (12121212-1212-4212-8212-121212121299). Submit a new import with that template; the template was not switched automatically."
}
],
"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"
}{
"errorCode": "E0011",
"message": "Public API background processing is not enabled",
"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.
1 - 200^[!-~]{1,200}$"6f1c0b3e-8a21-4c5d-9e10-1a2b3c4d5e6f"
Body
Optional. Public IDs of eligible Declaration Templates. Omit this field, or send an empty array, to use only the eligible defaults mapped to the selected Manifest Template. Explicit templates must be active, assigned to the client, allowed for the Shipment direction, and mapped to the Manifest Template. At most one template per procedure type, and at most 20 IDs.
20