Print Shipping Labels (Bulk)
starshipit_print_labelsPrint shipping labels for multiple StarShipIt orders in one API call, returning label URLs, tracking numbers, carrier, and service per order. Supports reprinting existing labels.
Instructions
Print shipping labels for multiple orders at once in StarShipIt.
When to use: Use this tool when you need to generate carrier labels for two or more orders in a single API call. For a single order, starshipit_print_label gives more control (carrier override, package dimensions).
Parameters:
order_ids(required): Array of numeric StarShipIt order IDs to print labels for. Must contain at least one ID.reprint(optional): Set totrueto reprint previously generated labels for the specified orders. Defaults tofalse.
Returns: An array of label results — one entry per order — each containing the label URL or base64-encoded label data, the assigned tracking number, carrier, and service. Individual orders that fail will include an error field while others may succeed.
Example success response:
{
"success": true,
"labels": [
{
"order_id": 101,
"tracking_number": "TRACK001",
"label_url": "https://cdn.starshipit.com/labels/label-101.pdf",
"carrier": "AUSPOST"
},
{
"order_id": 102,
"tracking_number": "TRACK002",
"label_url": "https://cdn.starshipit.com/labels/label-102.pdf",
"carrier": "AUSPOST"
}
]
}Error cases: 400 if any order IDs are invalid or missing required order data; 404 if one or more orders do not exist; 409 if labels already exist and reprint is not true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reprint | No | Set to true to reprint previously generated labels (default: false) | |
| order_ids | Yes | Array of StarShipIt order IDs to print labels for |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| errors | No | Validation or processing errors returned by StarShipIt | |
| object | No | The response payload when StarShipIt returns a non-object value | |
| success | No | StarShipIt success flag (a boolean on most endpoints) |