Get order delivery labels
get_order_delivery_labelsFetch delivery labels for order chunks, receiving PDFs with address, tracking number, and barcode. Handles skipped chunks with reasons and returns available labels.
Instructions
Get the delivery labels (ярлыки) of an order's delivery chunks — the PDF with the address, tracking number and barcode that goes onto the parcel. The first request per chunk and format asks the delivery service for the document, later ones return the same one. The PDF links are signed and expire at expires_at — do not store them, re-request instead. Chunks with no label (self-pickup, delivery not created yet, service that does not print labels, requested format unsupported, or a failure on the service's side — reason GENERATION_FAILED, which is temporary and worth retrying) come back in skipped with a reason, while the remaining chunks still return their labels. For the handover act covering a whole warehouse + service group use generate_order_waybills instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Order ID (UUID). | |
| label_format | No | Label size in millimetres. Omit to let each delivery service use its own default. Which sizes a service prints comes from get_delivery_label_formats: a service in EXPLICIT_FORMATS mode skips the chunk with FORMAT_NOT_SUPPORTED when the size is not on its list, one in PROVIDER_DEFAULT mode ignores this parameter entirely (its labels come back with an empty label_format). |