XrechnungNovember 25, 202611 min read

Creating XRechnung: Check Your Software Before 2027

Creating an XRechnung with software: key functions, who must issue e-invoices from 2027, rounding test, 20-point scorecard and a 45-minute test.

Creating XRechnung: Check Your Software Before 2027

Software for creating an XRechnung must be able to output the invoice as an XML file according to the European standard EN 16931, check this file before sending, and store customer data such as the buyer reference or Leitweg-ID. A nice-looking PDF is not enough for this. Whether you already need such XRechnung software in January 2027 depends, for many businesses, on their total revenue in 2026.

What must software be able to do to create an XRechnung?

XRechnung is the German standard for electronic invoices. It implements EN 16931 and defines which fields an invoice must contain and which validation rules apply. The result is a pure XML file that a human can barely read without a viewer, but that the recipient's system processes without retyping.

From this follow three capabilities that an invoicing program must have. If even one of them is missing, you are not creating an XRechnung, but a PDF with a label.

XML output in UBL or CII

XRechnung exists in two syntaxes: UBL and CII. Both are valid, and for your customer it usually doesn't matter which one you deliver. What matters is that the software exports the XML file as its own file. Then you can download it, send it by email, or upload it to an authority portal. Programs that only offer "enable e-invoice" and don't show you a file are difficult to check.

Validation before sending

The Coordination Office for IT Standards (KoSIT) provides a validator. It checks an XRechnung against the rules of the standard. Good software runs this check before sending and reports errors in plain language, meaning something like "buyer reference missing" instead of a rule ID. Also ask the provider which XRechnung version it generates and when it switches to new versions. KoSIT updates the standard at intervals. Software that stays on an outdated version produces files that the recipient can reject.

Master data: buyer reference, Leitweg-ID, e-invoice address

Public contracting authorities give you a Leitweg-ID. It belongs in the buyer reference field. For corporate customers, this field often contains an order or cost center number. This information belongs to the customer and not to the individual invoice. Otherwise you have to look it up again for every invoice. If your customer database has no field for this, you'll find out at the latest when the first rejection occurs. How to build such a field model is shown in the article Managing Customer Data with Software: Selection and a Hands-On Check.

FunctionHow you recognize it in a testExclusion criterion?
XML export (UBL or CII)File can be downloaded individuallyYes
Validation before sendingError message for a deliberately empty mandatory fieldYes
Buyer reference field on the customerValue automatically appears in a new invoiceYes, if you supply authorities
Version indicationProvider names the generated XRechnung versionNo, but a warning sign
Credit note and invoice correction as XMLCancellation also generates an XML fileNo
Receiving XRechnung and ZUGFeRDTest file is displayed legiblyNo, but practical

From when must you issue e-invoices?

The basic rule is in § 14 UStG. For services to another business for that business's purposes, the invoice must be an electronic invoice if both parties are resident in Germany. In this context, only an invoice in a structured format that complies with or is compatible with the European standard counts as an electronic invoice. A PDF counts as an "other invoice."

The transitional periods are governed by § 27 para. 38 UStG. For sales from 2025 and 2026, a paper invoice or, with the recipient's consent, an invoice in another electronic format may still be sent until December 31, 2026. For sales from 2027, this relief only applies if your total revenue in 2026 did not exceed 800,000 euros. A separate transitional rule applies to invoices via EDI. For sales from January 1, 2028, § 27 para. 38 no longer provides for any transitional rule.

Two exceptions affect many small businesses. Invoices for small amounts up to 250 euros may continue to be transmitted as other invoices under § 33 UStDV. The same applies under § 34a UStDV for invoices from small businesses (Kleinunternehmer). You should still be able to receive e-invoices, though. Where the e-invoice is mandatory under § 14 para. 2 UStG, the sender does not need the recipient's consent under § 14 para. 1 UStG; in all other cases, electronic transmission requires the recipient's consent.

This is an interpretation of the legal text and not tax advice. What counts as total revenue in your case is best clarified with your tax advisor.

Example: 2026 revenue determines January 2027

Example: Two businesses calculate their revenue for the current year in December 2026.

  • Electrical business A reaches 742,000 euros by the end of November and expects another 70,000 euros in December. That totals 812,000 euros and is above the threshold of 800,000 euros. For services to domestic corporate customers starting January 1, 2027, A therefore needs e-invoices. The software must therefore be running in the first week of January and not only by spring.
  • Painting business B is at 640,000 euros as of December. B may still send paper or PDF invoices for sales from 2027 until December 31, 2027, though a PDF only with the recipient's consent. From 2028, this transitional rule no longer applies.

The case just below the threshold is dangerous. A large order billed at the end of December can push a business like B over 800,000 euros. Therefore calculate twice: once with, once without the open December orders. If both results fall on different sides of the threshold, set up the software by January anyway. That takes less effort than a hasty changeover in March.

XRechnung or ZUGFeRD: which format should the software generate?

ZUGFeRD is a hybrid format: a PDF with an embedded XML file. The human reads the PDF, the machine reads the XML file. For corporate customers, this is often more convenient, because accounting can also see something without an e-invoice viewer. Authorities, on the other hand, often explicitly require an XRechnung with a Leitweg-ID.

Our decision rule: If you have even just one public contracting authority as a customer, choose software that generates genuine XRechnung files. If you only supply businesses, ZUGFeRD in a profile that fully covers EN 16931 is sufficient. Ask the provider explicitly about the profile, because not every ZUGFeRD profile contains all the mandatory information for an invoice. Which formats exist and how they differ is described in more detail in the article ZUGFeRD and XRechnung: Formats and Software.

What errors does the validator find in a real XRechnung?

Example: A caretaker service bills a customer for three properties, each with a maintenance flat rate of 26.50 euros net. The VAT rate is 19 percent according to § 12 para. 1 UStG.

Calculation methodVATGross amount
Tax rounded per line item: 3 × (26.50 € × 19% = 5.035 € → 5.04 €)15.12 €94.62 €
Tax on the total: 79.50 € × 19% = 15.105 € → 15.11 €15.11 €94.61 €

One cent of difference. EN 16931 calculates the tax per tax category on the net total, meaning according to the second line. It becomes problematic if your PDF layout rounds per line item, but the XML file calculates based on the total. Then the PDF and XML show different amounts, and the recipient asks which one applies. Enter exactly these three line items into every piece of software you test. Afterward, compare the PDF view, the XML, and the validator report.

Two other errors regularly show up in tests:

  1. Empty buyer reference. In the XRechnung standard, this field is mandatory (rule BR-DE-15), but in many programs it is optional. Without validation before sending, you only notice it when the portal rejects the invoice.
  2. Small business (Kleinunternehmer) notice only as free text. Anyone who voluntarily issues an XRechnung without VAT needs the matching tax category in the XML file. A sentence in the footer is not enough for the machine.

How do you test XRechnung software in 45 minutes?

The weeks around the turn of the year are well suited for a test. New numbering sequences begin, December is closed out, and a changeover on January 1 is easier to explain than in the middle of a quarter. Plan a fixed block of time:

  • Minute 0–10: Set up company data, tax number or VAT ID, and bank details.
  • Minute 10–20: Create a real customer with a buyer reference, plus a test customer with a Leitweg-ID.
  • Minute 20–30: Export the rounding calculation from the example above as an XRechnung.
  • Minute 30–40: Check the XML file with an independent validator, not just the built-in one.
  • Minute 40–45: Generate a credit note for this invoice and export it as well.

The 20-point scorecard

Award 0, 1, or 2 points for each criterion.

Criterion0 points2 points
XML exportno exportUBL or CII as a file
Validationnonebefore sending, with plain-language message
Buyer reference on the customermissingautomatically applied
Rounding testPDF and XML differidentical
Credit note as XMLPDF onlyXML with reference to the original invoice
Version indicationunknowndocumented, with update date
Receivingnot possibleXRechnung and ZUGFeRD legible
Quote → invoiceretypedata is carried over
Archiveonly PDF storedoriginal XML retrievable
Export for tax advisornonestructured export

Rule: If a program scores below 14 points, it is eliminated. This also applies if it scores 0 points on "XML export" or "validation," regardless of how high the total is.

Where the switch typically fails

Most problems don't arise during creation, but with special cases. Down payment invoices, final invoices with deduction of amounts already paid, and cancellations are hardly ever tested before the first real case. If you issue down payments, a down payment invoice followed by a final invoice belongs in the test.

The second typical error concerns the archive. For an e-invoice, the XML file is the original. If the software only stores a PDF, the actual document is missing in the event of an audit. Security guidance on cloud services where such archives are stored is published by the Federal Office for Information Security (BSI).

Who is MeinGewerbe intended for when creating an XRechnung?

MeinGewerbe is aimed at owners and small teams who write their own quotes and invoices. Invoices are created from quotes and can be issued as a PDF or as an XRechnung according to EN 16931; you download the XML file (UBL, XRechnung 3.0) as a separate file. The free Starter plan includes three XRechnung invoices per month, Pro an unlimited number. You can check the file with the (German-language) pre-check XRechnung prüfen, which tests selected mandatory fields, code lists, and calculation rules of EN 16931 and XRechnung. It does not replace a full check with the KoSIT validator, so the independent validator from the 45-minute test belongs here too. From the Pro plan on, MeinGewerbe reads incoming e-invoices in XRechnung or ZUGFeRD format, and the payment status of every invoice remains visible.

The trade-off: MeinGewerbe is designed for quotes, invoices, customers, and payments. It does not replace an inventory management or ERP system. Anyone managing warehouses, production planning, or hundreds of documents a day needs a different category of software. Anyone who also wants to create VAT advance returns from the same invoices will find the relevant questions in the article VAT Advance Return Software: Deadlines and Key Questions.

Frequently asked questions

Can I create an XRechnung with Word or Excel? No, at least not directly. Word and Excel do not generate structured XML according to EN 16931. You need an invoicing program or an online generator with XML export. With generators, check carefully where the invoices are stored afterward, because with many of them nothing stays in the archive.

Is a PDF with an embedded XML file sufficient as an e-invoice? Yes, if the embedded XML file complies with or is compatible with the European standard. This is stated in § 14 para. 1 UStG for structured formats. Whether this applies to a particular ZUGFeRD file depends on the profile used. The PDF alone is not an e-invoice.

Do I need a separate Leitweg-ID for every authority? You get the Leitweg-ID from the respective public contracting authority, often in the order or purchase order. It can differ depending on the department. Therefore store it on the customer or on the order and not in a template that applies to all authorities.

What happens if the validator reports an error? Then you don't send the invoice, but correct the cause in the master data or invoice data. Afterward, export the file again and check it once more. For an already sent faulty invoice, it's best to ask your tax advisor whether a correction or a new invoice is necessary.

Sources

Check your XRechnung for free

Use the public XML invoice checker without creating an account.

Check your XRechnung for free