Skip to content
Magento 2 extension · Compliance

XRechnung & ZUGFeRD E-Invoicing

E-invoices from your Magento invoices, checked and sent automatically.

  • ZUGFeRD PDF and XRechnung XML for every B2B invoice and credit memo
  • Amounts always match your Magento invoice, to the cent
  • Checked against EN 16931, XRechnung rules and the official KoSIT validator
  • No external service, no per-invoice fees, Luma and Hyvä
Price
US$89.00 + free Hyvä add-on
Version
1.0.0
Status
Coming soon
Sales > E-Invoices grid: every invoice and credit note with status, official KoSIT result and amount due

Why it matters

From January 2027 a PDF invoice is no longer an invoice for your B2B customers.

German businesses with more than EUR 800,000 turnover must issue e-invoices for sales to other German businesses from 1 January 2027, and every business from 2028. Magento creates PDF invoices only. XRechnung & ZUGFeRD E-Invoicing adds the structured e-invoice to every invoice and credit memo of your business customers, checks it before it goes out and keeps every version for your 8-year archive.

Features

What XRechnung & ZUGFeRD E-Invoicing does

Your own invoice PDF, with the e-invoice inside

The ZUGFeRD 2.4 / Factur-X PDF looks exactly like your Magento invoice, because it is your Magento invoice with the EN 16931 data embedded. The XRechnung 3.0 XML in CII or UBL comes with it, and every file is PDF/A-3.

ZUGFeRD PDF of a Magento invoice

Amounts that match Magento to the cent

No recalculated prices: line amounts, discounts, shipping and the VAT Magento charged go into the e-invoice as they are. VAT categories for EU deliveries, reverse charge, exports and small businesses are found automatically.

E-Invoices grid with statuses and amounts

Checked before it is sent

EN 16931 and XRechnung rules in plain language with the setting to fix, the XML schema, and the official KoSIT validator in the background. Every version is stored unchanged with a SHA-256 checksum.

Document page with checks, KoSIT result and versions

Ready in minutes

The setup checklist shows what is missing for each website, with a link to each setting, and builds a test e-invoice from a recent invoice before you switch it on.

Setup checklist with test result

Leitweg-ID and order reference at checkout

Business customers enter their reference or the Leitweg-ID of a public authority; check digits are verified. They can also save a default reference, an accounts payable email and a preferred format in their account.

Order reference or Leitweg-ID field at checkout

What it creates

Everything a German B2B invoice needs

EN 16931, XRechnung 3.0 and ZUGFeRD 2.4 / Factur-X 1.08.

  • ZUGFeRD PDF

    Your invoice PDF with embedded XML, profile EN 16931 or XRECHNUNG, PDF/A-3.

  • XRechnung XML

    CII or UBL 2.1, invoices and credit notes with a link to the original invoice.

  • Validation

    EN 16931, XRechnung BR-DE rules, XML schema and the official KoSIT validator.

  • VAT categories

    Standard, zero rated, intra-community, reverse charge, export, small business.

  • Automatic

    Created in the background for business customers and attached to the invoice email.

  • Customers

    Leitweg-ID at checkout, account settings, downloads, REST and GraphQL.

Screenshots

See it on real stores

Real screenshots from Magento 2.4.9 test stores. Click any image to enlarge it.

How it works

Live in three steps

  1. Add your seller data

    The setup checklist shows what is missing and links to each setting. Test with a recent invoice before you switch it on.

  2. Invoice as usual

    For business customers the e-invoice is created in the background and attached to the invoice email.

  3. Keep an eye on it

    Sales > E-Invoices shows every document, its checks and the official KoSIT result. Download a ZIP for your accountant.

What XRechnung & ZUGFeRD E-Invoicing is, and isn't

A tool that creates, checks and sends e-invoice files from your Magento invoices.

It is

  • ZUGFeRD 2.4 / Factur-X PDF and XRechnung 3.0 XML (CII or UBL)
  • Built-in EN 16931 and XRechnung checks, optional official KoSIT check
  • Automatic for business customers, attached to emails
  • Versioned, write-once storage with checksums

It isn't

  • Tax advice or a decision on when you need e-invoices
  • A Peppol access point or a French, Polish or Italian platform connection
  • A tool to receive supplier invoices
  • A change to your prices or tax calculation

Compatibility

Works with your stack

We only claim what we've tested. Where something is expected to work but wasn't tested, we say so.

XRechnung & ZUGFeRD E-Invoicing compatibility
PlatformSupportNotes
Magento Open Source 2.4.9 Verified
Magento Open Source 2.4.7 – 2.4.8 Allowed by Composer, not tested yet
Adobe Commerce 2.4.x Not tested yet
PHP 8.3 Verified
PHP 8.2, 8.4, 8.5 Code checked for compatibility, not tested on a live store
Luma Included Checkout field, account settings and downloads
Hyvä Free add-on mageenv/module-e-invoice-hyva; checkout via Luma fallback, Hyvä Checkout not yet
KoSIT validator Optional Needs Java 11 or newer

Installation

Install with Composer

After you buy, the Adobe Commerce Marketplace gives you access keys for repo.magento.com. Then run:

  1. Core module

    composer require mageenv/module-e-invoice
  2. Hyvä stores only: add the free Hyvä package

    composer require mageenv/module-e-invoice-hyva
  3. Enable it

    bin/magento setup:upgrade && bin/magento cache:flush

    In production mode, also run setup:di:compile and setup:static-content:deploy.

FAQ

Questions merchants ask

Do I need e-invoices?

In Germany, for sales to other German businesses: from 1 January 2027 if your 2026 turnover was above EUR 800,000, from 2028 always. Invoices to consumers and small-amount invoices up to EUR 250 are not affected. Your tax advisor confirms what applies to you.

ZUGFeRD or XRechnung?

Both are valid in Germany. The ZUGFeRD PDF opens like a normal invoice and is the default attachment; public authorities and many large companies ask for XRechnung XML. You can send either or both, also per customer.

Will the e-invoice match my Magento invoice?

Yes. The extension never recalculates prices: it writes Magento's line amounts and the VAT Magento charged, so totals match to the cent. 3,000 generated test documents and every real test invoice were accepted by the official KoSIT validator.

Does my invoice data leave my server?

No. Files are created and checked on your server; no external service and no per-invoice fees. The optional KoSIT validator also runs locally.

What about invoices from before I installed it?

Run the backfill command for a date range; it creates e-invoices for existing invoices and credit memos.

Can I send through Peppol?

Not in version 1.0. In Germany sending the file by email is enough. Peppol and the French platform are on the roadmap.

Changelog

Release history

  1. v1.0.0 Latest
    • ZUGFeRD 2.4 / Factur-X PDF and XRechnung 3.0 XML (CII, UBL) for invoices and credit memos
    • Automatic VAT categories, amounts equal to Magento, foreign currency with VAT in EUR
    • EN 16931, XRechnung and schema checks, optional KoSIT validator in the background
    • Automatic generation, email attachments, versioned storage, admin grid and setup checklist
    • Checkout reference / Leitweg-ID, customer settings and downloads, REST and GraphQL
    • Command line tools, German translation, free Hyvä add-on

Documentation

An 18-page PDF user guide covers installation, every setting, daily use, VAT categories, the customer side, validation, the API and troubleshooting, in English and German. User Guide (PDF, English) Benutzerhandbuch (PDF, Deutsch)

Support

Email support from the developers who wrote the code. We reply within 1 business day. info@mageenv.com