Sevdesk reopen voucher
sevdesk_reopen_voucherReopen a sevDesk voucher so it can be changed again. sevDesk refuses EVERY change to a booked voucher — new amounts, a corrected booking side, even just attaching the Beleg — with "You can only update draft documents", and neither PUT {status:50} nor saveVoucher gets around it. Two levels: to:"open" runs resetToOpen, which takes back the PAYMENT (status 750/1000 → 100) and releases the bank transaction; to:"draft" additionally runs resetToDraft (→ 50), which takes the voucher out of the books and is what makes it editable. A paid voucher needs both, in that order, and this tool does that for you. WHAT YOU OWE AFTERWARDS: reopening undoes real bookkeeping. Push the voucher again (sevdesk_push_documents force_update:true) to put it back on status 100, and if the payment was taken back, re-book it (sevdesk_book_payment). Until then the receipt is not in the books and the bank line counts as unassigned. DRY RUN BY DEFAULT: it reads the voucher and reports which steps it would run, without touching anything.
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_reopen_voucher"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | "draft" (default) makes the voucher editable — needed for any change including an attachment. "open" only takes back the payment and leaves the voucher booked, which is what you want when the amounts are right and only the payment was booked wrongly. | |
| dry_run | No | Default TRUE. Reports the current status and the steps that would run, without writing. | |
| voucher_id | No | The sevDesk voucher id directly, for a voucher that has no document here. A `v-` prefix from the importer is stripped. | |
| document_id | No | The Book-AI-ze document whose voucher should be reopened. Either this or voucher_id. |