Documents
Get label
The labels of a dispatched order, one page per box, as a PDF.
GET
/v1/orders/{orderId}/labelBearer tokenReturns a PDF fileSuccess 200
Available once the order has been dispatched and has an air waybill number.
Request
Headers
| Field | Type | Description |
|---|---|---|
Authorizationrequired | string | The access token from Get token, as "Bearer <token>". |
Path parameters
| Field | Type | Description |
|---|---|---|
orderIdrequired | string | The 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.pdfResponse
The response body is the PDF file itself (Content-Type: application/pdf), not JSON.
Errors
| HTTP | Code | Meaning |
|---|---|---|
| 404 | order_not_found | No order of yours has this id or air waybill number. |
| 404 | document_unavailable | The file could not be read. Try again. |
| 400 | order_not_dispatched | The order has no air waybill yet. Dispatch it first. |
Every call can also return the shared errors listed on the Overview page. Overview