Create Transfer Order
create_transfer_orderCreate a stock TRANSFER ORDER moving items from one warehouse node to another — the action a reorder/transfer RECOMMENDATION points at (replenishing a transfer-mode 3PL/FBA node from a supplying DC). Lines are given by SKU + quantity; the item's cost, name and default unit of measure are resolved from the catalog. Source and target must be two different warehouses in your tenant. By default the order is created as an editable DRAFT (status "created") that reserves no stock — the same landing state as the UI and the autopilot sweep. Set submit=true to also SUBMIT it: that validates on-hand availability at the source, reserves the stock, and moves it to "pending" to begin the pick/pack/ship flow; if the source is short, the whole call is rejected and nothing is created. A client-pinned token can only transfer its own client's items — a SKU owned by another client is reported NOT_FOUND. Max 500 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": {
"sourceWarehouseId": "<sourceWarehouseId>",
"targetWarehouseId": "<targetWarehouseId>",
"lines": "<lines>"
},
"name": "create_transfer_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Optional customer-facing note recorded on the transfer order. | |
| lines | Yes | The lines to transfer: each an item SKU and a quantity (in the item's default UOM). | |
| submit | No | Submit the order after creating it: validate source availability, reserve stock, and move it to "pending". Default false = leave it as a draft that reserves nothing. | |
| 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 created until the commit call. | |
| internalNote | No | Optional internal note recorded on the transfer order. | |
| idempotencyKey | No | Caller-generated idempotency key; required with previewReceipt to commit. | |
| previewReceipt | No | Step 2 of the required two-step write: the receipt returned by the preview call. Supply together with a fresh idempotencyKey to commit; calls without it are refused. | |
| sourceWarehouseId | Yes | Source warehouse id (GUID) — the node stock moves OUT of. | |
| targetWarehouseId | Yes | Target warehouse id (GUID) — the node stock moves IN to. Must differ from the source. | |
| expectedArrivalDate | No | Expected arrival calendar date (YYYY-MM-DD); omit when unknown. Used by manufacturing supply planning. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| ok | No | ||
| type | No | ||
| lines | No | ||
| number | No | ||
| status | No | ||
| preview | No | ||
| expiresAt | No | ||
| submitted | No | ||
| totalAmount | No | ||
| actionItemId | No | ||
| confirmation | No | ||
| correlationId | No | ||
| approvalResult | No | ||
| idempotencyKey | No | ||
| previewReceipt | No | ||
| idempotentReplay | No | ||
| sourceWarehouseId | No | ||
| targetWarehouseId | No | ||
| expectedArrivalDate | No | ||
| sourceWarehouseName | No | ||
| targetWarehouseName | No |