Invoice Create
invoice_createGenerate ZUGFeRD 2.x or XRechnung 3.x invoices as structured XML (CII/UBL) to meet German B2B e-invoicing requirements and EN 16931 compliance.
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 | XML syntax: 'CII' (default) or 'UBL' (XRechnung only). | CII |
| invoice | Yes | Invoice data matching the ZUGFeRDInvoice schema. Set invoice.profile to XRECHNUNG to produce an XRechnung invoice. | |
| pretty_print | No | Pretty-print the XML output. | |
| output_format | No | 'xml' (default) or 'pdf' (ZUGFeRD hybrid PDF/A-3). | xml |
| transitional_period_opt_in | No | Acknowledge the Wachstumschancengesetz transitional period (2025-2026) and explicitly permit non-XML output for a German VAT-registered buyer. Set to True only when the buyer has agreed in writing to receive PDF or another non-structured format. From 2027 the transitional grace ends for large businesses; from 2028 all B2B invoices to German VAT-registered buyers must be in a structured EN 16931 format. Source: §14 Abs. 2 UStG, Wachstumschancengesetz of 27 March 2024 (BGBl. I Nr. 108). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||