DEV Community

ContentPilot Marketing
ContentPilot Marketing

Posted on

E-Invoice Mandate 2025 — A Developers Guide to ZUGFeRD and XRechnung

The E-Invoice Mandate

Germany requires electronic invoices for all B2B transactions starting 2025. As developers, we need to understand ZUGFeRD and XRechnung formats.

Key Formats

  • ZUGFeRD: PDF with embedded XML
  • XRechnung: Pure XML (EN 16931)

Quick Integration

Rather than building from scratch, I have been using E-Rechnung Push which handles format generation, compliance validation, and Peppol delivery automatically.

// Example: Generate ZUGFeRD invoice
const invoice = await eRechnungPush.create({
  format: "zugferd",
  customer: { vatId: "DE123456789" },
  items: [{ description: "SaaS License", amount: 49.90 }]
});
Enter fullscreen mode Exit fullscreen mode

Starting at 2.90 EUR/month — worth checking out if you need to add e-invoicing to your product.

einvoice #germany #webdev #saas

Top comments (0)