Asapeca E-Invoice

Validation rules explained

How do I create a ZUGFeRD invoice?

A ZUGFeRD invoice is one file with two parts: a PDF that people read, and an embedded XML file with the same invoice data for software. The format comes from the German Forum elektronische Rechnung Deutschland (FeRD) and is technically identical to the French Factur-X; the current version is ZUGFeRD 2.5.2 / Factur-X 1.09.2.

When ZUGFeRD is an e-invoice

German VAT law asks of an e-invoice a structured electronic format following the European norm EN 16931 (§ 14(1) UStG). A hybrid format such as ZUGFeRD meets this according to the VAT application decree (UStAE), section 14.1(14): ZUGFeRD "from version 2.0.1 – except the profiles MINIMUM and BASIC-WL – is based on the EN 16931 series of standards and is therefore one of the permitted e-invoice formats" (our translation).

Profile An e-invoice under § 14 UStG?
MINIMUM, BASIC WL no — mandatory data is missing (e.g. the lines)
BASIC, EN 16931, EXTENDED yes
XRECHNUNG yes — the XML also follows the rules of the XRechnung

Which permitted format you use — and so whether ZUGFeRD or XRechnung — is, according to the Federal Ministry of Finance, a civil-law matter between you and your customer (UStAE section 14.1(12)). More on the profiles: ZUGFeRD profiles and the XRechnung rules.

What goes into the file

According to the Factur-X / ZUGFeRD specification:

PDF and XML must agree

In a hybrid format the XML is the leading part; where the PDF differs, the data of the XML prevails (UStAE section 14.4(3)). If the PDF holds different mandatory data, it may be a further invoice for which § 14c UStG has to be checked (UStAE section 14c.1(4a)). So: always create PDF and XML from the same data, never edit one of them afterwards. More: PDF and XML differ — which counts?

How it works with our form

  1. In the form Create an XRechnung, under "Output", choose the file ZUGFeRD (PDF with XML), the language of the visible invoice (German or English) and the profile. The default is EN 16931: the XML is then named factur-x.xml, the name every program that reads ZUGFeRD finds. XRechnung 3.0 gives ZUGFeRD in the profile XRECHNUNG with the XML xrechnung.xml. If the customer is a public body, the form switches to XRechnung.
  2. Enter your company, the customer, the lines and the payment, and choose the VAT case. If something is missing, the form names the rule and marks the field — before a file is made.
  3. From your data we write the XML (CII) and the visible PDF and join both into a PDF/A-3. The file is checked right away: the XML with the official KoSIT validator, the PDF/A and the ZUGFeRD rules with Mustang and veraPDF, plus the recalculation and the comparison of the amounts in the PDF with the XML. Then you download the PDF.

Nothing you enter is stored. You issue the invoice and remain responsible for its content — whether a sale is tax-exempt or which VAT rate applies is not decided by the form. This is not tax advice.

Sources

Based on the official documentation · sources · Last checked: 2026-11-07

Check an invoice →