Error codes
Every rule a validator can report, explained: what the message means, what usually causes it and what the fix looks like in the XML.
84 rules · As of: XRechnung 3.0.2, EN 16931 1.3.16
BR-DE – XRechnung
The national business rules of the XRechnung standard (KoSIT), on top of EN 16931: contact details, payment information, Leitweg-ID, cash discounts.
- BR-DE-1BR-DE-1: payment instructions (BG-16) missing in the XRechnung
- BR-DE-2BR-DE-2: seller contact (BG-6) missing in the XRechnung
- BR-DE-3BR-DE-3: seller city (BT-37) missing in the XRechnung
- BR-DE-4BR-DE-4: seller post code (BT-38) missing
- BR-DE-5BR-DE-5: seller contact point (BT-41) is empty
- BR-DE-6BR-DE-6: seller contact telephone number (BT-42) missing
- BR-DE-7BR-DE-7: seller contact e-mail address (BT-43) missing
- BR-DE-8BR-DE-8: buyer city (BT-52) missing in the XRechnung
- BR-DE-9BR-DE-9: buyer post code (BT-53) missing
- BR-DE-10BR-DE-10: deliver-to city (BT-77) missing
- BR-DE-11BR-DE-11: deliver-to post code (BT-78) missing
- BR-DE-14BR-DE-14: VAT category rate (BT-119) missing in the breakdown
- BR-DE-15BR-DE-15: buyer reference (BT-10) missing in the XRechnung
- BR-DE-16BR-DE-16: seller VAT identifier or tax number missing
- BR-DE-17BR-DE-17: invoice type code (BT-3) not in the allowed list
- BR-DE-18BR-DE-18: Skonto line in the payment terms (BT-20) is malformed
- BR-DE-19BR-DE-19: IBAN (BT-84) invalid for a SEPA credit transfer
- BR-DE-20BR-DE-20: debited account IBAN (BT-91) invalid for a direct debit
- BR-DE-21BR-DE-21: specification identifier (BT-24) is not the XRechnung id
- BR-DE-22BR-DE-22: attachment file name used more than once
- BR-DE-23-aBR-DE-23-a: credit transfer (code 30/58) without account (BG-17)
- BR-DE-23-bBR-DE-23-b: credit transfer combined with card or direct debit data
- BR-DE-24-aBR-DE-24-a: card payment without card information (BG-18)
- BR-DE-24-bBR-DE-24-b: card payment combined with account or direct debit data
- BR-DE-25-aBR-DE-25-a: direct debit without mandate information (BG-19)
- BR-DE-25-bBR-DE-25-b: direct debit combined with account or card data
- BR-DE-26BR-DE-26: corrected invoice (384) without preceding invoice reference
- BR-DE-27BR-DE-27: seller telephone number (BT-42) has too few digits
- BR-DE-28BR-DE-28: seller e-mail address (BT-43) is not in a valid form
- BR-DE-30BR-DE-30: creditor identifier (BT-90) missing for a direct debit
- BR-DE-31BR-DE-31: debited account (BT-91) missing for a direct debit
BR-CO – Conditions and calculations
EN 16931 rules on dependencies between fields and on sums: line amounts, VAT amounts, totals.
- BR-CO-03BR-CO-03: VAT point date (BT-7) and date code (BT-8) both given
- BR-CO-04BR-CO-04: invoice line without a VAT category code (BT-151)
- BR-CO-05BR-CO-05: allowance reason and reason code (BT-97, BT-98) do not match
- BR-CO-06BR-CO-06: charge reason and reason code (BT-104, BT-105) do not match
- BR-CO-07BR-CO-07: line allowance reason and reason code do not match
- BR-CO-08BR-CO-08: line charge reason and reason code do not match
- BR-CO-09BR-CO-09: VAT identifier without a country prefix (BT-31, BT-48)
- BR-CO-10BR-CO-10: sum of line net amounts (BT-106) does not add up
- BR-CO-11BR-CO-11: sum of allowances (BT-107) does not add up
- BR-CO-12BR-CO-12: sum of charges (BT-108) does not add up
- BR-CO-13BR-CO-13: total without VAT (BT-109) does not add up
- BR-CO-14BR-CO-14: invoice total VAT (BT-110) ≠ sum of the VAT breakdown
- BR-CO-15BR-CO-15: total with VAT (BT-112) is not net plus VAT
- BR-CO-16BR-CO-16: amount due (BT-115) does not add up
- BR-CO-17BR-CO-17: VAT amount (BT-117) does not match taxable amount and rate
- BR-CO-18BR-CO-18: no VAT breakdown (BG-23) in the invoice
- BR-CO-19BR-CO-19: invoicing period (BG-14) without start or end date
- BR-CO-20BR-CO-20: invoice line period (BG-26) without start or end date
- BR-CO-21BR-CO-21: document level allowance (BG-20) without a reason
- BR-CO-22BR-CO-22: document level charge (BG-21) without a reason
- BR-CO-23BR-CO-23: invoice line allowance (BG-27) without a reason
- BR-CO-24BR-CO-24: invoice line charge (BG-28) without a reason
- BR-CO-25BR-CO-25: amount due without due date and payment terms
- BR-CO-26BR-CO-26: seller without an identifier (BT-29, BT-30 or BT-31)
BR – Core rules of EN 16931
The base rules of the European norm: what an invoice, its parties and its lines must contain.
- BR-01BR-01: specification identifier (BT-24) missing
- BR-02BR-02: invoice number (BT-1) missing
- BR-08BR-08: seller postal address missing
- BR-16BR-16: invoice without an invoice line (BG-25)
- BR-52BR-52: supporting document without a reference (BT-122)
- BR-61BR-61: credit transfer without a payment account identifier (BT-84)
Rule family BR-DE-CVD
- BR-DE-CVD-01BR-DE-CVD-01: contract reference (BT-12) missing in a CVD invoice
- BR-DE-CVD-02BR-DE-CVD-02: tender or lot reference (BT-17) missing
- BR-DE-CVD-03BR-DE-CVD-03: no line with vehicle category and cva attribute
- BR-DE-CVD-04BR-DE-CVD-04: vehicle category (BT-158) not in the allowed list
- BR-DE-CVD-05BR-DE-CVD-05: cva attribute (BT-161) has no permitted value
- BR-DE-CVD-06-aBR-DE-CVD-06-a: vehicle category without exactly one cva attribute
- BR-DE-CVD-06-bBR-DE-CVD-06-b: cva attribute without exactly one vehicle category
Rule family BR-DE-TMP
BR-DEX – XRechnung extension
Rules of the XRechnung extension (KoSIT).
- BR-DEX-01BR-DEX-01: attachment (BT-125) with a MIME type not allowed
- BR-DEX-02BR-DEX-02: line amount differs from the sum of its sub invoice lines
- BR-DEX-03BR-DEX-03: sub invoice line without exactly one VAT information
- BR-DEX-04BR-DEX-04: party identifier scheme not from the ISO 6523 list
- BR-DEX-05BR-DEX-05: legal registration scheme not from the ISO 6523 list
- BR-DEX-06BR-DEX-06: item identifier scheme not from the ISO 6523 list
- BR-DEX-07BR-DEX-07: electronic address scheme not from the EAS list
- BR-DEX-08BR-DEX-08: delivery location scheme not from the ISO 6523 list
- BR-DEX-09BR-DEX-09: amount due does not account for third party payments
- BR-DEX-10BR-DEX-10: third party payment without a payment type (BT-DEX-001)
- BR-DEX-11BR-DEX-11: third party payment without an amount (BT-DEX-002)
- BR-DEX-12BR-DEX-12: third party payment without a description (BT-DEX-003)
- BR-DEX-13BR-DEX-13: third party payment amount with too many decimals
- BR-DEX-14BR-DEX-14: third party payment currency differs from the invoice
- BR-DEX-15BR-DEX-15: sub invoice lines in CII, which XRechnung does not support