Save voucher
save_voucherOwner/admin only. Create or update a voucher code for a store (one code per order, discount on goods value without shipping). art 'prozent' (wert 0–100) or 'betrag' (EUR). Optional: mindestwert (min goods value), gueltig_ab/gueltig_bis (YYYY-MM-DD), max_einloesungen (total), max_je_kunde, kategorien (category ids; empty = all), notiz. With id + only aktiv:false/true it just (de)activates.
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": {
"store_id": "<store_id>"
},
"name": "save_voucher"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| art | No | ||
| code | No | ||
| wert | No | ||
| aktiv | No | ||
| notiz | No | ||
| store_id | Yes | ||
| gueltig_ab | No | ||
| kategorien | No | ||
| gueltig_bis | No | ||
| mindestwert | No | ||
| max_je_kunde | No | ||
| max_einloesungen | No |