Get Item Label PDF
machship_get_item_label_pdfGenerate and return item or package labels for a consignment as a PDF, with optional A4 formatting, so you can print shipping labels directly.
Instructions
Returns item/package labels for a consignment as a PDF. Returns { fileBase64, contentType, sizeBytes }. contentType comes from the response header.
Args:
consignmentId (number): Consignment ID
printA4 (boolean, optional): Print in A4 format (default: label-size)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| printA4 | No | Print in A4 format | |
| consignmentId | Yes | Consignment ID |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| errors | No | Validation errors returned by Machship, if any | |
| object | No | Response payload from the Machship API |