ZUGFeRD & XRechnung E-Invoice Generator API - PDF/A
zugferd_invoice_generatorGenerate compliant German EN 16931 e-invoices from structured JSON: ZUGFeRD / Factur-X hybrid PDF/A-3b with embedded factur-x.xml, XRechnung 3.0 UN/CEFACT CII XML (with Leitweg-ID check digit validation), or both in one call. Computes per-line net, VAT breakdown by rate, IBAN/BIC validation, reverse charge, Kleinunternehmer (§ 19 UStG), and intra-EU exemptions. Deterministic pure Python, zero AI, nothing stored. Free: 5 calls/day per IP. Paid: Radar API key (from €15/mo at https://radarbg.com/pricing#starter via X-API-Key) or $0.02/call via x402 at https://radarbg.com/x402/zugferd-invoice-generator.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"buyer": {
"city": "Muenchen",
"name": "Kunde Industrie AG",
"vatId": "DE987654321",
"street": "Marktplatz 5",
"country": "DE",
"postcode": "80331"
},
"items": [
{
"unit": "h",
"vatRate": 19,
"quantity": 8,
"unitPrice": 120,
"description": "ERP Integration Consulting"
},
{
"unit": "pcs",
"vatRate": 19,
"quantity": 1,
"unitPrice": 480,
"description": "Annual API License"
}
],
"format": "zugferd",
"seller": {
"bic": "BYLADEM1001",
"city": "Berlin",
"iban": "DE02120300000000202051",
"name": "Muster Consulting GmbH",
"email": "billing@muster.example",
"vatId": "DE123456789",
"street": "Hauptstrasse 12",
"country": "DE",
"postcode": "10115"
},
"dueDate": "2026-12-31",
"taxMode": "S",
"currency": "EUR",
"language": "de",
"invoiceDate": "2026-12-01",
"invoiceNumber": "RE-2026-0142"
},
"name": "zugferd_invoice_generator"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| buyer | Yes | Buyer details: name, street, postcode, city, country (2-letter), vatId, email, reference (Leitweg-ID for XRechnung). | |
| items | Yes | Line items (1-200): each {description, quantity, unitPrice, unit?, vatRate?}. | |
| notes | No | Optional free-text note printed on the invoice. | |
| format | No | Output format: zugferd (PDF/A-3 + embedded XML), xrechnung (XRechnung 3.0 CII XML), or both. | zugferd |
| seller | Yes | Seller details: name, street, postcode, city, country (2-letter), vatId, email, contact, phone, iban, bic. | |
| dueDate | No | Optional payment due date in YYYY-MM-DD. | |
| taxMode | No | VAT mode: S (standard), E19 (small business § 19 UStG), AE (reverse charge), K (intra-EU supply), G (export). | S |
| currency | No | 3-letter ISO currency code (EUR, CHF, USD, GBP, PLN, CZK, DKK, SEK, NOK, HUF, RON, BGN). | EUR |
| language | No | PDF label language: de or en. | de |
| invoiceDate | No | Invoice issue date in YYYY-MM-DD (defaults to today). | |
| deliveryDate | No | Delivery or service date in YYYY-MM-DD (defaults to invoiceDate). | |
| invoiceNumber | Yes | Unique invoice number, e.g. RE-2026-001. | |
| defaultVatRate | No | Default VAT percentage when a line omits vatRate (0-50). |