Looking for a real XRechnung as an example? Here you'll find a complete sample file in UBL format (XRechnung 3.0) with all required fields – ready to download, test, and open directly in your browser.
Mustermann Consulting GmbH → Muster AG · RE-2024-0042 · 7,140.00 EUR
This is what a valid XRechnung looks like in UBL format. All required fields according to EN 16931 and XRechnung standard 3.0 are included:
<?xml version="1.0" encoding="UTF-8"?> <!-- XRechnung 3.0 – Beispieldatei (UBL) Bereitgestellt von digital-rechnung.de --> <Invoice xmlns="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2" xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2"> <!-- Pflichtangaben --> <cbc:CustomizationID>urn:cen.eu:en16931:2017#compliant#urn:xeinkauf.de:kosit:xrechnung_3.0</cbc:CustomizationID> <cbc:ID>RE-2024-0042</cbc:ID> <cbc:IssueDate>2024-03-15</cbc:IssueDate> <cbc:DueDate>2024-04-14</cbc:DueDate> <cbc:InvoiceTypeCode>380</cbc:InvoiceTypeCode> <cbc:DocumentCurrencyCode>EUR</cbc:DocumentCurrencyCode> <cbc:BuyerReference>BESTELLUNG-2024-0099</cbc:BuyerReference> <!-- Verkäufer --> <cac:AccountingSupplierParty> <cac:Party> <cac:PartyLegalEntity> <cbc:RegistrationName>Mustermann Consulting GmbH</cbc:RegistrationName> </cac:PartyLegalEntity> <cac:PostalAddress> <cbc:StreetName>Unter den Linden 42</cbc:StreetName> <cbc:CityName>Berlin</cbc:CityName> <cbc:PostalZone>10117</cbc:PostalZone> </cac:PostalAddress> <cac:PartyTaxScheme> <cbc:CompanyID>DE123456789</cbc:CompanyID> <cac:TaxScheme><cbc:ID>VAT</cbc:ID></cac:TaxScheme> </cac:PartyTaxScheme> </cac:Party> </cac:AccountingSupplierParty> <!-- Käufer --> <cac:AccountingCustomerParty> <cac:Party> <cac:PartyLegalEntity> <cbc:RegistrationName>Muster AG</cbc:RegistrationName> </cac:PartyLegalEntity> <cac:PostalAddress> <cbc:StreetName>Maximilianstraße 10</cbc:StreetName> <cbc:CityName>München</cbc:CityName> <cbc:PostalZone>80539</cbc:PostalZone> </cac:PostalAddress> </cac:Party> </cac:AccountingCustomerParty> <!-- Zahlung --> <cac:PaymentMeans> <cbc:PaymentMeansCode>58</cbc:PaymentMeansCode> <cac:PayeeFinancialAccount> <cbc:ID>DE89370400440532013000</cbc:ID> </cac:PayeeFinancialAccount> </cac:PaymentMeans> <!-- MwSt. 19 % --> <cac:TaxTotal> <cbc:TaxAmount currencyID="EUR">1140.00</cbc:TaxAmount> <cac:TaxSubtotal> <cbc:TaxableAmount currencyID="EUR">6000.00</cbc:TaxableAmount> <cbc:TaxAmount currencyID="EUR">1140.00</cbc:TaxAmount> <cac:TaxCategory><cbc:ID>S</cbc:ID><cbc:Percent>19</cbc:Percent></cac:TaxCategory> </cac:TaxSubtotal> </cac:TaxTotal> <!-- Gesamtbeträge --> <cac:LegalMonetaryTotal> <cbc:LineExtensionAmount currencyID="EUR">6000.00</cbc:LineExtensionAmount> <cbc:TaxExclusiveAmount currencyID="EUR">6000.00</cbc:TaxExclusiveAmount> <cbc:TaxInclusiveAmount currencyID="EUR">7140.00</cbc:TaxInclusiveAmount> <cbc:PayableAmount currencyID="EUR">7140.00</cbc:PayableAmount> </cac:LegalMonetaryTotal> <!-- Rechnungsposition --> <cac:InvoiceLine> <cbc:ID>1</cbc:ID> <cbc:InvoicedQuantity unitCode="DAY">5</cbc:InvoicedQuantity> <cbc:LineExtensionAmount currencyID="EUR">6000.00</cbc:LineExtensionAmount> <cac:Item> <cbc:Name>IT-Beratung</cbc:Name> <cbc:Description>Beratung zur IT-Infrastruktur, 5 Tage</cbc:Description> </cac:Item> <cac:Price> <cbc:PriceAmount currencyID="EUR">1200.00</cbc:PriceAmount> </cac:Price> </cac:InvoiceLine> </Invoice>
Download the file and drag it directly onto digital-rechnung.de – the XRechnung viewer opens it instantly as a readable PDF view. No upload, no login, everything runs locally in your browser.
Alternatively, a desktop app for Windows is available – also free and open source.
XRechnung comes in two XML syntaxes: UBL (Universal Business Language) and CII (UN/CEFACT Cross Industry Invoice). Both are equivalent and supported by the XRechnung standard. The sample file here uses UBL – the format preferred by most German authorities and software solutions.
The official XRechnung test suite by KoSIT (Coordination Office for IT Standards) contains numerous additional sample files for various business cases – in both UBL and CII format:
→ XRechnung Testsuite on GitHub (KoSIT)
Want to open your own XRechnung or download it as a PDF?
Open XRechnung in the browser now – free & without upload →