Pick Items
pick_itemsPick (or un-pick) units on a pick list — the pick screen's collect and un-pick. Each line names a pick list line (lineId, or the SKU), a quantity in the line's unit and the location it comes from (optional when one location can serve it); lot-, expiry- and serial-tracked items name their lot, expiry or serials. Picking reserves the units at that location for the order. Or set autoAllocate=true (no lines) to pick every remaining line from the oldest stock first, as the Auto allocate button does; serial-tracked lines are left for a manual pick. A list not started yet is started first (picker defaults to you). The preview shows each line's picked quantity before and after. Two-step: preview=true, then commit with the previewReceipt. Then complete_pick_list hands the picked units to packing.
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": {
"pickListId": "<pickListId>"
},
"name": "pick_items"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | No | Lines to pick or un-pick (max 100). All lines commit together or not at all. Omit with autoAllocate=true. | |
| picker | No | Picker (team member email or user id) when this call starts the list. Defaults to you. | |
| 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. | |
| clientId | No | Optional client id (GUID) for operator (unpinned) credentials on 3PL tenants. | |
| pickListId | Yes | Pick list id (GUID) or number from list_pick_lists. | |
| autoAllocate | No | Pick every remaining line from the oldest stock first (earliest expiry, then oldest receipt), instead of naming lines. | |
| 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 | ||
| pickListId | No | ||
| fullyPicked | No | ||
| statusAfter | No | ||
| actionItemId | No | ||
| confirmation | No | ||
| correlationId | No | ||
| approvalResult | No | ||
| idempotencyKey | No | ||
| pickListNumber | No | ||
| previewReceipt | No | ||
| idempotentReplay | No |