E-invoicing for Magento: what changes in January 2027, and how to get ready

From 1 January 2027 a PDF invoice no longer counts for sales between German businesses above EUR 800,000 turnover, and from 2028 for everyone. Here is what that means for a Magento store and how to get ready.

Magento8 min readBy the MageEnv team

E-invoicing for Magento from 2027: an invoice with an embedded XML file and a green check mark, labelled XRechnung and ZUGFeRD.

The short version

  • The rule: since 1 January 2025 every German business must be able to receive e-invoices. From 1 January 2027 businesses with more than EUR 800,000 turnover in 2026 must also issue them for sales to other German businesses, and from 1 January 2028 every business must.
  • What counts: XRechnung, or ZUGFeRD from 2.0.1 in the profiles EN16931, EXTENDED or XRECHNUNG. A plain PDF does not.
  • Magento: creates PDF invoices only. You need an extension or an external service that turns each invoice into an e-invoice.
  • Not tax advice: this is a practical guide. Your tax advisor confirms what applies to your business.

Who must issue e-invoices, and when

DateWhat changes
1 January 2025Every business must be able to receive e-invoices.
1 January 2027Businesses with more than EUR 800,000 total turnover in 2026 must issue e-invoices for domestic B2B sales.
1 January 2028Every business must issue e-invoices for domestic B2B sales.

The duty covers sales between businesses established in Germany. Invoices to consumers and small-amount invoices up to EUR 250 gross are not affected. For a Magento store that sells to both, this usually means: consumer orders keep the PDF, business orders need an e-invoice.

XRechnung or ZUGFeRD?

Both are built on the European standard EN 16931 and both are accepted in Germany.

  • ZUGFeRD 2.4 (technically identical to Factur-X 1.08) is a PDF/A-3 invoice with the XML data embedded. People read the PDF; accounting software reads the XML. For a shop this is the easiest switch, because the customer still gets an invoice that looks like the one they know.
  • XRechnung 3.0 is pure XML, in CII or UBL syntax. Public authorities ask for it, and so do many larger companies whose accounts payable software reads XML directly.

In practice we recommend sending the ZUGFeRD PDF by default and the XRechnung XML to customers who ask for it.

What an e-invoice must contain

Most of the data is already in your Magento invoice. These are the fields shops most often miss, because Magento does not ask for them:

FieldWhy it matters
Buyer reference (BT-10)Required in XRechnung. Public authorities use their Leitweg-ID here; companies often use an order or cost centre reference.
Seller contactXRechnung requires a contact person or department, a phone number and an email.
Electronic addressesSeller and buyer each need an electronic address, usually an email.
VAT category per lineStandard rate, zero rated, intra-community supply, reverse charge or export, each with the right exemption reason.
Delivery dateGerman invoices must state the date of delivery.
Payment instructionsHow the invoice is paid; bank transfer needs your IBAN, card payments need the last digits of the card.

Where Magento falls short

Magento's invoices carry the prices, taxes and addresses, but the e-invoice rules are strict about the calculation. EN 16931 checks that line amounts, allowances, charges and VAT add up exactly, rate by rate. Magento rounds tax per item or per row, applies discounts to prices including tax, and adds shipping with its own tax class. An e-invoice that simply copies the totals often fails these checks by a cent, and one that recalculates the tax no longer matches the PDF the customer received.

Credit memos add more: adjustment refunds and fees carry no tax in Magento, yet a credit note must state its VAT. Card payments need extra fields in XRechnung. These are the details to test before you rely on any solution.

Checklist for your store

  1. Know your date. Check your 2026 turnover with your tax advisor: 2027 or 2028.
  2. Complete your seller data. Legal name, address, VAT ID or tax number, a contact for invoices with phone and email, IBAN.
  3. Decide who gets e-invoices. Usually customers with a VAT ID or in a B2B customer group.
  4. Ask your largest customers which format they want, and whether they need a Leitweg-ID or order reference on every invoice.
  5. Test with real invoices. Check them with the official KoSIT validator, including credit memos, discounts, shipping and a foreign customer.
  6. Plan the archive. E-invoices must be kept for 8 years in their original format.

Common mistakes

  • Using ZUGFeRD MINIMUM or BASIC WL. These profiles have no invoice lines and do not count as e-invoices.
  • No buyer reference. XRechnung requires it on every invoice; use the order number if the customer gives none.
  • Missing seller contact. A very common rejection reason in XRechnung.
  • Totals that do not add up. The validator rejects a cent difference, so test baskets with discounts and mixed tax rates.
  • Sending e-invoices to consumers by default. Allowed, but unnecessary; limit them to business customers.

How our extension handles it

We built XRechnung & ZUGFeRD E-Invoicing for exactly this. It creates a ZUGFeRD 2.4 PDF from your own Magento invoice PDF and an XRechnung 3.0 XML for every invoice and credit memo of a business customer, keeps the VAT Magento charged so the e-invoice matches your PDF to the cent, and checks every document against the EN 16931 and XRechnung rules and, optionally, the official KoSIT validator. In our tests 3,000 generated documents covering discounts, credit memos, EU deliveries, exports and card payments were accepted by the KoSIT validator. Customers can enter a Leitweg-ID at checkout, and every version is stored unchanged for your archive. It runs on your own server, without an external service.

XRechnung & ZUGFeRD E-Invoicing is coming to the Adobe Commerce Marketplace. Like this article, it is a tool and not tax advice.

Questions

We only sell to consumers. Do we need e-invoices?

No. The German duty covers invoices between businesses established in Germany. Invoices to consumers are not affected, and a PDF stays fine for them.

Is a PDF attached to an email an e-invoice?

No. An e-invoice is a structured format the buyer's software can read, based on EN 16931. A plain PDF is an 'other invoice' and is only allowed during the transition periods.

Does ZUGFeRD count, or must it be XRechnung?

Both count in Germany. ZUGFeRD from version 2.0.1 in the profiles EN16931, EXTENDED or XRECHNUNG is accepted. The profiles MINIMUM and BASIC WL are not e-invoices because they lack the invoice lines.

Do we have to send e-invoices through a platform?

Not in Germany. Sending the file, for example by email, is enough. France, Poland and Italy use national platforms, and Belgium uses the Peppol network.

What is a Leitweg-ID?

The routing ID public authorities in Germany use as their buyer reference. If you sell to a public authority, it gives you its Leitweg-ID and expects it in the buyer reference field of the XRechnung.

Sources

Selling to German businesses on Magento?

XRechnung & ZUGFeRD E-Invoicing creates a ZUGFeRD PDF and an XRechnung XML for every B2B invoice and credit memo, checks them against the official rules and attaches them to the invoice email.

See the extension