E-invoice compliantvia REST API.
XRechnung, ZUGFeRD, Peppol. German & EU compliance out of the box. Production-ready in 5 minutes.
POST /api/v1/invoice/de/xrechnung/generate/api/v1/invoice/de/zugferd/generate201 · 187msrequest.json
{ "seller": { "name": "Acme GmbH", "vatId": "DE123456789" }, "buyer": { "name": "BigCorp AG" }, "items": [{ "amount": 1500 }]}response · XRechnung 3.0 (XML)
<?xml version="1.0"?>
<ubl:Invoice>
<cbc:ID>INV-2026-0042</cbc:ID>
<cbc:CustomizationID>
urn:cen.eu:en16931:2017
</cbc:CustomizationID>
…
</ubl:Invoice>KoSIT-validiert · EN 16931
response · ZUGFeRD 2.4 (PDF/A-3)
- 28
- Countries
- 21+
- Formats
- 200ms
- Avg. Latency
- 99.9%
- Uptime SLA
Quickstart
E-Invoices in 3 Steps
No complex XML logic, no manual validation. Automation in just a few lines of code.
- 01
Get API Key
Create your account in seconds and instantly receive your free API key for development.
- 02
Integrate SDK
Use our typed SDKs for Node.js, Python, or Go, or call the REST API directly.
- 03
Send E-Invoice
Generate valid XRechnung & ZUGFeRD PDFs and automatically send them to your customers.
# 1. Create account & copy API keyexport XHUB_API_KEY="xhub_sk_..."# 2. Build your first requestcurl -X POST https://service.invoice-api.xhub.io/api/v1/invoice/de/zugferd/generate \ -H "Authorization: Bearer $XHUB_API_KEY" \ -H "Content-Type: application/json" \ -d @invoice.json# 3. Response → PDF/A-3 with embedded EN-16931 XML# Content-Type: application/pdf# Ready to email or send via PeppolQuickstart
E-Invoices in 3 Steps
No complex XML logic, no manual validation. Automation in just a few lines of code.
Get API Key
Create your account in seconds and instantly receive your free API key for development.
# 1. Create account & copy API keyexport XHUB_API_KEY="xhub_sk_..."Integrate SDK
Use our typed SDKs for Node.js, Python, or Go, or call the REST API directly.
# 2. Build your first requestcurl -X POST https://service.invoice-api.xhub.io/api/v1/invoice/de/zugferd/generate \ -H "Authorization: Bearer $XHUB_API_KEY" \ -H "Content-Type: application/json" \ -d @invoice.jsonSend E-Invoice
Generate valid XRechnung & ZUGFeRD PDFs and automatically send them to your customers.
# 3. Response → PDF/A-3 with embedded EN-16931 XML# Content-Type: application/pdf# Ready to email or send via PeppolFeatures
Built for German Compliance
All important certifications and standards in one API.
KoSIT Validated
Official Schematron validation against current KoSIT schemas.
28 Countries
DE, AT, CH, FR, IT, ES, NL, BE, PT, PL, CZ, HU, RO, BG, SE, NO, DK, FI, IE, GB, LU, MT, CY, SI, EE, LV, LT, GR — one API call.
21+ Formats
XRechnung 3.0.2, ZUGFeRD 2.4, Factur-X 1.08, FatturaPA, Peppol BIS 3.0 UBL, ebInterface, qr-bill, and more.
~200ms Response
Fast API responses for seamless integration into real-time workflows.
Peppol Gateway
Send e-invoices directly via the Peppol network. Coming Q3 2026.
GoBD Compliant
Audit-proof archiving with 10-year retention.
Developer-First
REST + JSON instead of SOAP/XML. No templates, no dependencies.
Enterprise-Ready
99.9% SLA, dedicated support, and on-premise option available.
PDF attachments
Embed arbitrary files as PDF/A-3 compliant attachments in ZUGFeRD or Factur-X invoices — proofs of service, audit reports, T&Cs.
Team & roles
Multiple users per organization, roles with fine-grained permissions, email invitations — directly from the Console.
Automation-Ready
Integrated with Zapier, Make.com, and n8n for no-code workflows.
Developer-First API
The Stripe of E-Invoicing APIs
While other e-invoicing solutions rely on UI platforms or complex SOAP/XML interfaces, we offer a modern REST API that developers love.
5 Minutes
to your first e-invoice
1 Endpoint
for all 21+ formats
0 Dependencies
just HTTP + JSON
APIs
4 APIs. 28 Countries. One Ecosystem.
Each API usable standalone. Perfectly combinable. Country-specific formats.
Invoice Generator APIMost Popular API
Generate PDF, XRechnung & ZUGFeRD for 28 countries
POST /api/v1/invoice/{countryCode}/{format}/generateParser API
Extract structured data from e-invoices
POST /api/v1/invoice/parseValidator API
Country-specific validation - free without quota
POST /api/v1/invoice/{countryCode}/validateFormats API
Retrieve all supported formats and countries
GET /api/v1/invoice/formatsInvoice-api.xhub Blog
Insights, tutorials, and news about e-invoicing, API development, and the German compliance landscape.

E-Invoicing Mandate 2025: n8n Automation for Small Businesses
Germany's e-invoicing mandate affects every business. How SMBs automate invoice creation for free with n8n and the xhub.io API — incl. ROI numbers.

Automatically Validate and Archive E-Invoices with n8n
Fully automated n8n workflow: receive e-invoices via email, auto-detect the format, validate and archive compliantly — with Slack error alerts.

Customize invoice templates via API: BlockTemplate tutorial
How to generate PDF invoices with logo, brand colors and dynamic VAT rows using JSON only. Incl. EN 16931 compliance and ZUGFeRD pitfalls.
FAQ
Frequently Asked Questions
Everything you need to know about Invoice-api.xhub.
More questions? Contact us