Draft a purchase order
purchasing_create_orderDraft an order to a supplier: lines with an optional Inventory sku (received stock then comes into Inventory at the line's unit cost), a description, quantity, unit cost and tax rate; the currency (default the supplier's), the expected delivery date and the stock location deliveries go to (default Main). A draft changes freely (purchasing_update_order) until it is sent; it has no number yet. 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": {
"supplier": "<supplier>",
"lines": "<lines>"
},
"name": "purchasing_create_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | Yes | ||
| notes | No | Printed above the lines, e.g. delivery instructions. | |
| currency | No | ISO 4217, e.g. "EUR". Default: the supplier's. | |
| location | No | An Inventory location for received stock. Default: Main. | |
| supplier | Yes | A supplier_id, or the supplier's name. | |
| expected_on | No | When delivery is expected, YYYY-MM-DD. |