Create a voucher
sevdesk_create_voucherCreates a sevDesk voucher from supplier, date, tax rule, and line items, defaulting to draft status so you can review it before booking.
Instructions
Create a voucher via /Voucher/Factory/saveVoucher. Defaults to status 50 (Entwurf) so nothing is booked without you reviewing it in sevDesk. Check sevdesk_receipt_guidance for the account's allowed tax rules first — expense-side reverse charge is 12/13/14, not 5. WRITE operation. For anything this wrapper does not cover, use sevdesk_call with operationId 'voucherFactorySaveVoucher'. ⚠️ This tool can change data in sevDesk.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| extra | No | Additional top-level voucher fields merged into the payload verbatim. | |
| dryRun | No | Show the payload instead of sending it. | |
| status | No | 50 = Entwurf, 100 = offen, 1000 = bezahlt (default 50). | |
| payDate | No | Payment date, dd.mm.yyyy — only with status 1000. | |
| fileName | No | Filename token returned by sevdesk_upload_voucher_file. | |
| positions | Yes | Line items. | |
| taxRuleId | Yes | VAT regulation id — every rule sevDesk accepts on a voucher, both sides. Required — never guessed. sevdesk_receipt_guidance lists the ones the booking account actually allows. Expense rules go with creditDebit C, revenue rules with D. | |
| creditDebit | No | C = credit, D = debit. | |
| description | No | Document/invoice number. | |
| voucherDate | Yes | Voucher date, dd.mm.yyyy. | |
| supplierName | Yes | Supplier name as it should appear on the voucher. |