Direct API
Label Download
Download shipping labels in PDF format
POST
/orders/labels
Download shipping labels in PDF format for multiple orders combined into a single document
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| order_ids | array | Yes | Array of integers - Order IDs to generate labels for |
| format | string | Yes | Label format - "A4" or "A6" |
Request Example
REQUESTJSON
{
"order_ids": [
100,
102
],
"format": "A4"
}Response Codes
| Code | Status | Description |
|---|---|---|
| 200 | Success | PDF with all selected order labels downloaded |
| 400 | Bad Request | Invalid format or order IDs |
| 401 | Unauthorized | Invalid or missing API key |
| 403 | Forbidden | Customer doesn't own one or more of these orders |
| 404 | Not Found | Orders not found |
| 500 | Internal Server Error | Server error occurred |
Response Format
| Field | Type | Description |
|---|---|---|
| Response Body | binary | PDF file containing all requested shipping labels |
| Content-Type | string | application/pdf |
| Content-Disposition | string | attachment; filename="labels.pdf" |
Response Example
RESPONSEJSON
Binary PDF file containing all requested shipping labels combined into a single document
Response Headers:
Content-Type: application/pdf
Content-Disposition: attachment; filename="labels.pdf"Complete API Reference
For interactive testing and additional technical details, visit our complete Swagger documentation.
View in Swagger Documentation
