Move Stock
move_stockMove stock between locations — bin to bin inside a warehouse, or straight into another managed warehouse — the Inventory page's Move action. Only available (unreserved) units move. Each line names the item, quantity, source location (optional when the item is in one location) and destination location (defaults to the item's default location in the destination warehouse). The preview shows stock at both ends before and after. Two-step: preview=true, then commit with the previewReceipt. For a tracked in-transit shipment between warehouses use create_transfer_order instead. Max 100 lines per call.
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": {
"lines": "<lines>"
},
"name": "move_stock"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | Yes | Move lines (max 100). All lines commit together or not at all. | |
| 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. Client-pinned credentials omit this. | |
| warehouseId | No | Source Internal warehouse id (GUID). May be omitted when the tenant has exactly one Internal warehouse. | |
| 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 | ||
| lines | No | ||
| applied | No | ||
| preview | No | ||
| warnings | No | ||
| expiresAt | No | ||
| actionItemId | No | ||
| confirmation | No | ||
| correlationId | No | ||
| approvalResult | No | ||
| idempotencyKey | No | ||
| previewReceipt | No | ||
| idempotentReplay | No |