Swiftazu

Documents

Get commercial invoice

The commercial invoice of a cross-border order, as a PDF.

GET/v1/orders/{orderId}/commercial-invoice
Bearer tokenReturns a PDF fileSuccess 200

Only for a cross-border order with customs details.

Request

Headers

FieldTypeDescription
AuthorizationrequiredstringThe access token from Get token, as "Bearer <token>".

Path parameters

FieldTypeDescription
orderIdrequiredstringThe order's id (the UUID, not the short Order ID).
Example request
curl -X GET "https://api.swiftazu.com/v1/orders/dffcd25d-6eb3-4b90-868c-6deca160ad74/commercial-invoice" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  --output getCommercialInvoice.pdf

Response

The response body is the PDF file itself (Content-Type: application/pdf), not JSON.

Errors

HTTPCodeMeaning
404order_not_foundNo order of yours has this id or air waybill number.
404document_unavailableThe file could not be read. Try again.
400not_cross_borderThe document exists only for a cross-border order.
400invalid_requestThe request broke a business rule. message says which one.

Every call can also return the shared errors listed on the Overview page. Overview