Write an invoice: German e-invoice as ZUGFeRD/Factur-X EN 16931 or XRechnung 3.0 (CII XML), with the mandatory details checked under section 14 UStG
create_einvoiceAICTIONBOT™ invoice writer by KULIC Advisory (tool 52). Takes seller, buyer, invoice number and dates, payment terms and lines (description, quantity, UN/ECE unit code, net unit price, VAT rate or category) and returns a structured e-invoice as UN/CEFACT Cross Industry Invoice XML: ZUGFeRD/Factur-X profile EN 16931 or XRechnung 3.0 for German public authorities (Leitweg-ID as buyer_reference). Calculates in cents (line amounts, VAT per category and rate, totals), checks the mandatory details of section 14 (4) UStG, the EN 16931 business rules and the German XRechnung rules (BR-DE: contact, phone, e-mail, IBAN, buyer reference), validates IBAN check digits and VAT ID format, and handles small business (section 19 UStG), reverse charge (section 13b UStG), intra-community supply and export with the exemption reason. Red findings block the XML, yellow ones are notes. The Workbench page https://www.kulicadvisory.com/workbench/write-invoice/ turns the same data into a PDF/A-3 with the XML embedded. Generated invoices passed XSD, the official EN 16931 and KoSIT XRechnung schematron and veraPDF. Deterministic, no AI, nothing stored. Not tax advice. Needs sign-in: runs with an AICTIONBOT™ Werkbank licence; without a licence one check per connection every 30 days is free (sign in with “Connect without a licence”).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"lines": "<lines>"
},
"name": "create_einvoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Free note on the invoice | |
| buyer | No | name, street, postcode, city, country, vat_id, email | |
| lines | Yes | Rows: description, quantity, unit (C62 piece, HUR hour, DAY, MON, KGM, MTR, MTK, LTR, KMT, LS lump sum, SET), unit_price (net), vat_rate (19, 7), category (standard, small_business, reverse_charge, intra_community, export, not_taxable). | |
| number | No | Invoice number | |
| seller | No | name, street, postcode, city, country (ISO code, default DE), vat_id, tax_number, register, email, phone, contact, iban, bic, account_holder | |
| profile | No | zugferd (default, EN 16931) or xrechnung (XRechnung 3.0, for public authorities) | |
| currency | No | ISO currency code. Default EUR. | |
| due_date | No | Due date | |
| language | No | Language of the answer. Default de. | |
| issue_date | No | Invoice date YYYY-MM-DD or DD.MM.YYYY | |
| period_end | No | ||
| period_start | No | ||
| delivery_date | No | Delivery or service date (or use period_start and period_end) | |
| payment_terms | No | Payment terms text, for example "Payable within 14 days without deduction." | |
| buyer_reference | No | Buyer reference; for XRechnung to authorities the Leitweg-ID (required for xrechnung) | |
| order_reference | No | Customer order number |