Create shipment batch
deftship_create_batchCreate a batch of up to 1,000 USPS shipments that share a shipper and service. Validates shipments asynchronously without making payments.
Instructions
Create a shipment batch (beta; own-USPS-account only) with up to 1,000 shipments that share a shipper and service. Items are validated asynchronously; poll deftship_get_batch until status is 'ready', then deftship_ship_batch. Does not spend money yet.
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": {
"shipper_id": "<shipper_id>",
"service": "<service>",
"batch_shipments": "<batch_shipments>"
},
"name": "deftship_create_batch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| service | Yes | Service code applied to all shipments (e.g. 'USPS-3'). | |
| shipper_id | Yes | Shipper id to use for the batch. | |
| batch_shipments | Yes | Shipments to include. |