Electronic Trade Documents Upload API is an international shipping document upload solution that simplifies global shipping needs and allows you to electronically upload customs documentation required for international shipments.
You can submit most of your trade documents electronically relieving yourself from printing or attaching trade documents with the shipment.
This API simplifies and accelerates customs clearance by replacing physical paperwork with electronic documentation.
The customs and other agencies receive electronically sent documents faster than paper copies attached with your shipment. The customs clearance process is also optimized as capturing and sharing of critical trade information is done at earlier stages of shipping.
Note:
How the Workflow Operates
Step 1: Submit Electronic Trade Document Metadata
Initiate the process by making a POST request to the ETD Upload API with the document metadata (e.g., file name, document type, and content type).
In response, the system returns:
s3FileId
used to reference the uploaded document laterStep 2: Upload the Document File
After receiving the response, you must perform a separate HTTP PUT request to the provided url.
This request must upload the binary content of the file (e.g., PDF or image)
Upload the same file whose metadata was submitted in step-1
Step 3: Reference the Document in Shipment Creation
Once the ETD uploaded successfully, the document is stored in the S3 bucket.
s3FileId
in Create International Shipment API under customsDocuments
object.The pre-signed S3 upload url is generated successfully.
Invalid request.
The request could not be authorized.
The requested resource was not found.
The request could not be completed due to an internal error.
{- "format": "PDF",
- "name": "string",
- "carrierAccountId": "string",
- "documentType": "INVOICE"
}
{- "fileName": "invoice.pdf",
- "s3FileId": "uploads/shipping/intl_docs/.../invoice.pdf",
}