Create batch from orders
create_batch_from_ordersCreates a rated Pirate Ship batch from imported store orders using a saved package for size and weight; no labels are purchased or paid.
Instructions
Turns store orders into a batch of shipments with one saved package; nothing is bought.
Creates a Pirate Ship batch from imported orders: recipients come from the orders, size and weight from the saved package. The batch is rated, not paid: no label is bought. Large batches are built in the background (progress in the answer).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"order_ids": "<order_ids>",
"package_id": "<package_id>"
},
"name": "create_batch_from_orders"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | Batch name. Default: today's date. | |
| order_ids | Yes | Order ids from list_import_orders. | |
| package_id | Yes | Saved package id from list_saved_packages. | |
| ship_from_id | No | From list_ship_from_addresses. Default: the default one. | |
| override_multiple | No | Use the saved package also for orders with several items. |