Documentation
Endpoints for generating and retrieving shipment-related documents.
Get shipping label
Get the shipping label for a shipment in various formats. Supports both JSON and XML responses. XML format follows the EDIFACT D96A standard for shipping label interchange, while JSON is provided for modern API integrations.
path Parameters
shipmentId
stringrequired
query Parameters
format
stringLabel format
Headers
Accept
stringResponse format. Use application/xml for EDI-compliant responses following EDIFACT D96A standard.
Responses
shipmentId
stringformat
stringid
stringoptionalurl
stringoptionalcreatedAt
stringoptionalexpiresAt
stringoptional
Get commercial invoice
Generate an enhanced commercial invoice with digital signatures, multiple format support, and customs pre-clearance capabilities. Supports both standard formats and country-specific templates.
path Parameters
shipmentId
stringrequired
query Parameters
format
stringDocument format. XML/EDI formats follow international customs standards.
template
stringCountry-specific template to use
include
string[]Additional documents to include
Responses
documents
object[]optionalcustomsStatus
stringoptional
Get commercial invoice (legacy)
Generate a basic commercial invoice for an international shipment. This endpoint is deprecated, please use /shipments/{shipmentId}/documents/v2/commercial-invoice
for enhanced features including digital signatures, multiple formats, and customs pre-clearance.
path Parameters
shipmentId
stringrequired
query Parameters
format
string
Responses
url
stringoptionalexpiresAt
stringoptional