← All guides

Free e-invoice check: see in one minute when Germany's mandate applies to your store (2027 or 2028), with a personal to-do list.

This guide is also available in German: XRechnung mit Shopify erstellen.

From 2027, larger German businesses must send invoices to German business customers as e-invoices, and from 2028 everyone must. A PDF won't be enough. When the rule applies to you is covered in our overview of Germany's e-invoicing mandate.

This guide is the practical part: how to turn a Shopify order into a valid XRechnung. It's based on what we learned building our own XRechnung feature, including the mistakes the official validator caught.

When you need an XRechnung

The rule covers domestic B2B sales: you're based in Germany and your customer is a business in Germany. Exempt are:

Until the end of 2026, PDF invoices are still allowed for everyone. After that, business customers need a structured EN 16931 format. The two common ones are XRechnung (pure XML) and ZUGFeRD (a PDF with embedded XML). Both are accepted.

Step 1: Spot business customers in your store

Shopify doesn't separate consumers from businesses on its own. Two fields help:

Rule of thumb: company name or VAT number present and delivery within Germany means the invoice needs an XRechnung.

Step 2: The fields an XRechnung needs

On top of the usual invoice requirements in § 14 UStG, XRechnung requires some fields that a normal PDF invoice often leaves out:

Field Note
Seller contact name, phone, email Mandatory in XRechnung, even if your PDF doesn't show them.
Seller VAT ID Or German tax number.
Electronic address of seller and buyer Usually the email address.
Buyer reference For businesses, the order number is enough. Leitweg-IDs are only for public authorities.
Delivery date or period See pitfall 3 below.
Payment information Even when the order is already paid.

Step 3: Three Shopify pitfalls

1. Shipping taxed at two rates

When a cart mixes 19 % and 7 % items (books or food, for example), Shopify splits the shipping charge across both rates. That's correct for VAT. But in an XRechnung every line must have exactly one rate, and the totals per rate must match the VAT breakdown exactly.

Shipping written as one line at one rate produces an invoice the validator rejects. In our test, €4.90 of shipping split into €2.37 at 19 % and €2.53 at 7 %, so the XRechnung needs two shipping lines.

2. Orders that are already paid

Shopify orders are usually paid before the invoice exists. The XRechnung has to say so: prepaid amount equal to the total, amount due 0. The payment means that fits is "online payment service" (code 68). Others, such as bank transfer, require bank details and are rejected without them.

3. The delivery date isn't known at payment

If the invoice is created at payment, the shipping date isn't known yet. § 31 (4) UStDV allows the calendar month of delivery instead of a day, for example "Leistungszeitraum: November 2026". In the XRechnung, that's an invoice period from the first to the last day of the month.

Step 4: Validate before sending

KoSIT, the German body that maintains XRechnung, publishes a free official validator. It checks the schema and every business rule of EN 16931 and the German extension.

Test at least these cases with real orders:

An XRechnung the validator rejects shouldn't reach your customer. Many accounting systems bounce it automatically.

Step 5: Send and archive

Germany doesn't prescribe a delivery channel. The XML file as an email attachment is fine. A PDF sent alongside is a reading copy for your customer. Legally, the XML data counts.

Archive the XRechnung in its original format, not just as a printout or PDF. And refunds need their own XRechnung credit note that references the original invoice.

What to look for in a tool

Whether it's an app, invoicing software or your accounting system, ask:

  1. Is every XRechnung checked with the KoSIT validator before it goes out?
  2. Does it handle shipping taxed at two rates?
  3. Do credit notes get their own XRechnung?
  4. Does it include a delivery date or period?
  5. Is the XML file stored unchanged and available to download again?

How Facturely does it

Disclosure: Facturely is our app. When an order is paid, it creates the invoice automatically and, for German business customers, an e-invoice that is checked with the KoSIT validator before it's sent. You choose the format: ZUGFeRD (the default: the invoice PDF carries the EN 16931 data, so it's one file) or XRechnung (version 3.0, UBL, as a separate XML file). Both are in the invoice email and can be downloaded from the dashboard. It covers all five points above.

Setup: turn on e-invoices in Settings, pick the format, and add a contact name and phone. Limits: Facturely creates e-invoices only for invoices from Germany to Germany. The free plan includes 10 invoices a month. Facturely on the Shopify App Store.

Primary sources

This article is general information, not tax advice. For your specific situation, consult your Steuerberater or tax advisor.

Frequently asked questions

Can Shopify create an XRechnung by itself?

No. Shopify produces order confirmations and, depending on the app, PDF invoices. An XRechnung is an XML file following EN 16931 and needs a specialised app or external invoicing tool.

Do I need a Leitweg-ID for business customers?

No. The Leitweg-ID is only for invoices to public authorities. For businesses, the order number works as the buyer reference.

Can I just email the XRechnung?

Yes. Germany doesn't prescribe a delivery channel, so the XML file as an email attachment is fine. Archive it in its original format.

When do I have to issue XRechnung invoices?

For domestic B2B sales from 1 January 2027 if your prior-year turnover was above €800,000, otherwise from 1 January 2028. B2C sales, invoices up to €250 and small businesses under § 19 UStG are exempt.


Facturely automates EU VAT invoice numbering, VIES checks, and refund credit notes for Shopify stores.