Send stock transfer
hub_create_stock_transferMove stock from one outlet to another — 'send 10 of these from the warehouse to the King Street shop'. CONFIRM WITH THE MERCHANT FIRST, naming both outlets and every quantity: this writes immediately and there is no undo from here. The stock LEAVES the source outlet at once; the destination only gains it when someone confirms arrival with receive_stock_transfer, so until then those units are in transit and count in neither shop. Tell the merchant that. Variant ids come from get_products, outlet ids from get_outlets. Check availability with get_stock first: sending more than the source holds is rejected, and so is sending a variant whose stock is not tracked at the source — there is no count there to move. To correct a count in place (damage, theft, a recount) use adjust_stock instead; to book in a supplier delivery use adjust_stock with STOCK_RECEIVED.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | A note staff will read on the transfer | |
| items | Yes | What to move. One entry per variant | |
| invoice | No | Invoice or reference number, if the merchant gave one | |
| toOutletId | Yes | Destination outlet id from get_outlets — must differ from the source | |
| fromOutletId | Yes | Source outlet id from get_outlets — stock leaves here immediately |