upsert_supplier_item
Add or change a purchase price. Required: supplier_id, key, and a price as unit_price (minor units) or price_chf. Optional: name, description, unit, vat_rate, offer_item_key (links it to our own position so the margin can be read off), active, sort.
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_id": "<supplier_id>",
"key": "<key>"
},
"name": "upsert_supplier_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Unique key of the purchase price within the supplier; existing key is updated | |
| name | No | Name of the supplier item | |
| sort | No | Sort order | |
| unit | No | Unit of measure | |
| active | No | Whether the entry is active | |
| vat_rate | No | VAT rate in percent | |
| price_chf | No | Purchase price as text in main units, e.g. '450' or "1'234.56" | |
| unit_price | No | Unit price | |
| description | No | Description of the supplier item | |
| supplier_id | Yes | ID of the supplier | |
| offer_item_key | No | Key of our own price list line, to read off the margin |