Validation rule reference
What XRechnung, EN 16931 and Peppol validation rules mean and how to fix an invoice that breaks them. Each page also shows the official rule text.
XRechnung 3.0 rules (KoSIT)
XRechnung 3.0.2 (rules 2.6.0) from KoSIT. Every XRechnung rule.
- BR-DE-1: An XRechnung invoice must contain payment instructions (BG-16)
- BR-DE-2: The seller contact group (BG-6) is missing
- BR-DE-3: The seller's city (BT-37) is missing
- BR-DE-4: The seller's post code (BT-38) is missing
- BR-DE-5: The seller contact point (BT-41) is missing
- BR-DE-6: The seller contact telephone number (BT-42) is missing
- BR-DE-7: The seller contact email address (BT-43) is missing
- BR-DE-8: The buyer's city (BT-52) is missing
- BR-DE-9: The buyer's post code (BT-53) is missing
- BR-DE-10: A delivery address (BG-15) is present, but its city (BT-77) is missing
- BR-DE-11: A delivery address (BG-15) is present, but its post code (BT-78) is missing
- BR-DE-14: Every VAT breakdown must state its VAT rate (BT-119)
- BR-DE-15: The buyer reference (BT-10) is missing
- BR-DE-16: Seller VAT ID (BT-31), tax number (BT-32) or tax representative (BG-11) is missing
- BR-DE-17: The invoice type code (BT-3) should be one of 326, 380, 381, 384, 389, 875, 876 or 877
- BR-DE-18: Skonto lines in the payment terms (BT-20) are not in the required format
- BR-DE-19: The payment account (BT-84) should be a valid IBAN for SEPA credit transfer
- BR-DE-20: The debited account (BT-91) should be a valid IBAN for SEPA direct debit
- BR-DE-21: The specification identifier (BT-24) should be the XRechnung identifier
- BR-DE-22: Two or more attached documents use the same file name
- BR-DE-23-a: Payment means code 30 or 58 (credit transfer) requires the credit transfer group (BG-17)
- BR-DE-23-b: Card or direct debit details are not allowed with credit transfer (30 or 58)
- BR-DE-24-a: Card payment (48, 54 or 55) requires exactly one payment card group (BG-18)
- BR-DE-24-b: Credit transfer or direct debit details are not allowed with card payment
- BR-DE-25-a: Payment means code 59 (direct debit) requires exactly one direct debit group (BG-19)
- BR-DE-25-b: Credit transfer or card details are not allowed with direct debit (59)
- BR-DE-26: A corrected invoice (type code 384) should reference the invoice it corrects (BG-3)
- BR-DE-27: The seller's telephone number (BT-42) should contain at least three digits
- BR-DE-28: The seller's email address (BT-43) does not look valid
- BR-DE-30: Direct debit (BG-19) requires the bank-assigned creditor identifier (BT-90)
- BR-DE-31: Direct debit (BG-19) requires the debited account identifier (BT-91)
- BR-DE-CVD-01: Clean Vehicles Directive invoices need the contract reference (BT-12)
- BR-DE-CVD-02: Clean Vehicles Directive invoices need the tender or lot reference (BT-17)
- BR-DE-CVD-03: Clean Vehicles Directive invoices need a line classified 'CVD' with attribute 'cva'
- BR-DE-CVD-04: A 'CVD' item classification (BT-158) must use an allowed vehicle category
- BR-DE-CVD-05: The 'cva' item attribute value (BT-161) must be one of the allowed values
- BR-DE-CVD-06-a: A line classified as 'CVD' must also have exactly one 'cva' attribute
- BR-DE-CVD-06-b: A line with a 'cva' attribute must also have exactly one 'CVD' classification
- BR-DE-TMP-32: The invoice should state when the goods or services were delivered
- BR-DEX-01: An attached document (BT-125) uses a MIME type that is not allowed
- BR-DEX-02: A line's net amount (BT-131) should equal the sum of its sub-line net amounts
- BR-DEX-03: Every sub invoice line must carry exactly one VAT information group (BG-DEX-06)
- BR-DEX-04: A scheme identifier must come from the ISO 6523 ICD list
- BR-DEX-05: A scheme identifier must come from the ISO 6523 ICD list
- BR-DEX-06: A scheme identifier must come from the ISO 6523 ICD list
- BR-DEX-07: An electronic address scheme (schemeID) must come from the CEF EAS code list
- BR-DEX-08: A delivery location scheme identifier must come from the ISO 6523 ICD list
- BR-DEX-09: The amount due (BT-115) does not add up, counting third-party payments
- BR-DEX-10: A third-party payment (BG-DEX-09) needs its payment type (BT-DEX-001)
- BR-DEX-11: A third-party payment (BG-DEX-09) needs its amount (BT-DEX-002)
- BR-DEX-12: A third-party payment (BG-DEX-09) needs its description (BT-DEX-003)
- BR-DEX-13: The third-party payment amount (BT-DEX-002) may have at most 2 decimals
- BR-DEX-14: The third-party payment amount must be in the invoice currency (BT-5)
- BR-DEX-15: This file may use sub invoice lines, which standard XRechnung does not support
- BR-TMP-2: The external document location (BT-124) must be an absolute URL
- BR-TMP-3: Gross and net price base quantities (BT-149) and unit codes (BT-150) must match
- BR-TMP-4: Each supporting document (BG-24) may have only one description (BT-123)
- BR-TMP-5: Each supporting document (BG-24) may have only one attached file (BT-125)
- BR-TMP-6: Dates in UBL must be written as YYYY-MM-DD
- BR-TMP-7: Dates in CII must carry format="102" and be written as YYYYMMDD
- BR-TMP-CVD-01: The item classification scheme (BT-158) must come from code list UNTDID 7143
EN 16931 rules (CEN)
EN 16931 1.3.17 from CEN. The rules that fail most often.
- BR-16: An invoice must have at least one invoice line (BG-25)
- BR-61: Credit transfer payments need a payment account identifier (BT-84)
- BR-CO-10: The sum of line net amounts (BT-106) must equal the line net amounts (BT-131) added up
- BR-CO-13: Total without VAT (BT-109) must equal line total minus allowances plus charges
- BR-CO-14: Total VAT (BT-110) must equal the sum of VAT per category (BT-117)
- BR-CO-15: Total with VAT (BT-112) must equal total without VAT (BT-109) plus VAT (BT-110)
- BR-CO-16: Amount due (BT-115) must equal total with VAT minus paid amount plus rounding
- BR-S-08: Taxable amount per standard VAT rate (BT-116) must match lines, allowances and charges
- BR-S-09: Standard-rated VAT (BT-117) must equal taxable amount (BT-116) times rate (BT-119)
Peppol BIS Billing 3.0 rules (OpenPEPPOL)
Peppol BIS Billing 3.0.22 from OpenPEPPOL. The rules that fail most often.
- PEPPOL-EN16931-CL008: The electronic address scheme must come from the EAS code list
- PEPPOL-EN16931-R003: A buyer reference or purchase order reference must be provided
- PEPPOL-EN16931-R010: The buyer's electronic address must be provided
- PEPPOL-EN16931-R020: The seller's electronic address must be provided