Create a draft invoice
sevdesk_create_invoiceCreates an outgoing sevDesk invoice as a draft with line items, quantities, prices, and tax rates, so nothing is sent to a customer before review; supports dry-run preview.
Instructions
Create an outgoing invoice as a draft (status 50) — always a draft, so nothing reaches a customer without review in sevDesk. Positions carry name, quantity, price and tax rate; the contact's address is filled in automatically. Honors SEVDESK_DRY_RUN. ⚠️ This tool can change data in sevDesk.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | No | Preview the request without sending it. | |
| header | No | Optional invoice header text. | |
| currency | No | Currency (default EUR). | |
| contactId | Yes | Numeric id of the customer contact. | |
| positions | Yes | Invoice line items. | |
| taxRuleId | Yes | Revenue tax rule id — required, never guessed. 1 taxable domestic, 2 export, 3 intra-EU supply, 4 §4 exempt, 5 §13b, 11 §19 UStG (no VAT shown), 17 not taxable domestically, 18-20 One Stop Shop (per-position taxRate required), 21 §18b. | |
| invoiceDate | No | Invoice date, yyyy-mm-dd (default today). |