invoice_create
Generate ZUGFeRD 2.x or XRechnung 3.x invoices in XML (CII or UBL) format. Supports all ZUGFeRD profiles and EN 16931 compliance for German B2B mandates.
Instructions
Generate a ZUGFeRD 2.x or XRechnung 3.x invoice in XML (CII or UBL) format. Supports all ZUGFeRD profiles: MINIMUM, BASIC_WL, BASIC, EN_16931, EXTENDED. For XRechnung, set profile to XRECHNUNG and choose CII or UBL syntax. When the buyer is a German VAT-registered business (DE-prefixed VAT id), the Wachstumschancengesetz B2B mandate (effective 2025-01-01, §14 Abs. 2 UStG) requires a structured EN 16931 invoice. Non-XML output is rejected unless transitional_period_opt_in is set to True (allowed only 2025-2026 with the buyer's written consent).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| syntax | No | CII | |
| invoice | Yes | Invoice data (ZUGFeRDInvoice schema) | |
| pretty_print | No | ||
| output_format | No | xml | |
| transitional_period_opt_in | No |