Swiftazu

Documents

Get label

The labels of a dispatched order, one page per box, as a PDF.

GET/v1/orders/{orderId}/label
Bearer tokenReturns a PDF fileSuccess 200

Available once the order has been dispatched and has an air waybill number.

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/label" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  --output getLabel.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.
400order_not_dispatchedThe order has no air waybill yet. Dispatch it first.

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