Change a draft order, or mark it sent
purchasing_update_orderChange a draft: its supplier, lines (they replace the old ones), currency, expected delivery date, stock location or notes. mark_sent: true records it as sent without emailing anyone (you sent it some other way): it takes the next number (PO-0001 on, without gaps) and its PDF is made. A sent order no longer changes; to email it, use purchasing_send_order instead. 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_update_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | No | ||
| notes | No | ||
| order | Yes | The order_id, or the order's number like "PO-0007". | |
| currency | No | ISO 4217, e.g. "EUR". Default: the supplier's. | |
| location | No | ||
| supplier | No | A supplier_id, or the supplier's name. | |
| mark_sent | No | ||
| expected_on | No | YYYY-MM-DD, or null. |