Shopify · XRechnung · EN 16931 · Peppol

XRechnung for Shopify: e-invoices straight from your orders

A free app that creates an XRechnung for every order, validates it against the official rules and puts a download link on the order. Same page in Deutsch.

Status: The app is built and tested; the Shopify App Store listing is in preparation. Until then you can create e-invoices for Shopify orders directly through the API.

MIT licence, version 1.0.0 · Source on GitHub · works without an account (20 invoices a day)

Short answer: Since 1 January 2025 every business in Germany must be able to receive e-invoices. From 1 January 2027 businesses with more than €800,000 turnover in the previous year must issue domestic B2B invoices as e-invoices, and from 1 January 2028 all businesses. A PDF is then no longer enough.

What the app does

  • XRechnung 3.0, EN 16931 or Peppol BIS 3 (UBL XML) from every order, automatically on payment or creation, or with one click.
  • Validated on every invoice against the XML Schema, the CEN EN 16931 Schematron and the KoSIT XRechnung rules. Errors show in the app with a fix hint.
  • Download link on the order (tag and metafield you can use in your notification templates) and a list of recent invoices.
  • Everyday shop cases covered: 19% and 7%, shipping, discounts, orders already paid, bank transfer with IBAN, intra-EU reverse charge with a VAT ID, exports, the German small business scheme (section 19 UStG).
  • Leitweg-ID per order for public-sector buyers.
  • Privacy: only the validated XML and its result are stored (13 months), and Shopify's mandatory privacy webhooks are implemented.
App settings page with format, automation and seller details
The app settings in the Shopify admin (sample data).
List of recent e-invoices with valid and failed status
Recent e-invoices with status and download.

What it does not do

  • No ZUGFeRD / Factur-X PDFs yet, no credit notes for refunds, no tips or gift cards.
  • No attachments on Shopify's own emails (not possible), so you get the link instead.
  • Not tax or legal advice: a technically valid file does not replace checking that the content of your invoices is correct.

Which data leaves your shop

To create an invoice the app sends the order's invoice data to the W System API (api.wsystem.dev): your seller details, the customer's name, company, address, email and VAT ID, the lines, amounts and payment method. See the privacy policy and terms.

Price

The app is free. The API: 20 invoices a day without a key; a free key with 500 units a month (8 units per invoice); larger quotas on the pricing page.

Questions

Is XRechnung accepted for B2B invoices in Germany?

Yes. Since 2025 an e-invoice in Germany is a structured electronic invoice that follows the European standard EN 16931. XRechnung is one of those formats. From 1 January 2027 businesses with more than EUR 800,000 turnover in the previous year must send e-invoices for domestic B2B sales, and from 1 January 2028 all businesses must.

Do I need an account or API key?

No. Without a key the W System API free tier allows 20 calls per day per server IP address. A free API key (email only, no card) has 500 units a month; one e-invoice costs 8 units, so about 60 invoices a month.

Can Shopify attach the XML to the order email?

Shopify does not let apps attach files to its own notification emails. The app tags the order, saves a download link in an order metafield that you can use in your notification templates, and lists recent invoices in the app. You can also have a copy of each valid XML emailed to your own address.

How do I tell the app a customer's VAT ID or Leitweg-ID?

Add order attributes (cart note attributes) named VAT ID and Leitweg-ID, for example with a checkout field. A VAT ID of a business customer in another EU country switches the invoice to intra-EU reverse charge.

What happens when an invoice fails validation?

The order is tagged e-invoice-failed and the app shows each failed rule with a short explanation and the fix, for example a missing seller phone number. Fix it in the settings and click Create again.

Does it create ZUGFeRD PDFs or credit notes?

Not yet. Version 1.0 creates XRechnung, EN 16931 and Peppol BIS 3 files in UBL XML. Credit notes for refunds are planned.

Related

Not affiliated with Shopify or KoSIT. Technical check, not legal or tax advice.