documents
Register a document for a shipment
Register a carrier document against a shipment. The response returns an upload target; upload the document file to that target so it can later be sent to the carrier.
post/v1/shipments/{shipment_id}/documents
Request body
Example request
{
"type": "usmca_commercial_invoice_certification_of_origin",
"format": "PDF",
"file_name": "usmca-certification-of-origin.pdf"
}Response
The document was registered successfully.
Example response
{
"document_id": "019eb24e-cd4e-7609-b740-c2324fe93272",
"upload": {
"url": "https://carrier-doc-upload.s3.amazonaws.com",
"fields": {
"Content-Type": "application/pdf",
"key": "019eb24e-cd4e-7609-b740-c2324fe93272.pdf",
"x-amz-meta-document-id": "019eb24e-cd4e-7609-b740-c2324fe93272",
"x-amz-meta-seller-id": "8801990",
"X-Amz-Algorithm": "AWS4-HMAC-SHA256",
"X-Amz-Credential": "ASIA.../20260610/us-east-1/s3/aws4_request",
"X-Amz-Date": "20260610T161249Z",
"Policy": "eyJleHBpcmF0aW9uIjoi...",
"X-Amz-Signature": "b81189b9df29...",
"X-Amz-Security-Token": "IQoJb3JpZ2lu..."
}
}
}