New / Neu: XRechnung kostenlos im Browser erstellen · E-Rechnung kostenlos erstellen (ohne Anmeldung) · Free XRechnung viewer – kostenlos XRechnung-XML im Browser öffnen (CII & UBL, no upload) · ZUGFeRD-PDF öffnen & XML auslesen · Kostenloser GiroCode-Generator (EPC-QR-Code für Überweisungen).
Documentation and copy-paste examples for creating e-invoices from plain JSON with one HTTP call. Useful for developers, automation builders (n8n, Make, Zapier, Airtable) and small businesses preparing for the German B2B e-invoicing obligation (receiving since 1 Jan 2025, issuing mandatory for companies above €800k turnover from 1 Jan 2027) and Factur-X in France.
| Input option | Output |
|---|---|
"eInvoice": "zugferd" | ZUGFeRD 2.x / Factur-X hybrid PDF (EN 16931 profile, PDF/A-3 with embedded factur-x.xml) + separate XML |
"eInvoice": "xrechnung" | XRechnung 3.0 XML (UN/CEFACT CII) + readable PDF |
| (default) | Clean invoice / quote / receipt / credit note PDF, 6 languages, optional GiroCode payment QR |
The generator runs as a hosted Actor on Apify: rm.solutions/invoice-pdf-generator (pay per generated document, invalid input is not charged).
curl -X POST "https://api.apify.com/v2/acts/rm.solutions~invoice-pdf-generator/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
-H "Content-Type: application/json" \
-d '{"language":"de","currency":"EUR","eInvoice":"zugferd",
"invoice":{"invoiceNumber":"2026-042","issueDate":"2026-11-27","dueDate":"2026-12-11","serviceDate":"2026-11-20",
"seller":{"name":"Example GmbH","address":"Musterstr. 1","postalCode":"10115","city":"Berlin","country":"DE","taxId":"DE123456789","email":"billing@example.com"},
"buyer":{"name":"Kunde AG","address":"Hauptstr. 5","postalCode":"80331","city":"München","country":"DE"},
"items":[{"description":"Webdesign","quantity":12,"unit":"h","unitPrice":85}],
"bank":{"iban":"DE89370400440532013000","bic":"COBADEFFXXX"}}}'
The response is a JSON array with one row per invoice: ok, total, balanceDue, pdfUrl and (for e-invoices) the XML link.
import requests
payload = {"eInvoice": "xrechnung", "language": "de", "currency": "EUR",
"invoice": {"invoiceNumber": "R-1001", "issueDate": "2026-11-27",
"seller": {"name": "Example GmbH", "taxId": "DE123456789", "address": "Musterstr. 1", "postalCode": "10115", "city": "Berlin"},
"buyer": {"name": "Stadt Musterstadt", "leitwegId": "991-12345-67"},
"items": [{"description": "Beratung", "quantity": 4, "unit": "h", "unitPrice": 95}]}}
r = requests.post("https://api.apify.com/v2/acts/rm.solutions~invoice-pdf-generator/run-sync-get-dataset-items",
params={"token": "YOUR_APIFY_TOKEN"}, json=payload, timeout=120)
print(r.json()[0])
const res = await fetch("https://api.apify.com/v2/acts/rm.solutions~invoice-pdf-generator/run-sync-get-dataset-items?token=" + process.env.APIFY_TOKEN, {
method: "POST", headers: {"Content-Type": "application/json"},
body: JSON.stringify({ eInvoice: "zugferd", invoice: { invoiceNumber: "INV-7", seller: {name: "Acme SARL"}, buyer: {name: "Client SAS"},
items: [{description: "Consulting", quantity: 3, unitPrice: 150}] }, language: "fr" })
});
console.log(await res.json());
Use an HTTP Request node/module: method POST, the URL above, body type JSON, and map your order or CRM fields into invoice. Then download pdfUrl and attach it to your e-mail step. Batch: send "invoices": [...] to get one document per invoice in a single run.
invoiceNumber, issueDate, dueDate, serviceDate, documentType (invoice|quote|receipt|credit_note), language (en|de|fr|es|it|nl), currency, taxRate, taxNote, paymentTerms, notes, amountPaid, logoUrl, accentColor, pageSize, paymentQr, seller{name,address,postalCode,city,country,taxId,email,phone}, buyer{name,address,postalCode,city,country,taxId,leitwegId}, items[{description,details,quantity,unit,unitPrice,taxRate,discountPercent}], bank{iban,bic,bankName,accountHolder}
Generated XML was checked with public EN 16931 / XRechnung validators (Schematron). Always test with your recipient; special cases (e.g. reverse charge, allowances on document level) may need extra fields.
Need bank files instead? See SEPA XML (pain.001 / pain.008) + GiroCode API. Single payment QR code? Use the free GiroCode generator in your browser.