Validation rule reference
Each page covers one rule from the official rule sets: the text exactly as published, what it checks, which formats it applies to, a rejected and a corrected UBL example, and whether the fix page can repair it. For a rule that is not listed here, upload the file: every finding comes with an explanation.
XRechnung (BR-DE)
Rules of the German CIUS, published by KoSIT. They apply on top of EN 16931 to XRechnung documents and to ZUGFeRD files with the XRECHNUNG profile.
- BR-DE-15Buyer reference (Leitweg-ID) missing
XRechnung requires the buyer reference BT-10. For public buyers in Germany it carries the Leitweg-ID that routes the invoice to the right office.
- BR-DE-1Payment instructions missing
XRechnung requires every invoice to say how it is to be paid: at least a payment means type code (BT-81).
- BR-DE-2Seller contact missing
XRechnung requires a seller contact with a contact point, a telephone number and an e-mail address.
- BR-DE-7Seller contact e-mail missing
XRechnung requires an e-mail address in the seller contact, and it must not be blank.
- BR-DE-14VAT rate missing in the VAT breakdown
Every VAT breakdown in an XRechnung needs a VAT category rate, including the categories that carry 0 %.
- BR-DE-16Seller VAT ID or tax number missing
When an XRechnung uses the VAT categories S, Z, E, AE, K, G, L or M, the seller must be identified for tax.
- BR-DE-17Invoice type code not in the XRechnung list
XRechnung expects one of eight invoice type codes. Other codes from UNTDID 1001 pass EN 16931 but raise this warning.
- BR-DE-18Skonto (cash discount) line in the wrong format
XRechnung states a cash discount (Skonto) as a coded line in the payment terms. Every detail of the format is checked.
- BR-DE-19IBAN for SEPA credit transfer is not valid
With payment means 58 (SEPA credit transfer), XRechnung checks that the account to pay to is a correct IBAN.
- BR-DE-23-aCredit transfer without account details
When an XRechnung says the buyer pays by credit transfer, it must also say which account to pay to.
- BR-DE-26Corrected invoice without reference to the original
A corrected invoice should name the invoice it corrects, so the buyer can match the two.
- BR-DE-TMP-32No delivery date or invoicing period
XRechnung recommends stating when the goods were delivered or the service performed. This rule is informational.
Totals and amounts (BR-CO)
Calculation rules of EN 16931. They compare the document totals with the lines and the VAT breakdown, so one wrong amount often triggers several of them.
- BR-CO-10Sum of line net amounts does not match the lines
The document total of the line amounts must equal the sum of the line net amounts, to the cent.
- BR-CO-13Total without VAT does not add up
The total without VAT must equal the sum of the line amounts, minus document level allowances, plus document level charges.
- BR-CO-14Total VAT differs from the VAT breakdown
The total VAT of the invoice must equal the sum of the VAT amounts in the VAT breakdown, to the cent.
- BR-CO-15Total with VAT is not total without VAT plus VAT
The total with VAT must equal the total without VAT plus the total VAT amount, to the cent.
- BR-CO-16Amount due does not match the totals
The amount due for payment must equal the total with VAT, minus what was already paid, plus a rounding amount.
- BR-CO-17VAT amount does not match base times rate
In each VAT breakdown, the VAT amount must match the taxable amount multiplied by the rate.
VAT categories (BR-S, BR-AE, BR-E)
Rules for each VAT category code. They decide which identifiers, rates and exemption reasons a category needs.
- BR-S-08Taxable amount for a standard rate does not match the lines
For each standard rate, the taxable amount in the VAT breakdown must equal the line amounts plus charges minus allowances at that rate.
- BR-AE-02Reverse charge without the seller's and buyer's VAT IDs
Reverse charge shifts the VAT to the buyer, so both parties must be identified for VAT on the invoice.
- BR-AE-10Reverse charge breakdown without exemption reason
A reverse charge VAT breakdown must say why no VAT is charged: with a reason code, a reason text, or both.
- BR-E-10Exempt VAT breakdown without exemption reason
An exempt VAT breakdown must state why the supply is exempt, with a reason code, a reason text, or both.
Identifiers, codes and decimals
EN 16931 rules on party identifiers, code lists and the number of decimals in amounts.
- BR-CO-26No seller identifier, legal registration or VAT ID
The buyer must be able to identify the seller automatically, so at least one seller identifier is required.
- BR-CL-23Unit code not from UN/ECE Recommendation 20 or 21
Units of measure must be codes from UN/ECE Recommendation 20 (with the Recommendation 21 package codes), written exactly as listed.
- BR-DEC-23Line net amount with more than two decimals
Invoice line net amounts may have at most two decimals.
Peppol (PEPPOL-EN16931)
Rules written by OpenPeppol for Peppol BIS Billing 3.0. KoSIT includes them in the XRechnung 3.0 rules as well.
- PEPPOL-EN16931-R001Business process (ProfileID) missing
Peppol requires the business process type BT-23. XRechnung 3.0 includes the same rule.
- PEPPOL-EN16931-R008Document contains empty elements
Peppol and XRechnung do not allow elements without content: leave an element out instead of writing it empty.
- PEPPOL-EN16931-R010Buyer electronic address missing
Peppol and XRechnung require the buyer's electronic address, the identifier under which the buyer receives invoices.
- PEPPOL-EN16931-R020Seller electronic address missing
Peppol and XRechnung require the seller's electronic address, so the buyer can reply and route documents back.
- PEPPOL-EN16931-R120Line net amount is not quantity times price
Each line amount must follow from the quantity, the net price and its base quantity, with line allowances and charges.
Check your invoice against the official rules
Not listed? Upload the invoice: every finding of every rule set comes with an explanation and the line in the file.
Processed in memory and not stored. No sign-up needed.
E-Invoicing API