Shopware 6 e-invoices: XRechnung and ZUGFeRD for every invoice

German businesses must be able to receive B2B e-invoices since 1 January 2025. Issuing them becomes mandatory for domestic B2B sales from 2027 above €800,000 annual turnover, and from 2028 for everyone (BMF-FAQ E-Rechnung). Valifakt E-Rechnung for Shopware 6 creates an XRechnung or ZUGFeRD file whenever an invoice document is created, and validates it with the official rules.

Download the plugin (v0.1.0, ZIP, 40 KB)

for Shopware 6.7, PHP 8.2+ · SHA-256: e82f685c8d8d7804d249bcf327ce0c07ddcdd41b71613365db2f39770542b507 · MIT

Features

  • Automatic on the invoice document: whenever Shopware creates an invoice (single, bulk or by a flow), the e-invoice is created with the same number and date.
  • XRechnung 3.0 UBL, XRechnung 3.0 CII or ZUGFeRD 2.3 / Factur-X (PDF/A-3 with embedded XML).
  • Validated with the KoSIT validator (KoSIT / xeinkauf.de) and the EN 16931 rules; ZUGFeRD also with veraPDF and Mustang. Errors are shown in plain language in the order, with where to fix them.
  • "E-invoice" card in the order: status, download XML/PDF, Validate again, create in another format.
  • Leitweg-ID custom field on the order or customer for public-sector buyers (B2G, BT-10).
  • Business customers only option and attachment to every e-mail that carries the invoice document.
  • Small business (§ 19 UStG), intra-community supply with deliver-to address, exports and Shopware's proportional shipping tax are mapped automatically.

Doesn't Shopware already do ZUGFeRD?

Shopware 6.7 ships its own document types for ZUGFeRD / XRechnung in CII syntax. This plugin adds the UBL variant of XRechnung, the Leitweg-ID for public buyers and an independent check of every file with the official validator before it reaches your customer. You can use both side by side.

Install

  1. Download the ZIP above and upload it in the administration under Extensions › My extensions › Upload extension, then install and activate it.
  2. Check Settings › Documents › Invoice: company name, address, VAT ID or tax number, e-mail and IBAN. The e-invoice uses these details.
  3. In the plugin configuration, give consent to the data transfer and pick the format. The plugin sends nothing before that.
  4. Create an invoice document. The "E-invoice" card in the order shows the result.

What is sent to valifakt.com

The Valifakt service, with servers in Germany, creates and validates the e-invoice. Only the invoice data of that order is sent: your company details, the customer's name, address, e-mail and VAT ID, and the items, shipping and tax rates. Data is sent only after your consent, and only when an e-invoice is created or validated. The service deletes files after 60 minutes. The finished files are stored in your shop's private filesystem, not in the public folder. There is no tracking. See Privacy and Terms.

Pricing

The plugin is free (MIT licence). Without an API key, the free quota applies: 3 e-invoices per month per IP address of your shop server, the same as the online XRechnung form. For more, add a Pro or Office key; see pricing.

What it does not do

It does not deliver invoices to portals (ZRE, OZG-RE, Peppol) and is not an archive (keep invoices 8 years, § 147 AO). Valifakt is not a tax adviser. For WordPress there is the sister plugin Valifakt E-Rechnung for WooCommerce. Related: view an XRechnung, API, and the German page Shopware E-Rechnung.

As of 1 December 2026. Not tax or legal advice. The Shopware Store listing is in preparation; until then, install the ZIP from this page.

FAQ

Which Shopware version?

Shopware 6.7 (tested with 6.7.16) and PHP 8.2 or newer.

Which invoice number does the e-invoice get?

The same as the Shopware invoice document, and the same invoice date, so the PDF and the e-invoice match.

How do I add a Leitweg-ID?

In the custom field "E-invoice (Valifakt)" on the customer (applies to all their orders) or on a single order. It is written to the XRechnung as buyer reference BT-10.

Do consumers get an e-invoice?

Not with the default "business customers only" option, but you can always create it manually in the order.