XRechnung error codes

Reference for the XRechnung validation rules. Search by rule code, or paste the error message your validator printed — the official wording is searched too. The cause and the fix of every rule come with each finding of the validator and the API.

309 rules · 305 explained · Rule set v2026-08-31

4 rules compile to true() in the rule set and cannot trigger. They are listed anyway — “why do I never see this error?” deserves an answer.

309 of 309 rules

BR

58
  • BR-01

    Specification identifier (BT-24) missing

  • BR-02

    Invoice number (BT-1) missing

  • BR-03

    Issue date (BT-2) missing

  • BR-04

    The invoice must carry an invoice type code (BT-3) — the code saying whether this is an invoice, a credit note or a partial invoice.

  • BR-05

    The invoice must name an invoice currency (BT-5).

  • BR-06

    The invoice must contain the seller name (BT-27) — the full registered name the company trades under.

  • BR-07

    Buyer name (BT-44) missing

  • BR-08

    Seller postal address (BG-5) missing

  • BR-09

    The seller postal address must contain a country code (BT-40) — the two-letter ISO 3166-1 code, not the country's name spelled out.

  • BR-10

    The invoice must contain the buyer postal address (BG-8) — the counterpart to BG-5 on the recipient's side.

  • BR-11

    The buyer postal address must contain a country code (BT-55) — the same requirement as BR-09, on the recipient's side.

  • BR-12

    The invoice must contain the sum of line net amounts (BT-106).

  • BR-13

    The invoice must contain the total amount without VAT (BT-109).

  • BR-14

    The invoice must contain the total amount with VAT (BT-112).

  • BR-15

    The invoice must contain the amount due for payment (BT-115).

  • BR-16

    Invoice with no line (BG-25)

  • BR-17

    Where the payee (BG-10) differs from the seller, the payee name (BT-59) must be provided.

  • BR-18

    Where the seller has a tax representative (BG-11), the representative's name (BT-62) must be provided.

  • BR-19

    Where the seller has a tax representative, that representative's postal address (BG-12) must be provided — the same requirement as BR-08, for a third party.

  • BR-20

    Tax representative without a country (BT-69)

  • BR-21

    Every invoice line (BG-25) must carry a line identifier (BT-126).

  • BR-22

    Every invoice line must carry an invoiced quantity (BT-129) — including where the line is a flat fee.

  • BR-23

    The invoiced quantity must carry a unit of measure (BT-130) — a code from UN/ECE Recommendation 20, not your item master's own abbreviation.

  • BR-24

    Every invoice line must carry a net amount (BT-131) — the amount of the row before VAT.

  • BR-25

    Item name (BT-153) missing

  • BR-26

    Every invoice line must carry an item net price (BT-146) — the price per unit after any price discount.

  • BR-27

    Negative net price (BT-146)

  • BR-28

    Negative gross price (BT-148)

  • BR-29

    Where both the start and the end of the invoicing period are given, the end must fall on or after the start.

  • BR-30

    Where both the start and the end of a line period are given, the end must fall on or after the start — the same check as BR-29, per line.

  • BR-31

    Every document-level allowance (BG-20) must carry an amount (BT-92).

  • BR-32

    Every document-level allowance (BG-20) must carry a VAT category code (BT-95).

  • BR-33

    Every document-level allowance (BG-20) must carry a reason — in plain text (BT-97), as a code (BT-98), or both.

  • BR-36

    Every document-level charge (BG-21) must carry an amount (BT-99).

  • BR-37

    Every document-level charge (BG-21) must carry a VAT category code (BT-102).

  • BR-38

    Every document-level charge (BG-21) must carry a reason — in plain text (BT-104), as a code (BT-105), or both.

  • BR-41

    Every invoice line allowance (BG-27) must carry an amount (BT-136).

  • BR-42

    Line allowance with no reason

  • BR-43

    Line charge with no amount (BT-141)

  • BR-44

    Every invoice line charge (BG-28) must carry a reason — in plain text (BT-144), as a code (BT-145), or both.

  • BR-45

    Every VAT breakdown block (BG-23) must contain the category taxable amount (BT-116).

  • BR-46

    Every VAT breakdown block (BG-23) must contain the category tax amount (BT-117).

  • BR-47

    VAT breakdown with no category code (BT-118)

  • BR-48

    Every VAT breakdown block must carry a VAT category rate (BT-119), unless the invoice is not subject to VAT at all (category O).

  • BR-49

    A payment instruction (BG-16) must state the payment means code (BT-81) — how the invoice is meant to be paid.

  • BR-50

    Where a credit transfer is given as the payment means, the payee account identifier (BT-84) must accompany it.

  • BR-51

    Unmasked card number (BT-87)

  • BR-52

    Every additional supporting document (BG-24) must carry a reference (BT-122) — the number under which the recipient can find the document.

  • BR-53

    Where a VAT accounting currency (BT-6) is given, the tax total in that currency (BT-111) must be provided too.

  • BR-54

    Item attribute with no value (BT-161)

  • BR-55

    Every preceding invoice reference (BG-3) must contain the preceding invoice's number (BT-25).

  • BR-56

    Every tax representative party (BG-11) must carry its VAT identifier (BT-63).

  • BR-57

    Deliver-to address with no country (BT-80)

  • BR-61

    Credit transfer with no account (BT-84)

  • BR-62

    Where the seller electronic address (BT-34) is sent, it must carry a scheme identifier.

  • BR-63

    Where the buyer electronic address (BT-49) is sent, it must carry a scheme identifier.

  • BR-64

    Where the item standard identifier (BT-157) is sent, it must carry a scheme identifier.

  • BR-65

    Item classification with no scheme (BT-158)

BR-DE

31
  • BR-DE-1

    Payment instructions (BG-16) missing

    Eine Rechnung (INVOICE) muss Angaben zu "PAYMENT INSTRUCTIONS" (BG-16) enthalten.

    Fix: Populate BG-16 as structured data: payment means code (BT-81) and, depending on the method, the account details such as IBAN in BT-84.

  • BR-DE-2

    Seller contact (BG-6) missing

    Die Gruppe "SELLER CONTACT" (BG-6) muss übermittelt werden.

    Fix: Send BG-6 with contact point (BT-41), telephone (BT-42) and email (BT-43).

  • BR-DE-3

    Seller city (BT-37) missing

    Das Element "Seller city" (BT-37) muss übermittelt werden.

    Fix: Send the city in BT-37: cac:AccountingSupplierParty/cac:Party/cac:PostalAddress/cbc:CityName in UBL, ram:SellerTradeParty/ram:PostalTradeAddress/ram:CityName in CII.

  • BR-DE-4

    Seller post code (BT-38) missing

    Das Element "Seller post code" (BT-38) muss übermittelt werden.

    Fix: Send the post code in BT-38: cac:AccountingSupplierParty/cac:Party/cac:PostalAddress/cbc:PostalZone in UBL, ram:SellerTradeParty/ram:PostalTradeAddress/ram:PostcodeCode in CII.

  • BR-DE-5

    Seller contact point (BT-41) missing

    Das Element "Seller contact point" (BT-41) muss übermittelt werden.

    Fix: Send a person or department, such as "Accounting" or "Jane Doe": cac:AccountingSupplierParty/cac:Party/cac:Contact/cbc:Name in UBL, ram:SellerTradeParty/ram:DefinedTradeContact/ram:PersonName or ram:DepartmentName in CII.

  • BR-DE-6

    Contact telephone (BT-42) missing

    Das Element "Seller contact telephone number" (BT-42) muss übermittelt werden.

    Fix: Send the number in BT-42: cac:AccountingSupplierParty/cac:Party/cac:Contact/cbc:Telephone in UBL, ram:SellerTradeParty/ram:DefinedTradeContact/ram:TelephoneUniversalCommunication/ram:CompleteNumber in CII.

  • BR-DE-7

    Contact email (BT-43) missing

    Das Element "Seller contact email address" (BT-43) muss übermittelt werden.

    Fix: Send the address in BT-43: cac:AccountingSupplierParty/cac:Party/cac:Contact/cbc:ElectronicMail in UBL, ram:SellerTradeParty/ram:DefinedTradeContact/ram:EmailURIUniversalCommunication/ram:URIID in CII.

  • BR-DE-8

    Buyer city (BT-52) missing

    Das Element "Buyer city" (BT-52) muss übermittelt werden.

    Fix: Send the city as structured data in BT-52: cac:AccountingCustomerParty/cac:Party/cac:PostalAddress/cbc:CityName in UBL, ram:BuyerTradeParty/ram:PostalTradeAddress/ram:CityName in CII.

  • BR-DE-9

    Buyer post code (BT-53) missing

    Das Element "Buyer post code" (BT-53) muss übermittelt werden.

    Fix: Send the post code in BT-53: cac:AccountingCustomerParty/cac:Party/cac:PostalAddress/cbc:PostalZone in UBL, ram:BuyerTradeParty/ram:PostalTradeAddress/ram:PostcodeCode in CII.

  • BR-DE-10

    Delivery address with no city (BT-77)

    Das Element "Deliver to city" (BT-77) muss übermittelt werden, wenn die Gruppe "DELIVER TO ADDRESS" (BG-15) übermittelt wird.

    Fix: Either transmit the delivery address completely (city in BT-77: cac:Delivery/cac:DeliveryLocation/cac:Address/cbc:CityName in UBL, ram:ShipToTradeParty/ram:PostalTradeAddress/ram:CityName in CII) — or omit group BG-15 entirely if you do not mean to state one.

  • BR-DE-11

    Delivery address with no post code (BT-78)

    Das Element "Deliver to post code" (BT-78) muss übermittelt werden, wenn die Gruppe "DELIVER TO ADDRESS" (BG-15) übermittelt wird.

    Fix: Add the post code in BT-78: cac:Delivery/cac:DeliveryLocation/cac:Address/cbc:PostalZone in UBL, ram:ShipToTradeParty/ram:PostalTradeAddress/ram:PostcodeCode in CII.

  • BR-DE-14

    VAT category rate (BT-119) missing

    Das Element "VAT category rate" (BT-119) muss übermittelt werden.

    Fix: Always write BT-119, explicitly 0 for exempt categories, and for category O as well (the breakdown needs the rate there too): cac:TaxCategory/cbc:Percent in UBL, ram:ApplicableTradeTax/ram:RateApplicablePercent in CII.

  • BR-DE-15

    Leitweg-ID (BT-10) or buyer reference

    Das Element "Buyer reference" (BT-10) muss übermittelt werden.

    Fix: Put the Leitweg-ID or buyer reference supplied by your customer into BT-10 — cbc:BuyerReference in UBL, ram:BuyerReference in CII.

  • BR-DE-16

    Seller not identifiable for tax

    Wenn in einer Rechnung die Steuercodes S, Z, E, AE, K, G, L oder M verwendet werden, muss mindestens eines der Elemente "Seller VAT identifier" (BT-31), "Seller tax registration identifier" (BT-32) oder "SELLER TAX REPRESENTATIVE PARTY" (BG-11) übermittelt werden.

    Fix: Supply at least one of the three.

  • BR-DE-17

    Invoice type code (BT-3) not permitted

    Mit dem Element "Invoice type code" (BT-3) sollen ausschließlich folgende Codes aus der Codeliste UNTDID 1001 übermittelt werden: 326 (Partial invoice), 380 (Commercial invoice), 384 (Corrected invoice), 389 (Self-billed invoice) und 381 (Credit note),875 (Partial construction invoice), 876 (Partial final construction invoice), 877 (Final construction invoice).

    Fix: Map your internal document type onto one of the permitted codes — 380 for a normal invoice, 326 for a partial invoice, 381 for a credit note.

  • BR-DE-18

    Wrong Skonto format in BT-20

    Skonto Zeilen in […] müssen diesem regulärem Ausdruck entsprechen: […]. Die Informationen zur Gewährung von Skonto müssen wie folgt im Element "Payment terms" (BT-20) übermittelt werden: Anzugeben ist im ersten Segment "SKONTO", im zweiten "TAGE=n", im dritten "PROZENT=n". Prozentzahlen sind ohne Vorzeichen sowie mit Punkt getrennt von zwei Nachkommastellen anzugeben. Liegt dem zu berechnenden Betrag nicht BT-115, "fälliger Betrag" zugrunde, sondern nur ein Teil des fälligen Betrags der Rechnung, ist der Grundwert zur Berechnung von Skonto als viertes Segment "BASISBETRAG=n" gemäß dem semantischen Datentypen Amount anzugeben. Jeder Eintrag beginnt mit einer #, die Segmente sind mit einer # getrennt und eine Zeile schließt mit einer # ab. Am Ende einer vollständigen Skontoangabe muss ein XML-konformer Zeilenumbruch folgen. Alle Angaben zur Gewährung von Skonto müssen in Großbuchstaben gemacht werden. Zusätzliches Whitespace (Leerzeichen, Tabulatoren oder Zeilenumbrüche) ist nicht zulässig. Andere Zeichen oder Texte als in den oberen Vorgaben genannt sind nicht zulässig.

    Fix: Write the entry exactly as #SKONTO#TAGE=14#PROZENT=2.00# and terminate it with a line break.

  • BR-DE-19

    Invalid IBAN for credit transfer (BT-84)

    "Payment account identifier" (BT-84) soll eine korrekte IBAN enthalten, wenn in "Payment means type code" (BT-81) mit dem Code 58 SEPA als Zahlungsmittel gefordert wird.

    Fix: Send the IBAN with a valid check digit in BT-84 (cac:PayeeFinancialAccount/cbc:ID in UBL, ram:PayeePartyCreditorFinancialAccount/ram:IBANID in CII) — or pick the correct payment means code if it is not a SEPA transfer.

  • BR-DE-20

    Invalid IBAN for direct debit (BT-91)

    "Debited account identifier" (BT-91) soll eine korrekte IBAN enthalten, wenn in "Payment means type code" (BT-81) mit dem Code 59 SEPA als Zahlungsmittel gefordert wird.

    Fix: Send the debited account's IBAN with a valid check digit in BT-91: in UBL under cac:PaymentMandate/cac:PayerFinancialAccount/cbc:ID, in CII directly as ram:PayerPartyDebtorFinancialAccount/ram:IBANID.

  • BR-DE-21

    Identifier is not XRechnung (BT-24)

    Das Element "Specification identifier" (BT-24) soll syntaktisch der Kennung des Standards XRechnung entsprechen.

    Fix: Send the identifier of the variant you actually produce — as cbc:CustomizationID in UBL, in ram:GuidelineSpecifiedDocumentContextParameter/ram:ID in CII.

  • BR-DE-22

    Two attachments share a filename

    Das "filename"-Attribut aller "EmbeddedDocumentBinaryObject"-Elemente muss eindeutig sein

    Fix: Give each attachment a unique name in the filename attribute (cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@filename in UBL, ram:AttachmentBinaryObject/@filename in CII) — simplest is the file's original name, with a running number if needed.

  • BR-DE-23-a

    Transfer with no bank details (BG-17)

    Wenn BT-81 "Payment means type code" einen Schlüssel für Überweisungen enthält (30, 58), muss BG-17 "CREDIT TRANSFER" übermittelt werden.

    Fix: Transmit BG-17 with at least the payee account's IBAN (BT-84): cac:PaymentMeans/cac:PayeeFinancialAccount/cbc:ID in UBL, ram:PayeePartyCreditorFinancialAccount/ram:IBANID in CII.

  • BR-DE-23-b

    Transfer with the wrong payment data

    Wenn BT-81 "Payment means type code" einen Schlüssel für Überweisungen enthält (30, 58), dürfen BG-18 und BG-19 nicht übermittelt werden.

    Fix: For each payment route transmit only the group that belongs to it: with 30 and 58, BG-17 alone.

  • BR-DE-24-a

    Card payment with no card data (BG-18)

    Wenn BT-81 "Payment means type code" einen Schlüssel für Kartenzahlungen enthält (48, 54, 55), muss genau BG-18 "PAYMENT CARD INFORMATION" übermittelt werden.

    Fix: Transmit BG-18 with the masked card number (BT-87, last digits only — never the full PAN): cac:PaymentMeans/cac:CardAccount in UBL, ram:ApplicableTradeSettlementFinancialCard in CII.

  • BR-DE-24-b

    Card payment with the wrong data

    Wenn BT-81 "Payment means type code" einen Schlüssel für Kartenzahlungen enthält (48, 54, 55), dürfen BG-17 und BG-19 nicht übermittelt werden.

    Fix: With card payment, transmit BG-18 only.

  • BR-DE-25-a

    Direct debit, no mandate data (BG-19)

    Wenn BT-81 "Payment means type code" einen Schlüssel für Lastschriften enthält (59), muss genau BG-19 "DIRECT DEBIT" übermittelt werden.

    Fix: Transmit BG-19: mandate reference (BT-89, cac:PaymentMandate/cbc:ID in UBL, ram:SpecifiedTradePaymentTerms/ram:DirectDebitMandateID in CII), creditor identifier (BT-90) and the debited account (BT-91).

  • BR-DE-25-b

    Direct debit with the wrong data

    Wenn BT-81 "Payment means type code" einen Schlüssel für Lastschriften enthält (59), dürfen BG-17 und BG-18 nicht übermittelt werden.

    Fix: With direct debit, transmit BG-19 only and drop the payee bank account (BG-17) for this invoice.

  • BR-DE-26

    Correction with no reference (BG-3)

    Wenn im Element "Invoice type code" (BT-3) der Code 384 (Corrected invoice) übergeben wird, soll PRECEDING INVOICE REFERENCE BG-3 mind. einmal vorhanden sein.

    Fix: Transmit the corrected invoice's number in BG-3 (BT-25): cac:BillingReference/cac:InvoiceDocumentReference/cbc:ID in UBL, ram:InvoiceReferencedDocument/ram:IssuerAssignedID in CII.

  • BR-DE-27

    Telephone number too short (BT-42)

    In BT-42 sollen mindestens drei Ziffern enthalten sein.

    Fix: Enter a real, reachable number (cac:Contact/cbc:Telephone in UBL, ram:DefinedTradeContact/ram:TelephoneUniversalCommunication/ram:CompleteNumber in CII).

  • BR-DE-28

    Email address not plausible (BT-43)

    In BT-43 soll genau ein @-Zeichen enthalten sein, welches nicht von einem Leerzeichen, einem Punkt, aber mindestens zwei Zeichen auf beiden Seiten flankiert werden soll. Ein Punkt sollte nicht am Anfang oder am Ende stehen.

    Fix: Enter exactly one valid address, e.g.

  • BR-DE-30

    Creditor identifier (BT-90) missing

    Wenn "DIRECT DEBIT" BG-19 vorhanden ist, dann muss "Bank assigned creditor identifier" BT-90 übermittelt werden.

    Fix: Transmit your creditor identifier (format DE98ZZZ09999999999) in BT-90.

  • BR-DE-31

    Debited account (BT-91) missing

    Wenn "DIRECT DEBIT" BG-19 vorhanden ist, dann muss "Debited account identifier" BT-91 übermittelt werden.

    Fix: Transmit the debited account's IBAN in BT-91: cac:PaymentMandate/cac:PayerFinancialAccount/cbc:ID in UBL, ram:PayerPartyDebtorFinancialAccount/ram:IBANID in CII.

BR-CL

23
  • BR-CL-01

    Invoice type code (BT-3)

  • BR-CL-03

    The currency attribute on every amount

  • BR-CL-04

    Invoice currency (BT-5)

  • BR-CL-05

    VAT accounting currency (BT-6)

  • BR-CL-06

    VAT point date code (BT-8)

  • BR-CL-07

    Object identifier scheme (BT-18)

  • BR-CL-08

    Subject code of the free text (BT-21)

  • BR-CL-10

    Scheme of any identifier

  • BR-CL-11

    Scheme of a registration identifier

  • BR-CL-13

    Item classification scheme (BT-158)

  • BR-CL-14

    Country codes of the addresses (BT-40, BT-55, BT-69, BT-80)

  • BR-CL-15

    Item country of origin (BT-159)

  • BR-CL-16

    Payment means code (BT-81)

  • BR-CL-17

    Tax category in the VAT breakdown (BT-118)

  • BR-CL-18

    Tax category on line, allowance and charge (BT-151, BT-95, BT-102)

  • BR-CL-19

    Allowance reason code (BT-98, BT-140)

  • BR-CL-20

    Charge reason code (BT-105, BT-145)

  • BR-CL-21

    Item standard identifier scheme (BT-157)

  • BR-CL-22

    Exemption reason code scheme (BT-121)

  • BR-CL-23

    Unit of measure (BT-130, BT-150)

  • BR-CL-24

    MIME type of the attachment (BT-125)

  • BR-CL-25

    Electronic address scheme (BT-34, BT-49)

  • BR-CL-26

    Delivery location identifier scheme (BT-71)

BR-CO

23
  • BR-CO-03

    The invoice may state the VAT point either as a date (BT-7) or as a code (BT-8), never as both.

    Value added tax point date (BT-7) and Value added tax point date code (BT-8) are mutually exclusive.

    Fix: Pick one.

  • BR-CO-04

    Every invoice line (BG-25) must carry a VAT category code (BT-151) — S for the standard rate, E for exempt, Z for zero-rated, AE for reverse charge, and so on.

    Each Invoice line (BG-25) shall be categorized with an Invoiced item VAT category code (BT-151).

    Fix: Set BT-151 on every line: cac:InvoiceLine/cac:Item/cac:ClassifiedTaxCategory/cbc:ID in UBL, ram:ApplicableTradeTax/ram:CategoryCode at line level in CII.

  • BR-CO-05

    Document level allowance reason code (BT-98) and Document level allowance reason (BT-97) shall indicate the same type of allowance.never fires

  • BR-CO-06

    Document level charge reason code (BT-105) and Document level charge reason (BT-104) shall indicate the same type of charge.never fires

  • BR-CO-07

    Invoice line allowance reason code (BT-140) and Invoice line allowance reason (BT-139) shall indicate the same type of allowance reason.never fires

  • BR-CO-08

    Invoice line charge reason code (BT-145) and Invoice line charge reason (BT-144) shall indicate the same type of charge reason.never fires

  • BR-CO-09

    The VAT identifiers of the seller (BT-31), the tax representative (BT-63) and the buyer (BT-48) must begin with the ISO 3166-1 alpha-2 country code.

    The Seller VAT identifier (BT-31), the Seller tax representative VAT identifier (BT-63) and the Buyer VAT identifier (BT-48) shall have a prefix in accordance with ISO code ISO 3166-1 alpha-2 by which the country of issue may be identified. Nevertheless, Greece may use the prefix ‘EL’.

    Fix: Prepend the country code in capitals (spaces after it do not trouble this check): cac:PartyTaxScheme/cbc:CompanyID with a cac:TaxScheme/cbc:ID of VAT in UBL, ram:SpecifiedTaxRegistration/ram:ID with schemeID="VA" in CII.

  • BR-CO-10

    The sum of invoice line net amounts (BT-106) must equal the sum of the individual line net amounts (BT-131) exactly.

    Sum of Invoice line net amount (BT-106) = Σ Invoice line net amount (BT-131).

    Fix: Round each line amount to two decimal places and sum exactly those rounded values, not the raw ones.

  • BR-CO-11

    The sum of allowances at document level (BT-107) must equal the sum of the individual allowance amounts (BT-92) exactly.

    Sum of allowances on document level (BT-107) = Σ Document level allowance amount (BT-92).

    Fix: Build BT-107 from exactly the allowances the document contains: cbc:AllowanceTotalAmount inside cac:LegalMonetaryTotal as the sum of every cac:AllowanceCharge whose cbc:ChargeIndicator is false in UBL, ram:AllowanceTotalAmount in CII.

  • BR-CO-12

    Sum of charges (BT-108) does not match

    Sum of charges on document level (BT-108) = Σ Document level charge amount (BT-99).

    Fix: Sum BT-108 from every cac:AllowanceCharge whose cbc:ChargeIndicator is true and write the result to cbc:ChargeTotalAmount in UBL, ram:ChargeTotalAmount in CII.

  • BR-CO-13

    The invoice total without VAT (BT-109) must equal the sum of line net amounts (BT-106) minus document-level allowances (BT-107) plus document-level charges (BT-108).

    Invoice total amount without VAT (BT-109) = Σ Invoice line net amount (BT-131) - Sum of allowances on document level (BT-107) + Sum of charges on document level (BT-108).

    Fix: Compute BT-109 strictly as BT-106 − BT-107 + BT-108 from exactly the values written in the document.

  • BR-CO-14

    The invoice total VAT amount (BT-110) must equal the sum of the tax amounts of all VAT categories (BT-117).

    Invoice total VAT amount (BT-110) = Σ VAT category tax amount (BT-117).

    Fix: Compute BT-117 per category from its taxable base first, then form BT-110 as the exact sum of those category amounts — never as a separate, independent calculation.

  • BR-CO-15

    The invoice total with VAT (BT-112) must equal the total without VAT (BT-109) plus the total VAT amount (BT-110), exactly.

    Invoice total amount with VAT (BT-112) = Invoice total amount without VAT (BT-109) + Invoice total VAT amount (BT-110).

    Fix: Always derive BT-112 as BT-109 + BT-110 from the two document values instead of writing an independently calculated gross amount.

  • BR-CO-16

    Amount due (BT-115) does not add up

    Amount due for payment (BT-115) = Invoice total amount with VAT (BT-112) -Paid amount (BT-113) +Rounding amount (BT-114).

    Fix: Use decimal arithmetic throughout rather than float or double, and round only when writing the output to two decimal places.

  • BR-CO-17

    Tax amount (BT-117) wrong for the rate

    VAT category tax amount (BT-117) = VAT category taxable amount (BT-116) x (VAT category rate (BT-119) / 100), rounded to two decimals.

    Fix: Group lines by VAT category, sum their net amounts into the taxable base BT-116, and compute the tax once from it: BT-116 × BT-119 / 100.

  • BR-CO-18

    The invoice must contain at least one VAT breakdown group (BG-23) — one block per tax category, carrying the taxable amount, the tax amount, the category and the rate.

    An Invoice shall at least have one VAT breakdown group (BG-23).

    Fix: Write one cac:TaxTotal/cac:TaxSubtotal in UBL, or one ram:ApplicableTradeTax in CII, per tax category — including E or Z, with a tax amount of zero; E also needs the exemption reason (BT-120 or BT-121), Z takes none: BR-Z-10 forbids one, except in EXTENDED-CTC-FR and Factur-X EXTENDED, which do not compile that rule.

  • BR-CO-19

    If an invoicing period (BG-14) is sent, at least one date must be in it: the start (BT-73), the end (BT-74), or both.

    If Invoicing period (BG-14) is used, the Invoicing period start date (BT-73) or the Invoicing period end date (BT-74) shall be filled, or both.

    Fix: Create the group only when at least one date exists: cac:InvoicePeriod with cbc:StartDate and/or cbc:EndDate in UBL, ram:BillingSpecifiedPeriod with ram:StartDateTime and/or ram:EndDateTime in CII.

  • BR-CO-20

    If a line period (BG-26) is sent on an invoice line, at least one date must be in it: the start (BT-134), the end (BT-135), or both.

    If Invoice line period (BG-26) is used, the Invoice line period start date (BT-134) or the Invoice line period end date (BT-135) shall be filled, or both.

    Fix: Emit cac:InvoicePeriod inside cac:InvoiceLine only when a date exists — and in CII, ram:BillingSpecifiedPeriod inside the line, on the same condition.

  • BR-CO-21

    Every document-level allowance (BG-20) must be justified — in plain text (BT-97), as a code (BT-98), or both.

    Each Document level allowance (BG-20) shall contain a Document level allowance reason (BT-97) or a Document level allowance reason code (BT-98), or both.

    Fix: Supply at least one of the two: cbc:AllowanceChargeReason or cbc:AllowanceChargeReasonCode inside cac:AllowanceCharge in UBL, ram:Reason or ram:ReasonCode inside ram:SpecifiedTradeAllowanceCharge in CII.

  • BR-CO-22

    Every document-level charge (BG-21) must carry a reason — in plain text (BT-104), as a code (BT-105), or both.

    Each Document level charge (BG-21) shall contain a Document level charge reason (BT-104) or a Document level charge reason code (BT-105), or both.

    Fix: Add cbc:AllowanceChargeReason or cbc:AllowanceChargeReasonCode to the cac:AllowanceCharge whose cbc:ChargeIndicator is true in UBL, or ram:Reason or ram:ReasonCode to the ram:SpecifiedTradeAllowanceCharge in CII.

  • BR-CO-23

    Every allowance on an invoice line (BG-27) must be justified — in plain text (BT-139), as a code (BT-140), or both.

    Each Invoice line allowance (BG-27) shall contain an Invoice line allowance reason (BT-139) or an Invoice line allowance reason code (BT-140), or both.

    Fix: Carry the discount type through from pricing, or set a default reason that is actually true.

  • BR-CO-24

    Every charge on an invoice line (BG-28) must carry a reason — in plain text (BT-144), as a code (BT-145), or both.

    Each Invoice line charge (BG-28) shall contain an Invoice line charge reason (BT-144) or an Invoice line charge reason code (BT-145), or both.

    Fix: Write cbc:AllowanceChargeReason or cbc:AllowanceChargeReasonCode into the line's cac:AllowanceCharge with cbc:ChargeIndicator true in UBL, or ram:Reason or ram:ReasonCode into the line's ram:SpecifiedTradeAllowanceCharge in CII.

  • BR-CO-26

    So the buyer can identify the supplier automatically, at least one seller identifier must be present: a seller identifier (BT-29), the legal registration identifier (BT-30), or the VAT identifier (BT-31).

    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.

    Fix: Send at least one of them: cac:PartyIdentification/cbc:ID (BT-29), cac:PartyLegalEntity/cbc:CompanyID (BT-30) or cac:PartyTaxScheme/cbc:CompanyID (BT-31) in UBL; ram:SellerTradeParty/ram:ID, ram:SpecifiedLegalOrganization/ram:ID or ram:SpecifiedTaxRegistration/ram:ID with schemeID “VA” in CII.

PEPPOL-EN16931

23
  • PEPPOL-EN16931-R001

    The invoice must name the business process (BT-23) — the identifier of the process it is being sent in.

  • PEPPOL-EN16931-R005

    If a separate VAT accounting currency (BT-6) is given, it must differ from the invoice currency (BT-5).

  • PEPPOL-EN16931-R008

    The document must contain no empty elements.

  • PEPPOL-EN16931-R010

    Buyer address (BT-49) missing

  • PEPPOL-EN16931-R020

    The seller electronic address (BT-34) must be provided — the counterpart to BT-49, the address a recipient can reply or send a response message to.

  • PEPPOL-EN16931-R040

    Where both the base amount and the percentage of an allowance or charge are given, the amount must follow from them: base amount × percentage ÷ 100, within a tolerance of 0.02 (0.5 for an invoice in HUF).

  • PEPPOL-EN16931-R041

    If the percentage of an allowance or charge is given, the base amount must accompany it.

  • PEPPOL-EN16931-R042

    If the base amount of an allowance or charge is given, the percentage must accompany it — the counterpart to R041.

  • PEPPOL-EN16931-R043

    The indicator saying whether this is a charge or an allowance must be exactly true or false — lower case, with no alternatives.

  • PEPPOL-EN16931-R043-1

    In CII the charge indicator of an allowance or charge at document or line level must be exactly true or false.

  • PEPPOL-EN16931-R043-2

    The same requirement as R043-1, but for the allowance or charge inside the price: ram:AppliedTradeAllowanceCharge under the gross price must carry an indicator of exactly true or false.

  • PEPPOL-EN16931-R044

    No charge is permitted inside a line's price.

  • PEPPOL-EN16931-R046

    Price calculation mismatch

  • PEPPOL-EN16931-R053

    The invoice may contain exactly one tax total in the invoice currency — that is, exactly one block carrying a breakdown.

  • PEPPOL-EN16931-R054

    A second tax block without a breakdown is permitted only where a separate VAT accounting currency (BT-6) is given — and then exactly one.

  • PEPPOL-EN16931-R055

    The tax total in the invoice currency and the tax total in the accounting currency must carry the same operational sign.

  • PEPPOL-EN16931-R061

    Mandate reference missing

  • PEPPOL-EN16931-R101

    On an invoice line, the only additional document reference the norm provides for is the object identifier — type code 130.

  • PEPPOL-EN16931-R110

    If a line has a period of its own, it must fall inside the invoicing period: the line's start date may not precede the invoice's start date.

  • PEPPOL-EN16931-R111

    A line period's end date may not fall after the end of the invoicing period — the counterpart to R110 at the other end.

  • PEPPOL-EN16931-R120

    A line's net amount must follow from the line's own figures: quantity × (net price ÷ price base quantity), plus the line's charges and minus its allowances.

  • PEPPOL-EN16931-R121

    Price base quantity is zero

  • PEPPOL-EN16931-R130

    The unit of the price base quantity must be the same as the unit of the invoiced quantity.

BR-DEC

21

BR-DEX

15
  • BR-DEX-01

    On an invoice carrying the Extension identifier, every embedded attachment (BT-125) must have one of seven MIME types: the six from BR-CL-24 — application/pdf, image/png, image/jpeg, text/csv and the .xlsx and .ods spreadsheet formats — plus application/xml.

  • BR-DEX-02

    Where an invoice line has sub invoice lines (BG-DEX-01), its net amount (BT-131) should equal exactly the sum of the net amounts of the sub lines directly beneath it — at every level, including sub lines that have sub lines of their own.

  • BR-DEX-03

    Every sub invoice line (BG-DEX-01) must carry exactly one VAT information group, BG-DEX-06, in its item — one cac:ClassifiedTaxCategory, not none and not two.

  • BR-DEX-04

    Where a party identifier — the seller’s (BT-29), the buyer’s (BT-46) or the payee’s (BT-60) — carries a scheme attribute, on an Extension invoice its value must come from the ISO 6523 ICD list: the same one as for BR-CL-10, plus three codes only XRechnung knows: XR01, XR02 and XR03.

  • BR-DEX-05

    Where a legal registration identifier — the seller’s (BT-30), the buyer’s (BT-47) or the payee’s (BT-61) — carries a scheme attribute, on an Extension invoice its value must come from the ISO 6523 ICD list: the same one as for BR-CL-11, plus three codes only XRechnung knows: XR01, XR02 and XR03; BR-CL-11 itself is lowered to a notice for the Extension by the KoSIT configuration.

  • BR-DEX-06

    Where the item standard identifier (BT-157) carries a scheme attribute, on an Extension invoice its value must come from the ISO 6523 ICD list — the same one as for BR-CL-21, plus three codes only XRechnung knows: XR01, XR02 and XR03.

  • BR-DEX-07

    The scheme attribute of the electronic address — the seller’s (BT-34) or the buyer’s (BT-49) — must carry a code from the CEF EAS list on an Extension invoice: the same list as for BR-CL-25, plus three codes only XRechnung knows: XR01, XR02 and XR03; BR-CL-25 itself is lowered to a notice for the Extension by the KoSIT configuration.

  • BR-DEX-08

    Where the delivery location identifier (BT-71) carries a scheme attribute, on an Extension invoice its value must come from the ISO 6523 ICD list — the same one as for BR-CL-26, plus three codes only XRechnung knows: XR01, XR02 and XR03; BR-CL-26 itself is lowered to a notice for the Extension by the KoSIT configuration.

  • BR-DEX-09

    On an Extension invoice the amount due for payment (BT-115) has to add up like this: total with VAT (BT-112) minus the amount already paid (BT-113) plus the rounding amount (BT-114) plus the amounts of all third-party payments (BG-DEX-09, each BT-DEX-002).

  • BR-DEX-10

    Every third-party payment (group BG-DEX-09, cac:PrepaidPayment in UBL) has to state its type: BT-DEX-001, mapped onto cac:PrepaidPayment/cbc:ID.

  • BR-DEX-11

    Every third-party payment (BG-DEX-09) has to state its amount: BT-DEX-002 in cac:PrepaidPayment/cbc:PaidAmount.

  • BR-DEX-12

    Every third-party payment (BG-DEX-09) needs a description: BT-DEX-003, mapped onto cac:PrepaidPayment/cbc:InstructionID.

  • BR-DEX-13

    The amount of a third-party payment (BT-DEX-002, cac:PrepaidPayment/cbc:PaidAmount) may carry at most two decimals.

  • BR-DEX-14

    The amount of a third-party payment (BT-DEX-002) must be stated in the invoice currency: the currencyID attribute on cac:PrepaidPayment/cbc:PaidAmount has to equal the invoice currency code (BT-5, cbc:DocumentCurrencyCode).

  • BR-DEX-15

    A CII invoice whose BT-24 declares the Extension should contain no ram:ParentLineID — the element through which one line points to a parent line.

BR-O

14
  • BR-O-01

    The category must appear in the VAT breakdown (BG-23)

  • BR-O-02

    A line in this category forbids any tax identifier

  • BR-O-03

    The same for a document level allowance

  • BR-O-04

    The same for a document level charge

  • BR-O-05

    The line VAT rate (BT-152)

  • BR-O-06

    The allowance VAT rate

  • BR-O-07

    The charge VAT rate

  • BR-O-08

    The taxable base (BT-116) as the sum of amounts in this category

  • BR-O-09

    The VAT amount (BT-117) from the taxable base and the rate

  • BR-O-10

    Whether an exemption reason (BT-120/BT-121) is required or forbidden

  • BR-O-11

    No other VAT breakdown beside the not-subject-to-VAT one

  • BR-O-12

    No invoice line in another VAT category

  • BR-O-13

    No document level allowance in another category

  • BR-O-14

    No document level charge in another category

BR-IC

12
  • BR-IC-01

    The category must appear in the VAT breakdown (BG-23)

  • BR-IC-02

    A line in this category requires a seller tax identifier

  • BR-IC-03

    The same for a document level allowance

  • BR-IC-04

    The same for a document level charge

  • BR-IC-05

    The line VAT rate (BT-152)

  • BR-IC-06

    The allowance VAT rate

  • BR-IC-07

    The charge VAT rate

  • BR-IC-08

    The taxable base (BT-116) as the sum of amounts in this category

  • BR-IC-09

    The VAT amount (BT-117) from the taxable base and the rate

  • BR-IC-10

    Whether an exemption reason (BT-120/BT-121) is required or forbidden

  • BR-IC-11

    A delivery date (BT-72) or an invoicing period (BG-14) must be given

  • BR-IC-12

    The delivery country code (BT-80) must be given

BR-AE

10
  • BR-AE-01

    The category must appear in the VAT breakdown (BG-23)

  • BR-AE-02

    A line in this category requires a seller tax identifier

  • BR-AE-03

    The same for a document level allowance

  • BR-AE-04

    The same for a document level charge

  • BR-AE-05

    The line VAT rate (BT-152)

  • BR-AE-06

    The allowance VAT rate

  • BR-AE-07

    The charge VAT rate

  • BR-AE-08

    The taxable base (BT-116) as the sum of amounts in this category

  • BR-AE-09

    The VAT amount (BT-117) from the taxable base and the rate

  • BR-AE-10

    Whether an exemption reason (BT-120/BT-121) is required or forbidden

BR-AF

10
  • BR-AF-01

    The category must appear in the VAT breakdown (BG-23)

  • BR-AF-02

    A line in this category requires a seller tax identifier

  • BR-AF-03

    The same for a document level allowance

  • BR-AF-04

    The same for a document level charge

  • BR-AF-05

    The line VAT rate (BT-152)

  • BR-AF-06

    The allowance VAT rate

  • BR-AF-07

    The charge VAT rate

  • BR-AF-08

    The taxable base (BT-116) as the sum of amounts in this category

  • BR-AF-09

    The VAT amount (BT-117) from the taxable base and the rateinactive in CII

  • BR-AF-10

    Whether an exemption reason (BT-120/BT-121) is required or forbidden

BR-AG

10
  • BR-AG-01

    The category must appear in the VAT breakdown (BG-23)

  • BR-AG-02

    A line in this category requires a seller tax identifier

  • BR-AG-03

    The same for a document level allowance

  • BR-AG-04

    The same for a document level charge

  • BR-AG-05

    The line VAT rate (BT-152)

  • BR-AG-06

    The allowance VAT rate

  • BR-AG-07

    The charge VAT rate

  • BR-AG-08

    The taxable base (BT-116) as the sum of amounts in this category

  • BR-AG-09

    The VAT amount (BT-117) from the taxable base and the rateinactive in CII

  • BR-AG-10

    Whether an exemption reason (BT-120/BT-121) is required or forbidden

BR-E

10
  • BR-E-01

    The category must appear in the VAT breakdown (BG-23)

  • BR-E-02

    A line in this category requires a seller tax identifier

  • BR-E-03

    The same for a document level allowance

  • BR-E-04

    The same for a document level charge

  • BR-E-05

    The line VAT rate (BT-152)

  • BR-E-06

    The allowance VAT rate

  • BR-E-07

    The charge VAT rate

  • BR-E-08

    The taxable base (BT-116) as the sum of amounts in this category

  • BR-E-09

    The VAT amount (BT-117) from the taxable base and the rate

  • BR-E-10

    Whether an exemption reason (BT-120/BT-121) is required or forbidden

BR-G

10
  • BR-G-01

    The category must appear in the VAT breakdown (BG-23)

  • BR-G-02

    A line in this category requires a seller tax identifier

  • BR-G-03

    The same for a document level allowance

  • BR-G-04

    The same for a document level charge

  • BR-G-05

    The line VAT rate (BT-152)

  • BR-G-06

    The allowance VAT rate

  • BR-G-07

    The charge VAT rate

  • BR-G-08

    The taxable base (BT-116) as the sum of amounts in this category

  • BR-G-09

    The VAT amount (BT-117) from the taxable base and the rate

  • BR-G-10

    Whether an exemption reason (BT-120/BT-121) is required or forbidden

BR-S

10
  • BR-S-01

    The category must appear in the VAT breakdown (BG-23)

  • BR-S-02

    A line in this category requires a seller tax identifier

  • BR-S-03

    The same for a document level allowance

  • BR-S-04

    The same for a document level charge

  • BR-S-05

    The line VAT rate (BT-152)

  • BR-S-06

    The allowance VAT rate

  • BR-S-07

    The charge VAT rate

  • BR-S-08

    The taxable base (BT-116) as the sum of amounts in this category

  • BR-S-09

    The VAT amount (BT-117) from the taxable base and the rate

  • BR-S-10

    Whether an exemption reason (BT-120/BT-121) is required or forbidden

BR-Z

10
  • BR-Z-01

    The category must appear in the VAT breakdown (BG-23)

  • BR-Z-02

    A line in this category requires a seller tax identifier

  • BR-Z-03

    The same for a document level allowance

  • BR-Z-04

    The same for a document level charge

  • BR-Z-05

    The line VAT rate (BT-152)

  • BR-Z-06

    The allowance VAT rate

  • BR-Z-07

    The charge VAT rate

  • BR-Z-08

    The taxable base (BT-116) as the sum of amounts in this category

  • BR-Z-09

    The VAT amount (BT-117) from the taxable base and the rate

  • BR-Z-10

    Whether an exemption reason (BT-120/BT-121) is required or forbidden

BR-DE-CVD

7

BR-TMP

6
  • BR-TMP-2

    Attachment URL is not absolute (BT-124)

  • BR-TMP-3

    Price base quantity (BT-149) inconsistent

  • BR-TMP-4

    Attachment with two descriptions (BT-123)

  • BR-TMP-5

    Attachment with two files (BT-125)

  • BR-TMP-6

    Wrong date format in UBL

  • BR-TMP-7

    Wrong date format in CII

BR-B

2
  • BR-B-01

    Split payment only on a domestic Italian invoice

  • BR-B-02

    No standard-rated line beside a split-payment line

BR-DE-TMP

1

BR-TMP-CVD

1

CII-DT

2
  • CII-DT-027

    A document reference in CII must not carry a date (ram:FormattedIssueDateTime).

    [CII-DT-027] - FormattedIssueDateTime should not be present

    Fix: Remove ram:FormattedIssueDateTime from the document reference and keep its identifier (ram:IssuerAssignedID).

  • CII-DT-031

    An amount in CII must not carry a currencyID attribute.

    [CII-DT-031] - currencyID should not be present

    Fix: Remove currencyID from every amount except ram:TaxTotalAmount, and state the invoice currency once in ram:InvoiceCurrencyCode (BT-5).

When two programs judge the same invoice differently: the validator comparison runs 29 documents against the same norm and shows where the answers part company. And eleven free online validators were given the same invoice on one day — three cannot read XRechnung in UBL at all, and three miss a rule added in early September. If you started from a sample file: 810 sample invoices, tested — which pass the current rule set and which do not.