The most common XRechnung errors and how to fix them
Every XRechnung error message names a rule ID such as BR-DE-15 or BR-CO-15. BR-DE rules are the German additions of XRechnung; BR-CO and BR-S rules come from the European standard EN 16931. The rule tells you which field (BT-…) is missing or wrong. Below are the frequently asked rules with the official text, the cause and the fix.
How to read an error message
Every finding consists of a rule ID, a severity and the rule text. The numbers in the text, such as BT-10 or BG-16, refer to the EN 16931 data model. That way you find the field whether your XRechnung is written in UBL or CII.
| Prefix | Origin | Example |
|---|---|---|
| BR-DE-… | German XRechnung rules (KoSIT) | BR-DE-15: buyer reference missing |
| BR-CO-… | EN 16931: calculation and dependency rules | BR-CO-15: invoice total does not add up |
| BR-S-…, BR-AE-…, BR-E-… | EN 16931: rules per VAT category | BR-S-08: taxable amount at 19% wrong |
| BR-… (number only) | EN 16931: mandatory fields and basic rules | BR-16: at least one invoice line |
| PEPPOL-EN16931-R… | Peppol BIS Billing, not part of XRechnung | rules for invoices sent via Peppol |
An error must be fixed; a warning is a recommendation. And a single wrong amount often triggers several rules at once: in our tests, a gross total that was one cent off immediately triggered BR-CO-15 and BR-CO-16. So fix the first error and validate again.
BR-DE-15: buyer reference (Leitweg-ID) missing
Rule text (German original): "Das Element 'Buyer reference' (BT-10) muss übermittelt werden." The buyer reference (BT-10) must be provided.
Cause: XRechnung always requires a buyer reference. For public authorities this is the Leitweg-ID, which the contracting authority gives you. In B2B the field is often missing because the customer did not specify a reference.
Fix: Enter the Leitweg-ID in BT-10, or in B2B the reference your customer wants. If the customer has not specified one, ask; in practice an order or customer number is often used.
<!-- CII -->
<ram:ApplicableHeaderTradeAgreement>
<ram:BuyerReference>Leitweg-ID or reference</ram:BuyerReference>
…
</ram:ApplicableHeaderTradeAgreement>
<!-- UBL -->
<cbc:BuyerReference>Leitweg-ID or reference</cbc:BuyerReference>More about the Leitweg-ID is on the XRechnung validator page.
BR-CO-10 and BR-CO-13: line totals do not match
Rule text BR-CO-10: "Sum of Invoice line net amount (BT-106) = Σ Invoice line net amount (BT-131)." BR-CO-13 checks the invoice net total (BT-109) against the lines, allowances (BT-107) and charges (BT-108) in the same way.
Cause: usually rounding. The software rounds the total differently from the individual lines or keeps calculating with unrounded line amounts.
Fix: Round every line amount (BT-131) to two decimals and build the sum BT-106 from exactly those rounded values. Allowances and charges for the whole invoice belong in BT-107 and BT-108.
Line 1 8 × 120.00 = 960.00 (BT-131)
Line 2 1 × 499.00 = 499.00 (BT-131)
Sum of lines = 1,459.00 (BT-106)BR-CO-15 and BR-CO-16: invoice total does not add up
Rule text BR-CO-15: "Invoice total amount with VAT (BT-112) = Invoice total amount without VAT (BT-109) + Invoice total VAT amount (BT-110)."
Cause: the gross total was rounded separately or entered by hand. One cent is enough. BR-CO-16 usually follows, because the amount due (BT-115) is based on the gross total.
Fix: Always calculate the gross total as net plus VAT, never independently. Amount due = gross minus amount already paid (BT-113) plus rounding amount (BT-114).
Net (BT-109) 1,459.00
+ VAT 19% (BT-110) 277.21
= Gross (BT-112) 1,736.21
− Paid (BT-113) 0.00
= Amount due (BT-115) 1,736.21BR-S-08 and BR-S-09: VAT per rate is wrong
Rule text, shortened: BR-S-08 requires the taxable amount per VAT rate (BT-116) to equal the sum of the lines at that rate plus charges minus allowances. BR-S-09 requires the VAT amount (BT-117) to equal the taxable amount times the rate.
Cause: VAT was calculated per line and added up instead of once on the total per rate, or an allowance is assigned to the wrong rate. In our tests, a wrong taxable amount triggered BR-S-08, BR-S-09 and BR-CO-17 together.
Fix: One line in the VAT breakdown (BG-23) per rate: sum of the net lines at that rate plus charges minus allowances, then calculate the VAT once on that amount and round to two decimals.
BR-CO-26, BR-S-02 and BR-DE-16: seller tax details missing
Rule text BR-CO-26: "In order for the buyer to automatically identify a supplier, the Seller identifier (BT-29), the Seller legal registration identifier (BT-30) and/or the Seller VAT identifier (BT-31) shall be present."
Cause: the VAT ID is missing from the master data or is not exported. The validator then often reports three rules at once: BR-S-02 and BR-DE-16 require a VAT ID (BT-31), a tax number (BT-32) or a tax representative for standard-rated lines, and BR-CO-26 requires a seller identifier.
Fix: Enter the VAT ID with its country prefix in BT-31. If you only have a German tax number, enter it in BT-32 and, for BR-CO-26, add a seller identifier (BT-29) or the commercial register number (BT-30).
<ram:SellerTradeParty>
…
<ram:SpecifiedTaxRegistration>
<ram:ID schemeID="VA">DE123456789</ram:ID> <!-- VAT ID, BT-31 -->
</ram:SpecifiedTaxRegistration>
<!-- tax number (BT-32): schemeID="FC" -->
</ram:SellerTradeParty>BR-CO-09: VAT ID without country code
Rule text, shortened: the VAT IDs of seller (BT-31), tax representative (BT-63) and buyer (BT-48) must start with the ISO country code; Greece may use EL.
Cause: 123456789 instead of DE123456789, or a tax number in the VAT ID field.
Fix: Add the country prefix. A tax number belongs in BT-32, not in BT-31.
BR-DE-2 to BR-DE-7: seller contact details missing
Cause: XRechnung requires a seller contact (BG-6) with a name or department (BT-41), telephone number (BT-42) and email address (BT-43), plus the seller's city (BT-37) and post code (BT-38). EN 16931 alone does not require these, so they are often missing from invoices that were really generated for ZUGFeRD.
Fix: Store a contact person, telephone number and email address in the master data of your invoicing software.
<ram:DefinedTradeContact>
<ram:PersonName>Accounts</ram:PersonName>
<ram:TelephoneUniversalCommunication>
<ram:CompleteNumber>+49 30 1234567</ram:CompleteNumber>
</ram:TelephoneUniversalCommunication>
<ram:EmailURIUniversalCommunication>
<ram:URIID>[email protected]</ram:URIID>
</ram:EmailURIUniversalCommunication>
</ram:DefinedTradeContact>BR-DE-1 and BR-DE-23-a: payment details missing
Rule text BR-DE-1 (German original): "Eine Rechnung (INVOICE) muss Angaben zu 'PAYMENT INSTRUCTIONS' (BG-16) enthalten." An invoice must contain payment instructions (BG-16). If the payment means is a credit transfer (code 30 or 58 in BT-81), BR-DE-23-a also requires the CREDIT TRANSFER group (BG-17) with the IBAN.
Fix: Provide the payment means code and the IBAN; for a SEPA credit transfer, use code 58.
BR-DE-18: cash discount (Skonto) formatted incorrectly
In XRechnung, a cash discount is stated machine-readably in the payment terms (BT-20), in a fixed format: each line starts with #, the segments SKONTO, TAGE=n (days) and PROZENT=n (percent) are separated by #, and the line ends with # and a line break. Percentages use a dot and exactly two decimals, everything in capitals, no spaces.
Cause: PROZENT=2 instead of PROZENT=2.00, a comma instead of a dot, or a missing line break at the end. Free text such as "2% discount if paid within 10 days" without # did not trigger the rule in our tests, but it is not machine-readable either.
Fix: This is what a valid entry looks like, the second line with a different base amount:
#SKONTO#TAGE=10#PROZENT=2.00#
#SKONTO#TAGE=20#PROZENT=1.00#BASISBETRAG=500.00#BR-DE-21: warning about the specification identifier
Rule text (German original): "Das Element 'Specification identifier' (BT-24) soll syntaktisch der Kennung des Standards XRechnung entsprechen." The specification identifier (BT-24) should match the XRechnung identifier.
This is a warning, not an error. It appears when a file is checked as an XRechnung but BT-24 carries a different identifier, such as the ZUGFeRD EN 16931 one. For XRechnung 3.0 the identifier is: urn:cen.eu:en16931:2017#compliant#urn:xeinkauf.de:kosit:xrechnung_3.0
Found an error? Here is how to proceed
- Check the file with a validator that knows the current XRechnung version 3.0.
- Start with the first error and validate again after every change, because follow-up errors often disappear.
- Fix the error in your invoicing software or master data, not only in the XML file, otherwise it returns with the next invoice.
- For invoices to public authorities, follow the portal's requirements, such as the Leitweg-ID.
Whether an error makes the invoice invalid for VAT purposes is a different question. The answer is in Validation errors: is my e-invoice now invalid?