Reserve Stock
reserve_stockHold stock so it cannot be sold or picked, or release a manual hold — the Inventory page's Reserve and Unreserve actions. Each line names the item, reserve or release, the quantity, and the location (optional when the item is in one location). Reserving needs that many available units; releasing needs that many reserved units. Sales orders reserve their own stock — use this for manual holds (quality hold, set-aside for a customer). Two-step: preview=true, then commit with the previewReceipt. 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": "reserve_stock"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | Yes | Reservation 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 | 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 |