Sevdesk set voucher account
sevdesk_set_voucher_accountChange the booking CATEGORY (AccountingType) on the positions of a voucher that is already in sevDesk — without reopening it and without touching its payment. READ THIS BEFORE REACHING FOR sevdesk_reopen_voucher: that tool's warning that sevDesk refuses every change to a booked voucher is true for the VOUCHER object, but NOT for its POSITIONS. PUT /VoucherPos/{id} is accepted on a voucher at status 1000 (fully paid), measured on 18.09.2026 against two real Hetzner vouchers: the category changed, and status, sum and booked payment all stayed exactly as they were. So a wrong category is NOT a reason to reopen a voucher, take back its payment and push it again — that trade was made before only because nobody had tried this. WHY IT MATTERS EVEN THOUGH THE LEDGER ACCOUNT IS THE SAME: several AccountingTypes can map to one chart account. 2819 "Software-Miete / Lizenzen" and 2820 "Web-Hosting / Domains" both post to SKR03 4964 / SKR04 6837, so amount, tax and the DATEV export are identical — only the label sevDesk groups and reports by differs. book_invoice derives the type from the account and therefore always picks the account's default, which for a hosting supplier is the wrong one. Pass skr_account_number to take the tenant's own mapping for that account, or accounting_type to set a specific sevDesk category id when the account's default is not what you want (that is the Hetzner case). Every position of the voucher is set, and each one is read back afterwards and reported — a write that did not stick must not look like a success. DRY RUN BY DEFAULT: it reads the voucher and its positions and reports what it would set.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "sevdesk_set_voucher_account"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | Default TRUE. Reports each position and the category it would get, without writing. | |
| framework | No | Which chart skr_account_number belongs to: "SK03" or "SK04". Default SK04. | |
| voucher_id | No | The sevDesk voucher id directly. A `v-` prefix from the importer is stripped. | |
| document_id | No | The Book-AI-ze document whose voucher should be recategorised. Either this or voucher_id. | |
| accounting_type | No | The sevDesk AccountingType id to set, e.g. "2820". Use this when the chart account's default mapping is not the one you want. Takes precedence over skr_account_number. | |
| skr_account_number | No | Take the AccountingType from this tenant's mapping for that chart account, e.g. "6837". Ignored when accounting_type is given. |