latestOpenAPI 3.0.0Proprietary2026-08-22131410675.6 KB

8d8a7cf79204

documents

List documents for a shipment

Retrieve the carrier documents registered against a shipment, including their processing status.

get/v1/shipments/{shipment_id}/documents

Response

The request was a success.

document_idstring

The unique identifier of the document.

type'commercial_invoice' | 'certificate_of_origin' | 'usmca_commercial_invoice_certification_of_origin' | 'usmca_certification_of_origin' | 'pro_forma_invoice' | 'other' | 'authorization_form' | 'export_accompanying_document' | 'export_license' | 'import_permit' | 'one_time_nafta' | 'power_of_attorney' | 'packing_list' | 'sed_document' | 'shippers_letter_of_instruction' | 'declaration' | 'section_232_customs_affidavit'

The type of carrier document being registered. Supported values vary by carrier. See the Carrier Document Upload guide for the document types each carrier accepts.

file_namestring

The file name of the document.

status'awaiting_upload' | 'processing' | 'processing_claimed' | 'invalid' | 'uploaded' | 'queued' | 'sent' | 'failed'

The processing status of a carrier document.

  • awaiting_upload - The document has been registered and is waiting for the file to be uploaded to the provided upload target.
  • processing - The uploaded file is being processed.
  • processing_claimed - The document has been claimed for processing.
  • invalid - The document failed validation and cannot be used.
  • uploaded - The file has been uploaded successfully and is ready to be sent to the carrier.
  • queued - The document is queued to be sent to the carrier.
  • sent - The document has been transmitted to the carrier.
  • failed - Sending the document to the carrier failed.
errorstring nullable

A description of the error when the document is invalid or failed; otherwise null.

external_idstring nullable

The carrier-assigned identifier for the document once it has been sent; otherwise null.

Example response

[
  {
    "document_id": "7f3c1b2a-9d4e-4f5a-8c6b-2e1d0a9b8c7d",
    "type": "usmca_commercial_invoice_certification_of_origin",
    "file_name": "usmca-certification-of-origin.pdf",
    "status": "awaiting_upload",
    "error": "The uploaded file could not be read.",
    "external_id": "1Z999AA10123456784"
  }
]