Retrieve label documents
After creating shipping labels, useGET /labels/{id} to retrieve printable airway bill documents. Pass a single identifier or comma-separated identifiers for batch retrieval. This guide covers the retrieval flow, batch requests, document formats, and practical considerations.
Retrieve the document URL
Use theid from the label creation response:
Response
200 OK
| Field | Description |
|---|---|
id | The label UUID (same as the request parameter). |
customerOrderNumber | Customer order number associated with this label. |
url | Direct download URL for the airway bill document. |
labelFormat | Document format: pdf or png. |
Download and print
Download the document from the returnedurl:
Document behavior
- Permanent URL — The document URL does not expire. You can store it and download the document at any time.
- Formats — Documents are available as PDF or PNG, depending on the courier and label configuration.
- Re-retrieval — Calling
GET /labels/{id}multiple times returns the same URL. The endpoint is naturally idempotent.
Batch retrieval
Retrieve multiple label documents in a single request by passing comma-separated identifiers. You can mix label UUIDs and customer order numbers.Batch response
200 OK
| Field | Description |
|---|---|
labels | Array of successfully resolved label documents. Missing or failed labels are omitted. |
labels[].id | Label UUID. |
labels[].customerOrderNumber | Customer order number associated with this label. |
labels[].url | Direct download URL for the airway bill document. |
labels[].labelFormat | Document format: pdf or png. |
Missing or failed labels are silently omitted from the response. Compare the returned
labels array against your requested identifiers to detect any that were not resolved.Error handling
| Status | Meaning | Action |
|---|---|---|
| 200 | Document URL retrieved | Download from the url field |
| 403 | Access denied | The label belongs to a different account |
| 404 | Label not found | Verify the label ID is correct |
| 502 | Upstream service error | Retry with exponential backoff |
Next steps
Track the shipment
Monitor shipment progress after printing and attaching the label.
Error Handling
Full reference for all HTTP status codes and error response formats.