Sevdesk delete voucher
sevdesk_delete_voucherDelete a sevDesk voucher that is a DRAFT (status 50) — the way back from a receipt that should never have been pushed, e.g. a duplicate of one sevDesk already had. sevdesk_reopen_voucher takes a voucher OUT of the books but leaves it lying around as a draft; this removes it. REFUSES anything else, and says why: a voucher at 100/750/1000 is still in the books (reopen it first), and a voucher with a booked payment is refused even at status 50. An ISSUED INVOICE is not a voucher — cancel it in sevDesk, or use sevdesk_delete_invoice_draft while it is a draft. Deleting cannot be undone, so the local document is kept: it only loses its sevdesk_id and sync status, so it no longer points at a voucher that is gone, and it can be corrected and pushed again. Every run is written to audit_logs with the reason. DRY RUN BY DEFAULT: it reads each voucher and reports number, status, amount, supplier and whether it would be deleted, without writing. dry_run:false is the approval and needs reason.
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_delete_voucher"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | No | Why it is deleted (min. 10 characters) — required for dry_run:false, and it goes into the audit log. | |
| dry_run | No | Default TRUE. Reports what would be deleted, 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 deleted. Either this, voucher_id or voucher_ids. | |
| voucher_ids | No | Several voucher ids at once, max 25. Each one is checked on its own; one refusal does not stop the others. |