Change a voucher's tax rule
sevdesk_set_tax_ruleRebook a voucher onto a different VAT rule with preview and validation, ensuring correct tax treatment while preserving position rates.
Instructions
Rebook a voucher onto a different VAT rule (e.g. from 'Vorsteuerabziehbare Aufwendungen' onto Reverse Charge §13b, taxRule 12) with guardrails: refuses enshrined vouchers and rules from the wrong side of the books, verifies the result afterwards, and previews the request with dryRun. The voucher's positions keep their rates. Only works on draft vouchers — the sevDesk API refuses updates on booked/paid ones, and resetting a paid foreign-currency voucher via the API recalculates its EUR amounts at today's rate. Correct paid vouchers in the sevDesk UI instead. ⚠️ This tool can change data in sevDesk.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | No | Preview the request without sending it. | |
| taxRuleId | Yes | Target tax rule id. | |
| voucherId | Yes | Numeric voucher id. |