Download the label
GET/v1/orders/{id}/label
scope orders.read
Returns the label BYTES, not JSON — send it straight to a printer. ZPL is what most warehouse printers want.
PDF labels come in a page size: ?size=a6 (105 × 148 mm, label printer), a5, a4, or original (the courier's own PDF, usually an A4 sheet with the label printed twice). Without size you get the size the seller chose in their Biklo settings, and A6 if they never chose. Each distinct label gets its own portrait page; a duplicate copy is dropped, every parcel of a multi-parcel order is kept. A4/A5 print at real size, A6 fills the page. The X-Label-Size response header says what you received — original while Biklo has label formatting switched off. size does not apply to ZPL.
Query parameters#
| Name | Example | |
|---|---|---|
format | pdf | pdf or zpl |
size | a6 | PDF page size: a6, a5, a4 or original. Default: the seller's saved choice, else a6. |
Response#
| Field | Type | Description |
|---|---|---|
(binary) | file | The label BYTES, not JSON — send them straight to a printer. Content-Type is application/pdf or application/octet-stream for ZPL, chosen by ?format=. Request a waybill first, or you get no_awb (409). An unknown size is invalid_size (400). |
X-Label-Size | header | The page size actually served: a6, a5, a4 or original. |
Example
"<binary: application/pdf>"