upsert_offer_item
Add or change a line in the price list. Required: key, name, and a price: unit_price in MAIN units (450 = 450.00 — NOT cents), or unit_price_minor in cents/rappen, or price_chf ('450' / "1'234.56"). Optional: description, unit (default 'Stk'), vat_rate (default: the seller country's standard rate), is_standard (proposed on every new quote), active, sort. An existing key is updated, not duplicated.
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": {
"key": "<key>",
"name": "<name>"
},
"name": "upsert_offer_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Unique key of the price list line; an existing key is updated | |
| name | Yes | Name of the offer 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 | Price as text in main units, e.g. '450' or "1'234.56" | |
| unit_price | No | MAIN units: 450 = 450.00 | |
| description | No | Description of the offer item | |
| is_standard | No | true proposes this line on every new quote | |
| unit_price_minor | No | Cents/rappen, instead of unit_price. |