DE_XRECHNUNG_UBLDE_ZUGFERDSA_ZATCAPEPPOL_BIS3
XRechnung 3.0, ZUGFeRD 2.2 & ZATCA Phase 2 API for Node.js
Skip fragile XML templates, Java KoSIT subprocesses, and secp256k1 ASN.1 CSR hacks. Call one typed JSON endpoint from Node.js, Next.js, or NestJS.
Ready for Germany B2B E-Rechnung Pflicht (Jan 1, 2027) and Saudi ZATCA Phase 2 Wave 25 (Feb 1, 2027).
3-Step Integration Flow
- Send your typed invoice JSON to POST /v1/einvoice/preflight with zero auth to catch BR-DE or BR-KSA errors in CI.
- Call POST /v1/einvoice/issue with Authorization: Bearer tb_live_... and a unique Idempotency-Key.
- Decode xmlBase64 or pdfBase64 with Buffer.from(res.pdfBase64, "base64") and attach directly to your customer email.
Node.js & TypeScript -> Invora REST
const res = await fetch("https://api.invora.dev/v1/einvoice/issue", {
method: "POST",
headers: {
"Authorization": "Bearer " + process.env.INVORA_API_KEY,
"Idempotency-Key": "inv-node-2027-001",
"Content-Type": "application/json"
},
body: JSON.stringify({
format: "DE_XRECHNUNG_UBL",
invoiceNumber: "INV-2027-001",
issueDate: "2027-01-15",
currencyCode: "EUR",
buyerReference: "991-12345-67",
seller: { name: "Acme GmbH", vatId: "DE123456789", email: "billing@acme.de", contactName: "Finance", phone: "+49 30 5550199", address: { street: "Friedrichstr 1", city: "Berlin", postalCode: "10117", countryCode: "DE" } },
buyer: { name: "Kunde GmbH", address: { street: "Hauptstr 5", city: "Munich", postalCode: "80331", countryCode: "DE" } },
paymentMeans: { code: "58", iban: "DE89370400440532013000" },
lines: [{ id: "1", description: "SaaS Pro Plan", quantity: 1, unitPrice: "199.00", taxCategoryCode: "S", taxRatePercent: 19 }]
})
});
const data = await res.json();
const xmlBuffer = Buffer.from(data.xmlBase64, "base64");Frequently Asked Questions
Do I need Java installed in my Node.js container for KoSIT validation?
No. Invora runs Java 17 + KoSIT 1.6.3 / XRechnung 3.0.2 on EU-Central servers and returns structured validation results in JSON.
Does Invora work with Vercel Serverless and Edge functions?
Yes. Invora uses standard HTTPS fetch with zero native binaries, making it drop-in compatible with Vercel, Cloudflare Workers, and AWS Lambda.
Ship Node.js & TypeScript E-Invoicing Today
Starts at $79/mo for 1,500 invoices. No sales call required.