Receive a delivery
purchasing_receiveRecord what arrived on a sent order: lines [{line, quantity}] (line numbers as the order lists them), or all: true for everything still to come. Lines with a SKU come into Inventory as receive moves at the ordered unit cost, at the order's location (or location); when the order's currency is not the item's, give that line's unit_cost in the item's currency. More than ordered is refused (take the extra in with inventory_move). All lines or none. The order becomes partial, or received when nothing is left to come. Costs $0.01 per call; nothing if it fails.
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": {
"order": "<order>"
},
"name": "purchasing_receive"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| all | No | Receive everything still to come. | |
| date | No | When it arrived. Default today. | |
| lines | No | ||
| order | Yes | The order_id, or the order's number like "PO-0007". | |
| location | No | Where the stock goes, instead of the order's location. |