Pack Items
pack_itemsPack picked units into a package on a ship list, or take them out — the packing screen. Each line names a ship list line (lineId, or the SKU) and a quantity in the line's unit; lot-, expiry- and serial-tracked lines name which picked lots, expiries or serials go in (optional when only one choice fits). Lines go into a new package unless packageNumber names an existing one; package sets the box (container from list_shipping_containers, or dimensions), weight, shipping method, tracking number and cost — on an existing package only the fields given change. action=unpack takes a line out of the named package (omit quantity to take it all out). A list not started yet is started first (shipper defaults to you). Two-step: preview=true, then commit with the previewReceipt. Then ship_out ships the fully packed list.
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": {
"shipListId": "<shipListId>"
},
"name": "pack_items"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | No | Lines to pack or unpack (max 100). All lines commit together or not at all. | |
| package | No | Box, weight, shipping method and tracking for the package. | |
| preview | No | Step 1 of the required two-step write: set true to validate and receive a structured preview plus a single-use previewReceipt. Nothing is written until the commit call. | |
| shipper | No | Shipper (team member email or user id) when this call starts the list. Defaults to you. | |
| clientId | No | Optional client id (GUID) for operator (unpinned) credentials on 3PL tenants. | |
| shipListId | Yes | Ship list id (GUID) or number from list_ship_lists. | |
| packageNumber | No | Existing package number (from get_ship_list) to pack into or unpack from. Omit to pack into a new package. | |
| idempotencyKey | No | Caller-generated idempotency key; required with previewReceipt to commit. | |
| previewReceipt | No | Step 2: the receipt returned by the preview call. Supply with a fresh idempotencyKey to commit. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| applied | No | ||
| preview | No | ||
| expiresAt | No | ||
| packageId | No | ||
| shipListId | No | ||
| fullyPacked | No | ||
| statusAfter | No | ||
| actionItemId | No | ||
| confirmation | No | ||
| correlationId | No | ||
| packageNumber | No | ||
| approvalResult | No | ||
| idempotencyKey | No | ||
| previewReceipt | No | ||
| shipListNumber | No | ||
| idempotentReplay | No |