Remove items from a batch
deftship_remove_batch_itemsRemove specific items from a batch by item hash IDs, up to 10,000 items, and delete their associated shipment orders. Requires batch not in validating, processing, or completed status.
Instructions
Remove specific items from a batch by their item hash ids (max 10,000). Also deletes the associated shipment orders. The batch must not be validating, processing or completed.
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": {
"batch_id": "<batch_id>",
"batch_shipment_ids": "<batch_shipment_ids>"
},
"name": "deftship_remove_batch_items"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| batch_id | Yes | The batch hash id. | |
| batch_shipment_ids | Yes | Item hash ids to remove. |