Skip to content
Blog / Guides

What an e-invoice looks like

8 min read
December 02, 2026
Cartoon: A doctor points with a pointer at an X-ray screen behind which an invoice with a face is standing; the screen shows its skeleton of fields with the labels “BT-1”, “BG-25” and “BT-115”.

An e-invoice (E-Rechnung) is a structured file, usually XML, in which each invoice detail is in its own field; the European standard EN 16931 gives each field a number, for example BT-1 for the invoice number. It is structured like a paper invoice: header, seller and buyer, line items, totals and payment details. The file only becomes readable for people through a visualisation, in the case of ZUGFeRD for example through the PDF in which the XML file is embedded.

As of: Dec. 2, 2026

This guide is a machine translation of the German original as of Dec. 2, 2026. Only the German version is authoritative: read the German version. If you contact us, please write in German or English.

What makes an e-invoice

An e-invoice (E-Rechnung) is an invoice that is issued, transmitted and received in a structured electronic format and can be processed electronically (§ 14 para. 1 sentence 3 UStG). The format must comply with the European standard EN 16931 or be agreed between you and your customer (§ 14 para. 1 sentence 6 UStG). An agreed format is only sufficient if the required invoice details can be extracted from it correctly and completely into a format that complies with EN 16931 or is interoperable with it (§ 14 para. 1 sentence 7 UStG). Two formats are common in Germany: the XRechnung, a pure XML file, and ZUGFeRD, a PDF with an embedded XML file (section 14.1 paras. 12 to 14 UStAE).

A PDF from Word or Excel looks like an invoice, but is not an e-invoice: it lacks the data in fields. It is precisely these fields that make an e-invoice. EN 16931 gives each field a number: BT (Business Term) for a single field, BG (Business Group) for a group of fields. You can find all numbers with a short explanation in the glossary of invoice fields.

The example

The excerpts below come from the standard invoice on the page E-invoice examples: the fictitious Muster IT-Solutions GmbH from Berlin invoices Kunden AG in Munich for software development of €4,500.00 net plus 19% VAT. The file is structured in the notation (syntax) UN/CEFACT CII, which ZUGFeRD uses and which is also available for the XRechnung. Download the XML file and open it in a text editor, and you will find every line again. Elements that are not needed for understanding have been left out; each omission is marked with “…”.

1. The header: type, number and date

At the beginning it states the rules according to which the invoice is structured, followed by number, type and date:

<rsm:ExchangedDocumentContext>
  <ram:GuidelineSpecifiedDocumentContextParameter>
    <ram:ID>urn:cen.eu:en16931:2017</ram:ID>
  </ram:GuidelineSpecifiedDocumentContextParameter>
</rsm:ExchangedDocumentContext>
<rsm:ExchangedDocument>
  <ram:ID>RE-2026-001</ram:ID>
  <ram:TypeCode>380</ram:TypeCode>
  <ram:IssueDateTime>
    <udt:DateTimeString format="102">20261201</udt:DateTimeString>
  </ram:IssueDateTime>
</rsm:ExchangedDocument>
FieldNumberValue in the example
Specification identifierBT-24urn:cen.eu:en16931:2017 (EN 16931)
Invoice numberBT-1RE-2026-001
Invoice type (code)BT-3380 = commercial invoice
Invoice dateBT-220261201 = 1 December 2026

The specification identifier determines according to which rules the file is validated. In the XRechnung on the examples page it reads urn:cen.eu:en16931:2017#compliant#urn:xeinkauf.de:kosit:xrechnung_3.0, i.e. the XRechnung in version 3.0. Dates are in format 102, which means YYYYMMDD without separators.

2. The parties: seller and buyer

Whoever issues the invoice is in the seller group (BG-4), whoever receives it is in the buyer group (BG-7). Each group contains name, address and tax details:

<ram:SellerTradeParty>
  <ram:Name>Muster IT-Solutions GmbH</ram:Name>
  …
  <ram:SpecifiedTaxRegistration>
    <ram:ID schemeID="VA">DE123456789</ram:ID>
  </ram:SpecifiedTaxRegistration>
</ram:SellerTradeParty>
<ram:BuyerTradeParty>
  <ram:Name>Kunden AG</ram:Name>
  …
  <ram:SpecifiedTaxRegistration>
    <ram:ID schemeID="VA">DE987654321</ram:ID>
  </ram:SpecifiedTaxRegistration>
</ram:BuyerTradeParty>
FieldNumberValue in the example
Seller nameBT-27Muster IT-Solutions GmbH
Seller VAT ID (USt-IdNr.)BT-31DE123456789 (scheme VA)
Buyer nameBT-44Kunden AG
Buyer VAT IDBT-48DE987654321

The other examples show variants: in the small business (Kleinunternehmer) invoice, the tax number (Steuernummer, BT-32, scheme FC) appears instead of the VAT ID, plus a seller identifier (BT-29). The XRechnung to the public authority (Behörde) contains the electronic addresses of seller and buyer (BT-34, BT-49) and, in the buyer reference (Käuferreferenz, BT-10), the Leitweg-ID of the public authority. If the buyer reference is missing in an XRechnung, the validation reports BR-DE-15.

3. The line items: what was supplied or performed

Each invoice line is a group of its own (BG-25) with description, quantity, unit, price and tax. An invoice needs at least one line, otherwise the validation reports BR-16.

<ram:IncludedSupplyChainTradeLineItem>
  <ram:AssociatedDocumentLineDocument>
    <ram:LineID>1</ram:LineID>
  </ram:AssociatedDocumentLineDocument>
  <ram:SpecifiedTradeProduct>
    <ram:Name>Softwareentwicklung Web-App (November 2026)</ram:Name>
  </ram:SpecifiedTradeProduct>
  <ram:SpecifiedLineTradeAgreement>
    <ram:NetPriceProductTradePrice>
      <ram:ChargeAmount>4500.0000</ram:ChargeAmount>
      …
    </ram:NetPriceProductTradePrice>
  </ram:SpecifiedLineTradeAgreement>
  <ram:SpecifiedLineTradeDelivery>
    <ram:BilledQuantity unitCode="C62">1.0000</ram:BilledQuantity>
  </ram:SpecifiedLineTradeDelivery>
  <ram:SpecifiedLineTradeSettlement>
    <ram:ApplicableTradeTax>
      <ram:TypeCode>VAT</ram:TypeCode>
      <ram:CategoryCode>S</ram:CategoryCode>
      <ram:RateApplicablePercent>19.00</ram:RateApplicablePercent>
    </ram:ApplicableTradeTax>
    <ram:SpecifiedTradeSettlementLineMonetarySummation>
      <ram:LineTotalAmount>4500.00</ram:LineTotalAmount>
    </ram:SpecifiedTradeSettlementLineMonetarySummation>
  </ram:SpecifiedLineTradeSettlement>
</ram:IncludedSupplyChainTradeLineItem>
FieldNumberValue in the example
Line numberBT-1261
Item nameBT-153Softwareentwicklung Web-App (November 2026)
Net priceBT-1464500.0000
Quantity and unit of measureBT-129, BT-1301, C62 = piece
VAT category and VAT rate of the lineBT-151, BT-152S (standard rate), 19.00
Net amount of the lineBT-1314500.00

Amounts use a point instead of a comma and have no currency symbol; the currency is stated once for the whole invoice (BT-5, here EUR). The time of the supply is given by the delivery date (BT-72, in the example 20261127).

4. The totals and the VAT

Below the line items follow the document totals (BG-22) and the VAT breakdown by category and rate (BG-23):

<ram:ApplicableTradeTax>
  <ram:CalculatedAmount>855.00</ram:CalculatedAmount>
  <ram:TypeCode>VAT</ram:TypeCode>
  <ram:BasisAmount>4500.00</ram:BasisAmount>
  <ram:CategoryCode>S</ram:CategoryCode>
  <ram:RateApplicablePercent>19.00</ram:RateApplicablePercent>
</ram:ApplicableTradeTax>
…
<ram:SpecifiedTradeSettlementHeaderMonetarySummation>
  <ram:LineTotalAmount>4500.00</ram:LineTotalAmount>
  …
  <ram:TaxBasisTotalAmount>4500.00</ram:TaxBasisTotalAmount>
  <ram:TaxTotalAmount currencyID="EUR">855.00</ram:TaxTotalAmount>
  …
  <ram:GrandTotalAmount>5355.00</ram:GrandTotalAmount>
  …
  <ram:DuePayableAmount>5355.00</ram:DuePayableAmount>
</ram:SpecifiedTradeSettlementHeaderMonetarySummation>
FieldNumberValue in the example
Taxable amount and tax amount per categoryBT-116, BT-1174500.00, 855.00
VAT category and VAT rateBT-118, BT-119S, 19.00
Sum of line net amountsBT-1064500.00
Total amount without VATBT-1094500.00
Total VATBT-110855.00
Total amount with VATBT-1125355.00
Amount dueBT-1155355.00

The totals must be consistent with each other, and the validation rules (Prüfregeln) check this: the sum of line net amounts must be the sum of the individual lines (BR-CO-10), the total amount with VAT the sum of the total amount without VAT and the VAT (BR-CO-15), in the example 4500.00 + 855.00 = 5355.00.

Without VAT, the breakdown looks different. The small business invoice uses category E with 0% and states the reason as text (BT-120): “Kein Ausweis von Umsatzsteuer, da Kleinunternehmer gemäß § 19 UStG” (no VAT shown, as the seller is a small business). The invoice with reverse charge uses category AE, the text “Steuerschuldnerschaft des Leistungsempfängers” (reverse charge) and additionally the code VATEX-EU-AE (BT-121). Whether you have to issue e-invoices at all as a small business is explained in the article Small businesses and e-invoicing.

5. The payment: how, where to and by when

At the end come the payment instructions (BG-16) and the payment terms:

<ram:SpecifiedTradeSettlementPaymentMeans>
  <ram:TypeCode>58</ram:TypeCode>
  <ram:PayeePartyCreditorFinancialAccount>
    <ram:IBANID>DE02300209000106531065</ram:IBANID>
    <ram:AccountName>Muster IT-Solutions GmbH</ram:AccountName>
  </ram:PayeePartyCreditorFinancialAccount>
</ram:SpecifiedTradeSettlementPaymentMeans>
…
<ram:SpecifiedTradePaymentTerms>
  <ram:Description>Zahlbar innerhalb von 14 Tagen ohne Abzug.</ram:Description>
  <ram:DueDateDateTime>
    <udt:DateTimeString format="102">20261215</udt:DateTimeString>
  </ram:DueDateDateTime>
</ram:SpecifiedTradePaymentTerms>
FieldNumberValue in the example
Payment means (code)BT-8158 = SEPA credit transfer
IBAN of the payment accountBT-84DE02300209000106531065 (test IBAN)
Payment account nameBT-85Muster IT-Solutions GmbH
Payment termsBT-20Zahlbar innerhalb von 14 Tagen ohne Abzug.
Due dateBT-920261215 = 15 December 2026

XML view and readable view

The XML file is intended for programs: an accounting program can take the invoice number, amount and IBAN directly from the fields without anyone typing them in. For people it is tedious to read, because instead of plain text it contains codes such as 380, C62, S or 58 and dates such as 20261201. An e-invoice becomes readable through a visualisation application that prepares the data for people (section 14.1 para. 13 sentences 4 and 5 UStAE).

  • ZUGFeRD: The PDF is the readable view and shows the invoice as usual; the XML file is inside it. For an e-invoice that you are obliged to issue, all mandatory details must be in the structured part, i.e. in the XML file; a reference to an attachment in which they only appear as text is not sufficient (section 14.5 para. 1 sentences 4 and 5 UStAE), and input tax deduction is only possible from the structured part (section 14c.1 para. 4a sentence 4 UStAE, both as amended by the BMF letter of 15 October 2025).
  • XRechnung: There is only the XML file. A readable view is only created by a program. How to go about this is shown in the article Opening and reading an XRechnung.

You can do this without an account in the validator: upload the file on the page Validate e-invoice. It is validated against KoSIT’s official validation rules, and you see a summary with invoice issuer, number, amount, due date and IBAN; units, tax categories, countries and payment methods are shown there in plain text instead of as codes. If a message in the validation report states a BT number, a link leads to the field in the glossary.

How to proceed

Frequently asked questions

What does an e-invoice look like?

An e-invoice is an XML file with fields instead of a designed page. Each detail is in its own element, such as the invoice number (BT-1) or the total amount with VAT (BT-112). With ZUGFeRD, this file is embedded in a PDF that shows the invoice as usual; an XRechnung is only the XML file.

Where can I find an example of an e-invoice?

The page “E-invoice examples” offers four valid examples made from fictitious data for download: a standard invoice with 19% VAT, a small business (Kleinunternehmer) invoice, an invoice with reverse charge (Steuerschuldnerschaft des Leistungsempfängers) as a ZUGFeRD PDF with XML file, and an XRechnung to a public authority with a Leitweg-ID.

What do BT-1, BG-25 and the other numbers mean?

EN 16931 names each field of an invoice with a number: BT stands for Business Term (a single field), BG for Business Group (a group of fields). BT-1 is the invoice number, BG-25 an invoice line. Validation reports (Prüfberichte) state these numbers in their messages.

Why does the XML file contain codes like 380, C62 or 58?

Many fields only accept values from fixed code lists so that programs can read them unambiguously. 380 stands for a commercial invoice, C62 for the unit “piece”, 58 for a SEPA credit transfer. A visualisation shows the plain text instead.

What counts for a ZUGFeRD invoice, the PDF or the XML file?

For an e-invoice that the issuer is obliged to issue, the mandatory details (Pflichtangaben) must be in the structured part, i.e. in the XML file, and input tax deduction (Vorsteuerabzug) is only possible from this part (section 14.5 para. 1 and section 14c.1 para. 4a sentence 4 UStAE as amended by the BMF letter of 15 October 2025).

Sources

This article summarises the sources listed in general terms and is not tax or legal advice. For your individual case, please consult a tax advisor.

Try E-Rechnungsfreund for free

Create and validate ZUGFeRD and XRechnung e-invoices in minutes

Sign up