Transfer stock between warehouses
dolibarr_stock_transferMoves a product quantity between warehouses as linked stock movements and returns a preview unless confirm=true; provide a lot for lot-tracked products.
Instructions
Moves a quantity of a product from one warehouse to another, as two linked stock movements (out of the source, into the destination) sharing one inventory code. Lot-tracked products need the lot. This step cannot simply be undone: without confirm=true it only returns a preview.
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": {
"product_id": "<product_id>",
"qty": "<qty>",
"label": "<label>",
"from_warehouse_id": "<from_warehouse_id>",
"to_warehouse_id": "<to_warehouse_id>"
},
"name": "dolibarr_stock_transfer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lot | No | Lot or serial number; required for lot-tracked products. | |
| qty | Yes | Quantity in the product's base unit. | |
| label | Yes | Why: shown in the stock movement journal. | |
| reason | No | One line on why, kept in the audit log. Required when confirm is true. | |
| confirm | No | false (default) = change nothing, only show what would happen. true = do it. Set true only after the user has explicitly agreed to this exact step. | |
| product_id | Yes | ||
| to_warehouse_id | Yes | ||
| from_warehouse_id | Yes |