EN 16931 business rules

The rules of the European e-invoicing standard, as CEN/TC 434 publishes them in its validation artefacts: the same files the KoSIT validator, Peppol access points and our own validator run on every UBL and CII invoice. Each rule below links to its page: the message validators print, what the rule checks, why invoices fail it, how to fix it, and a failing invoice with its fix, both checked by our validator.

Mandatory content and conditions (BR-01 … BR-65)

What every invoice must carry: numbers, dates, parties, totals, lines, and the conditions on optional groups.

RuleSeverityMessage
[BR-01](/einvoice-rules/br-01)errorAn Invoice shall have a Specification identifier (BT-24).
[BR-02](/einvoice-rules/br-02)errorAn Invoice shall have an Invoice number (BT-1).
[BR-03](/einvoice-rules/br-03)errorAn Invoice shall have an Invoice issue date (BT-2).
[BR-04](/einvoice-rules/br-04)errorAn Invoice shall have an Invoice type code (BT-3).
[BR-05](/einvoice-rules/br-05)errorAn Invoice shall have an Invoice currency code (BT-5).
[BR-06](/einvoice-rules/br-06)errorAn Invoice shall contain the Seller name (BT-27).
[BR-07](/einvoice-rules/br-07)errorAn Invoice shall contain the Buyer name (BT-44).
[BR-08](/einvoice-rules/br-08)errorAn Invoice shall contain the Seller postal address.
[BR-09](/einvoice-rules/br-09)errorThe Seller postal address (BG-5) shall contain a Seller country code (BT-40).
[BR-10](/einvoice-rules/br-10)errorAn Invoice shall contain the Buyer postal address (BG-8).
[BR-11](/einvoice-rules/br-11)errorThe Buyer postal address shall contain a Buyer country code (BT-55).
[BR-12](/einvoice-rules/br-12)errorAn Invoice shall have the Sum of Invoice line net amount (BT-106).
[BR-13](/einvoice-rules/br-13)errorAn Invoice shall have the Invoice total amount without VAT (BT-109).
[BR-14](/einvoice-rules/br-14)errorAn Invoice shall have the Invoice total amount with VAT (BT-112).
[BR-15](/einvoice-rules/br-15)errorAn Invoice shall have the Amount due for payment (BT-115).
[BR-16](/einvoice-rules/br-16)errorAn Invoice shall have at least one Invoice line (BG-25)
[BR-17](/einvoice-rules/br-17)errorThe Payee name (BT-59) shall be provided in the Invoice, if the Payee (BG-10) is different from the Seller (BG-4)
[BR-18](/einvoice-rules/br-18)errorThe Seller tax representative name (BT-62) shall be provided in the Invoice, if the Seller (BG-4) has a Seller tax representative party (BG-11)
[BR-19](/einvoice-rules/br-19)errorThe Seller tax representative postal address (BG-12) shall be provided in the Invoice, if the Seller (BG-4) has a Seller tax representative party (BG-11).
[BR-20](/einvoice-rules/br-20)errorThe Seller tax representative postal address (BG-12) shall contain a Tax representative country code (BT-69), if the Seller (BG-4) has a Seller tax…
[BR-21](/einvoice-rules/br-21)errorEach Invoice line (BG-25) shall have an Invoice line identifier (BT-126).
[BR-22](/einvoice-rules/br-22)errorEach Invoice line (BG-25) shall have an Invoiced quantity (BT-129).
[BR-23](/einvoice-rules/br-23)errorAn Invoice line (BG-25) shall have an Invoiced quantity unit of measure code (BT-130).
[BR-24](/einvoice-rules/br-24)errorEach Invoice line (BG-25) shall have an Invoice line net amount (BT-131).
[BR-25](/einvoice-rules/br-25)errorEach Invoice line (BG-25) shall contain the Item name (BT-153).
[BR-26](/einvoice-rules/br-26)errorEach Invoice line (BG-25) shall contain the Item net price (BT-146).
[BR-27](/einvoice-rules/br-27)errorThe Item net price (BT-146) shall NOT be negative.
[BR-28](/einvoice-rules/br-28)errorThe Item gross price (BT-148) shall NOT be negative.
[BR-29](/einvoice-rules/br-29)errorIf both Invoicing period start date (BT-73) and Invoicing period end date (BT-74) are given then the Invoicing period end date (BT-74) shall be later or equal…
[BR-30](/einvoice-rules/br-30)errorIf both Invoice line period start date (BT-134) and Invoice line period end date (BT-135) are given then the Invoice line period end date (BT-135) shall be…
[BR-31](/einvoice-rules/br-31)errorEach Document level allowance (BG-20) shall have a Document level allowance amount (BT-92).
[BR-32](/einvoice-rules/br-32)errorEach Document level allowance (BG-20) shall have a Document level allowance VAT category code (BT-95).
[BR-33](/einvoice-rules/br-33)errorEach Document level allowance (BG-20) shall have a Document level allowance reason (BT-97) or a Document level allowance reason code (BT-98).
[BR-36](/einvoice-rules/br-36)errorEach Document level charge (BG-21) shall have a Document level charge amount (BT-99).
[BR-37](/einvoice-rules/br-37)errorEach Document level charge (BG-21) shall have a Document level charge VAT category code (BT-102).
[BR-38](/einvoice-rules/br-38)errorEach Document level charge (BG-21) shall have a Document level charge reason (BT-104) or a Document level charge reason code (BT-105).
[BR-41](/einvoice-rules/br-41)errorEach Invoice line allowance (BG-27) shall have an Invoice line allowance amount (BT-136).
[BR-42](/einvoice-rules/br-42)errorEach Invoice line allowance (BG-27) shall have an Invoice line allowance reason (BT-139) or an Invoice line allowance reason code (BT-140).
[BR-43](/einvoice-rules/br-43)errorEach Invoice line charge (BG-28) shall have an Invoice line charge amount (BT-141).
[BR-44](/einvoice-rules/br-44)errorEach Invoice line charge shall have an Invoice line charge reason or an invoice line allowance reason code.
[BR-45](/einvoice-rules/br-45)errorEach VAT breakdown (BG-23) shall have a VAT category taxable amount (BT-116).
[BR-46](/einvoice-rules/br-46)errorEach VAT breakdown (BG-23) shall have a VAT category tax amount (BT-117).
[BR-47](/einvoice-rules/br-47)errorEach VAT breakdown (BG-23) shall be defined through a VAT category code (BT-118).
[BR-48](/einvoice-rules/br-48)errorEach VAT breakdown (BG-23) shall have a VAT category rate (BT-119), except if the Invoice is not subject to VAT.
[BR-49](/einvoice-rules/br-49)errorA Payment instruction (BG-16) shall specify the Payment means type code (BT-81).
[BR-50](/einvoice-rules/br-50)errorA Payment account identifier (BT-84) shall be present if Credit transfer (BG-17) information is provided in the Invoice.
[BR-51](/einvoice-rules/br-51)warning (UBL), error (CII)In accordance with card payments security standards an invoice should never include a full card primary account number (BT-87). At the moment PCI Security…
[BR-52](/einvoice-rules/br-52)errorEach Additional supporting document (BG-24) shall contain a Supporting document reference (BT-122).
[BR-53](/einvoice-rules/br-53)errorIf the VAT accounting currency code (BT-6) is present, then the Invoice total VAT amount in accounting currency (BT-111) shall be provided.
[BR-54](/einvoice-rules/br-54)errorEach Item attribute (BG-32) shall contain an Item attribute name (BT-160) and an Item attribute value (BT-161).
[BR-55](/einvoice-rules/br-55)errorEach Preceding Invoice reference (BG-3) shall contain a Preceding Invoice reference (BT-25).
[BR-56](/einvoice-rules/br-56)errorEach Seller tax representative party (BG-11) shall have a Seller tax representative VAT identifier (BT-63).
[BR-57](/einvoice-rules/br-57)errorEach Deliver to address (BG-15) shall contain a Deliver to country code (BT-80).
[BR-61](/einvoice-rules/br-61)errorIf the Payment means type code (BT-81) means SEPA credit transfer, Local credit transfer or Non-SEPA international credit transfer, the Payment account…
[BR-62](/einvoice-rules/br-62)errorThe Seller electronic address (BT-34) shall have a Scheme identifier.
[BR-63](/einvoice-rules/br-63)errorThe Buyer electronic address (BT-49) shall have a Scheme identifier.
[BR-64](/einvoice-rules/br-64)errorThe Item standard identifier (BT-157) shall have a Scheme identifier.
[BR-65](/einvoice-rules/br-65)errorThe Item classification identifier (BT-158) shall have a Scheme identifier.

Calculations and consistency (BR-CO)

The arithmetic of the totals and the VAT breakdown, and the rules that tie two fields together.

RuleSeverityMessage
[BR-CO-03](/einvoice-rules/br-co-03)errorValue added tax point date (BT-7) and Value added tax point date code (BT-8) are mutually exclusive.
[BR-CO-04](/einvoice-rules/br-co-04)errorEach Invoice line (BG-25) shall be categorized with an Invoiced item VAT category code (BT-151).
BR-CO-05errorDocument level allowance reason code (BT-98) and Document level allowance reason (BT-97) shall indicate the same type of allowance.
BR-CO-06errorDocument level charge reason code (BT-105) and Document level charge reason (BT-104) shall indicate the same type of charge.
BR-CO-07errorInvoice line allowance reason code (BT-140) and Invoice line allowance reason (BT-139) shall indicate the same type of allowance reason.
BR-CO-08errorInvoice line charge reason code (BT-145) and Invoice line charge reason (BT-144) shall indicate the same type of charge reason.
[BR-CO-09](/einvoice-rules/br-co-09)errorThe 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…
[BR-CO-10](/einvoice-rules/br-co-10)errorSum of Invoice line net amount (BT-106) = Σ Invoice line net amount (BT-131).
[BR-CO-11](/einvoice-rules/br-co-11)errorSum of allowances on document level (BT-107) = Σ Document level allowance amount (BT-92).
[BR-CO-12](/einvoice-rules/br-co-12)errorSum of charges on document level (BT-108) = Σ Document level charge amount (BT-99).
[BR-CO-13](/einvoice-rules/br-co-13)errorInvoice 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…
[BR-CO-14](/einvoice-rules/br-co-14)errorInvoice total VAT amount (BT-110) = Σ VAT category tax amount (BT-117).
[BR-CO-15](/einvoice-rules/br-co-15)errorInvoice total amount with VAT (BT-112) = Invoice total amount without VAT (BT-109) + Invoice total VAT amount (BT-110).
[BR-CO-16](/einvoice-rules/br-co-16)errorAmount due for payment (BT-115) = Invoice total amount with VAT (BT-112) -Paid amount (BT-113) +Rounding amount (BT-114).
[BR-CO-17](/einvoice-rules/br-co-17)errorVAT category tax amount (BT-117) = VAT category taxable amount (BT-116) x (VAT category rate (BT-119) / 100), rounded to two decimals.
[BR-CO-18](/einvoice-rules/br-co-18)errorAn Invoice shall at least have one VAT breakdown group (BG-23).
[BR-CO-19](/einvoice-rules/br-co-19)errorIf 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.
[BR-CO-20](/einvoice-rules/br-co-20)errorIf 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.
[BR-CO-21](/einvoice-rules/br-co-21)errorEach 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.
[BR-CO-22](/einvoice-rules/br-co-22)errorEach 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.
[BR-CO-23](/einvoice-rules/br-co-23)errorEach 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.
[BR-CO-24](/einvoice-rules/br-co-24)errorEach 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.
[BR-CO-26](/einvoice-rules/br-co-26)errorIn 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 categories (BR-S, Z, E, AE, IC, G, O, AF, AG, B)

Ten checks per VAT category: the breakdown, the identifiers, the rates, the amounts, the exemption reason.

RuleSeverityMessage
[BR-AE-01](/einvoice-rules/br-ae-01)errorAn Invoice that contains an Invoice line (BG-25), a Document level allowance (BG-20) or a Document level charge (BG-21) where the VAT category code (BT-151…
[BR-AE-02](/einvoice-rules/br-ae-02)errorAn Invoice that contains an Invoice line (BG-25) where the Invoiced item VAT category code (BT-151) is "Reverse charge" shall contain the Seller VAT…
[BR-AE-03](/einvoice-rules/br-ae-03)errorAn Invoice that contains a Document level allowance (BG-20) where the Document level allowance VAT category code (BT-95) is "Reverse charge" shall contain the…
[BR-AE-04](/einvoice-rules/br-ae-04)errorAn Invoice that contains a Document level charge (BG-21) where the Document level charge VAT category code (BT-102) is "Reverse charge" shall contain the…
[BR-AE-05](/einvoice-rules/br-ae-05)errorIn an Invoice line (BG-25) where the Invoiced item VAT category code (BT-151) is "Reverse charge" the Invoiced item VAT rate (BT-152) shall be 0 (zero).
[BR-AE-06](/einvoice-rules/br-ae-06)errorIn a Document level allowance (BG-20) where the Document level allowance VAT category code (BT-95) is "Reverse charge" the Document level allowance VAT rate…
[BR-AE-07](/einvoice-rules/br-ae-07)errorIn a Document level charge (BG-21) where the Document level charge VAT category code (BT-102) is "Reverse charge" the Document level charge VAT rate (BT-103)…
[BR-AE-08](/einvoice-rules/br-ae-08)errorIn a VAT breakdown (BG-23) where the VAT category code (BT-118) is "Reverse charge" the VAT category taxable amount (BT-116) shall equal the sum of Invoice…
[BR-AE-09](/einvoice-rules/br-ae-09)errorThe VAT category tax amount (BT-117) in a VAT breakdown (BG-23) where the VAT category code (BT-118) is "Reverse charge" shall be 0 (zero).
[BR-AE-10](/einvoice-rules/br-ae-10)errorA VAT breakdown (BG-23) with VAT Category code (BT-118) "Reverse charge" shall have a VAT exemption reason code (BT-121), meaning "Reverse charge" or the VAT…
[BR-AF-01](/einvoice-rules/br-af-01)errorAn Invoice that contains an Invoice line (BG-25), a Document level allowance (BG-20) or a Document level charge (BG-21) where the VAT category code (BT-151…
[BR-AF-02](/einvoice-rules/br-af-02)errorAn Invoice that contains an Invoice line (BG-25) where the Invoiced item VAT category code (BT-151) is "IGIC" shall contain the Seller VAT Identifier (BT-31)…
[BR-AF-03](/einvoice-rules/br-af-03)errorAn Invoice that contains a Document level allowance (BG-20) where the Document level allowance VAT category code (BT-95) is "IGIC" shall contain the Seller…
[BR-AF-04](/einvoice-rules/br-af-04)errorAn Invoice that contains a Document level charge (BG-21) where the Document level charge VAT category code (BT-102) is "IGIC" shall contain the Seller VAT…
[BR-AF-05](/einvoice-rules/br-af-05)errorIn an Invoice line (BG-25) where the Invoiced item VAT category code (BT-151) is "IGIC" the invoiced item VAT rate (BT-152) shall be 0 (zero) or greater than…
[BR-AF-06](/einvoice-rules/br-af-06)errorIn a Document level allowance (BG-20) where the Document level allowance VAT category code (BT-95) is "IGIC" the Document level allowance VAT rate (BT-96)…
[BR-AF-07](/einvoice-rules/br-af-07)errorIn a Document level charge (BG-21) where the Document level charge VAT category code (BT-102) is "IGIC" the Document level charge VAT rate (BT-103) shall be 0…
[BR-AF-08](/einvoice-rules/br-af-08)errorFor each different value of VAT category rate (BT-119) where the VAT category code (BT-118) is "IGIC", the VAT category taxable amount (BT-116) in a VAT…
[BR-AF-09](/einvoice-rules/br-af-09)errorThe VAT category tax amount (BT-117) in a VAT breakdown (BG-23) where VAT category code (BT-118) is "IGIC" shall equal the VAT category taxable amount…
[BR-AF-10](/einvoice-rules/br-af-10)errorA VAT breakdown (BG-23) with VAT Category code (BT-118) "IGIC" shall not have a VAT exemption reason code (BT-121) or VAT exemption reason text (BT-120).
[BR-AG-01](/einvoice-rules/br-ag-01)errorAn Invoice that contains an Invoice line (BG-25), a Document level allowance (BG-20) or a Document level charge (BG-21) where the VAT category code (BT-151…
[BR-AG-02](/einvoice-rules/br-ag-02)errorAn Invoice that contains an Invoice line (BG-25) where the Invoiced item VAT category code (BT-151) is "IPSI" shall contain the Seller VAT Identifier (BT-31)…
[BR-AG-03](/einvoice-rules/br-ag-03)errorAn Invoice that contains a Document level allowance (BG-20) where the Document level allowance VAT category code (BT-95) is "IPSI" shall contain the Seller…
[BR-AG-04](/einvoice-rules/br-ag-04)errorAn Invoice that contains a Document level charge (BG-21) where the Document level charge VAT category code (BT-102) is "IPSI" shall contain the Seller VAT…
[BR-AG-05](/einvoice-rules/br-ag-05)errorIn an Invoice line (BG-25) where the Invoiced item VAT category code (BT-151) is "IPSI" the Invoiced item VAT rate (BT-152) shall be 0 (zero) or greater than…
[BR-AG-06](/einvoice-rules/br-ag-06)errorIn a Document level allowance (BG-20) where the Document level allowance VAT category code (BT-95) is "IPSI" the Document level allowance VAT rate (BT-96)…
[BR-AG-07](/einvoice-rules/br-ag-07)errorIn a Document level charge (BG-21) where the Document level charge VAT category code (BT-102) is "IPSI" the Document level charge VAT rate (BT-103) shall be 0…
[BR-AG-08](/einvoice-rules/br-ag-08)errorFor each different value of VAT category rate (BT-119) where the VAT category code (BT-118) is "IPSI", the VAT category taxable amount (BT-116) in a VAT…
[BR-AG-09](/einvoice-rules/br-ag-09)errorThe VAT category tax amount (BT-117) in a VAT breakdown (BG-23) where VAT category code (BT-118) is "IPSI" shall equal the VAT category taxable amount…
[BR-AG-10](/einvoice-rules/br-ag-10)errorA VAT breakdown (BG-23) with VAT Category code (BT-118) "IPSI" shall not have a VAT exemption reason code (BT-121) or VAT exemption reason text (BT-120).
[BR-B-01](/einvoice-rules/br-b-01)errorAn Invoice where the VAT category code (BT-151, BT-95 or BT-102) is “Split payment” shall be a domestic Italian invoice.
[BR-B-02](/einvoice-rules/br-b-02)errorAn Invoice that contains an Invoice line (BG-25), a Document level allowance (BG-20) or a Document level charge (BG-21) where the VAT category code (BT-151…
[BR-E-01](/einvoice-rules/br-e-01)errorAn Invoice that contains an Invoice line (BG-25), a Document level allowance (BG-20) or a Document level charge (BG-21) where the VAT category code (BT-151…
[BR-E-02](/einvoice-rules/br-e-02)errorAn Invoice that contains an Invoice line (BG-25) where the Invoiced item VAT category code (BT-151) is "Exempt from VAT" shall contain the Seller VAT…
[BR-E-03](/einvoice-rules/br-e-03)errorAn Invoice that contains a Document level allowance (BG-20) where the Document level allowance VAT category code (BT-95) is "Exempt from VAT" shall contain…
[BR-E-04](/einvoice-rules/br-e-04)errorAn Invoice that contains a Document level charge (BG-21) where the Document level charge VAT category code (BT-102) is "Exempt from VAT" shall contain the…
[BR-E-05](/einvoice-rules/br-e-05)errorIn an Invoice line (BG-25) where the Invoiced item VAT category code (BT-151) is "Exempt from VAT", the Invoiced item VAT rate (BT-152) shall be 0 (zero).
[BR-E-06](/einvoice-rules/br-e-06)errorIn a Document level allowance (BG-20) where the Document level allowance VAT category code (BT-95) is "Exempt from VAT", the Document level allowance VAT rate…
[BR-E-07](/einvoice-rules/br-e-07)errorIn a Document level charge (BG-21) where the Document level charge VAT category code (BT-102) is "Exempt from VAT", the Document level charge VAT rate…
[BR-E-08](/einvoice-rules/br-e-08)errorIn a VAT breakdown (BG-23) where the VAT category code (BT-118) is "Exempt from VAT" the VAT category taxable amount (BT-116) shall equal the sum of Invoice…
[BR-E-09](/einvoice-rules/br-e-09)errorThe VAT category tax amount (BT-117) In a VAT breakdown (BG-23) where the VAT category code (BT-118) equals "Exempt from VAT" shall equal 0 (zero).
[BR-E-10](/einvoice-rules/br-e-10)errorA VAT breakdown (BG-23) with VAT Category code (BT-118) "Exempt from VAT" shall have a VAT exemption reason code (BT-121) or a VAT exemption reason text…
[BR-G-01](/einvoice-rules/br-g-01)errorAn Invoice that contains an Invoice line (BG-25), a Document level allowance (BG-20) or a Document level charge (BG-21) where the VAT category code (BT-151…
[BR-G-02](/einvoice-rules/br-g-02)errorAn Invoice that contains an Invoice line (BG-25) where the Invoiced item VAT category code (BT-151) is "Export outside the EU" shall contain the Seller VAT…
[BR-G-03](/einvoice-rules/br-g-03)errorAn Invoice that contains a Document level allowance (BG-20) where the Document level allowance VAT category code (BT-95) is "Export outside the EU" shall…
[BR-G-04](/einvoice-rules/br-g-04)errorAn Invoice that contains a Document level charge (BG-21) where the Document level charge VAT category code (BT-102) is "Export outside the EU" shall contain…
[BR-G-05](/einvoice-rules/br-g-05)errorIn an Invoice line (BG-25) where the Invoiced item VAT category code (BT-151) is "Export outside the EU" the Invoiced item VAT rate (BT-152) shall be 0 (zero).
[BR-G-06](/einvoice-rules/br-g-06)errorIn a Document level allowance (BG-20) where the Document level allowance VAT category code (BT-95) is "Export outside the EU" the Document level allowance VAT…
[BR-G-07](/einvoice-rules/br-g-07)errorIn a Document level charge (BG-21) where the Document level charge VAT category code (BT-102) is "Export outside the EU" the Document level charge VAT rate…
[BR-G-08](/einvoice-rules/br-g-08)errorIn a VAT breakdown (BG-23) where the VAT category code (BT-118) is "Export outside the EU" the VAT category taxable amount (BT-116) shall equal the sum of…
[BR-G-09](/einvoice-rules/br-g-09)errorThe VAT category tax amount (BT-117) in a VAT breakdown (BG-23) where the VAT category code (BT-118) is "Export outside the EU" shall be 0 (zero).
[BR-G-10](/einvoice-rules/br-g-10)errorA VAT breakdown (BG-23) with the VAT Category code (BT-118) "Export outside the EU" shall have a VAT exemption reason code (BT-121), meaning "Export outside…
[BR-IC-01](/einvoice-rules/br-ic-01)errorAn Invoice that contains an Invoice line (BG-25), a Document level allowance (BG-20) or a Document level charge (BG-21) where the VAT category code (BT-151…
[BR-IC-02](/einvoice-rules/br-ic-02)errorAn Invoice that contains an Invoice line (BG-25) where the Invoiced item VAT category code (BT-151) is "Intra-community supply" shall contain the Seller VAT…
[BR-IC-03](/einvoice-rules/br-ic-03)errorAn Invoice that contains a Document level allowance (BG-20) where the Document level allowance VAT category code (BT-95) is "Intra-community supply" shall…
[BR-IC-04](/einvoice-rules/br-ic-04)errorAn Invoice that contains a Document level charge (BG-21) where the Document level charge VAT category code (BT-102) is "Intra-community supply" shall contain…
[BR-IC-05](/einvoice-rules/br-ic-05)errorIn an Invoice line (BG-25) where the Invoiced item VAT category code (BT-151) is "Intracommunity supply" the Invoiced item VAT rate (BT-152) shall be 0 (zero).
[BR-IC-06](/einvoice-rules/br-ic-06)errorIn a Document level allowance (BG-20) where the Document level allowance VAT category code (BT-95) is "Intra-community supply" the Document level allowance…
[BR-IC-07](/einvoice-rules/br-ic-07)errorIn a Document level charge (BG-21) where the Document level charge VAT category code (BT-102) is "Intra-community supply" the Document level charge VAT rate…
[BR-IC-08](/einvoice-rules/br-ic-08)errorIn a VAT breakdown (BG-23) where the VAT category code (BT-118) is "Intra-community supply" the VAT category taxable amount (BT-116) shall equal the sum of…
[BR-IC-09](/einvoice-rules/br-ic-09)errorThe VAT category tax amount (BT-117) in a VAT breakdown (BG-23) where the VAT category code (BT-118) is "Intra-community supply" shall be 0 (zero).
[BR-IC-10](/einvoice-rules/br-ic-10)errorA VAT breakdown (BG-23) with the VAT Category code (BT-118) "Intra-community supply" shall have a VAT exemption reason code (BT-121), meaning "Intra-community…
[BR-IC-11](/einvoice-rules/br-ic-11)errorIn an Invoice with a VAT breakdown (BG-23) where the VAT category code (BT-118) is "Intra-community supply" the Actual delivery date (BT-72) or the Invoicing…
[BR-IC-12](/einvoice-rules/br-ic-12)errorIn an Invoice with a VAT breakdown (BG-23) where the VAT category code (BT-118) is "Intra-community supply" the Deliver to country code (BT-80) shall not be…
[BR-O-01](/einvoice-rules/br-o-01)errorAn Invoice that contains an Invoice line (BG-25), a Document level allowance (BG-20) or a Document level charge (BG-21) where the VAT category code (BT-151…
[BR-O-02](/einvoice-rules/br-o-02)errorAn Invoice that contains an Invoice line (BG-25) where the Invoiced item VAT category code (BT-151) is "Not subject to VAT" shall not contain the Seller VAT…
[BR-O-03](/einvoice-rules/br-o-03)errorAn Invoice that contains a Document level allowance (BG-20) where the Document level allowance VAT category code (BT-95) is "Not subject to VAT" shall not…
[BR-O-04](/einvoice-rules/br-o-04)errorAn Invoice that contains a Document level charge (BG-21) where the Document level charge VAT category code (BT-102) is "Not subject to VAT" shall not contain…
[BR-O-05](/einvoice-rules/br-o-05)errorAn Invoice line (BG-25) where the VAT category code (BT-151) is "Not subject to VAT" shall not contain an Invoiced item VAT rate (BT-152).
[BR-O-06](/einvoice-rules/br-o-06)errorA Document level allowance (BG-20) where VAT category code (BT-95) is "Not subject to VAT" shall not contain a Document level allowance VAT rate (BT-96).
[BR-O-07](/einvoice-rules/br-o-07)errorA Document level charge (BG-21) where the VAT category code (BT-102) is "Not subject to VAT" shall not contain a Document level charge VAT rate (BT-103).
[BR-O-08](/einvoice-rules/br-o-08)errorIn a VAT breakdown (BG-23) where the VAT category code (BT-118) is " Not subject to VAT" the VAT category taxable amount (BT-116) shall equal the sum of…
[BR-O-09](/einvoice-rules/br-o-09)errorThe VAT category tax amount (BT-117) in a VAT breakdown (BG-23) where the VAT category code (BT-118) is "Not subject to VAT" shall be 0 (zero).
[BR-O-10](/einvoice-rules/br-o-10)errorA VAT breakdown (BG-23) with VAT Category code (BT-118) " Not subject to VAT" shall have a VAT exemption reason code (BT-121), meaning " Not subject to VAT"…
[BR-O-11](/einvoice-rules/br-o-11)errorAn Invoice that contains a VAT breakdown group (BG-23) with a VAT category code (BT-118) "Not subject to VAT" shall not contain other VAT breakdown groups…
[BR-O-12](/einvoice-rules/br-o-12)errorAn Invoice that contains a VAT breakdown group (BG-23) with a VAT category code (BT-118) "Not subject to VAT" shall not contain an Invoice line (BG-25) where…
[BR-O-13](/einvoice-rules/br-o-13)errorAn Invoice that contains a VAT breakdown group (BG-23) with a VAT category code (BT-118) "Not subject to VAT" shall not contain Document level allowances…
[BR-O-14](/einvoice-rules/br-o-14)errorAn Invoice that contains a VAT breakdown group (BG-23) with a VAT category code (BT-118) "Not subject to VAT" shall not contain Document level charges (BG-21)…
[BR-S-01](/einvoice-rules/br-s-01)errorAn Invoice that contains an Invoice line (BG-25), a Document level allowance (BG-20) or a Document level charge (BG-21) where the VAT category code (BT-151…
[BR-S-02](/einvoice-rules/br-s-02)errorAn Invoice that contains an Invoice line (BG-25) where the Invoiced item VAT category code (BT-151) is "Standard rated" shall contain the Seller VAT…
[BR-S-03](/einvoice-rules/br-s-03)errorAn Invoice that contains a Document level allowance (BG-20) where the Document level allowance VAT category code (BT-95) is "Standard rated" shall contain the…
[BR-S-04](/einvoice-rules/br-s-04)errorAn Invoice that contains a Document level charge (BG-21) where the Document level charge VAT category code (BT-102) is "Standard rated" shall contain the…
[BR-S-05](/einvoice-rules/br-s-05)errorIn an Invoice line (BG-25) where the Invoiced item VAT category code (BT-151) is "Standard rated" the Invoiced item VAT rate (BT-152) shall be greater than…
[BR-S-06](/einvoice-rules/br-s-06)errorIn a Document level allowance (BG-20) where the Document level allowance VAT category code (BT-95) is "Standard rated" the Document level allowance VAT rate…
[BR-S-07](/einvoice-rules/br-s-07)errorIn a Document level charge (BG-21) where the Document level charge VAT category code (BT-102) is "Standard rated" the Document level charge VAT rate (BT-103)…
[BR-S-08](/einvoice-rules/br-s-08)errorFor each different value of VAT category rate (BT-119) where the VAT category code (BT-118) is "Standard rated", the VAT category taxable amount (BT-116) in a…
[BR-S-09](/einvoice-rules/br-s-09)errorThe VAT category tax amount (BT-117) in a VAT breakdown (BG-23) where VAT category code (BT-118) is "Standard rated" shall equal the VAT category taxable…
[BR-S-10](/einvoice-rules/br-s-10)errorA VAT breakdown (BG-23) with VAT Category code (BT-118) "Standard rate" shall not have a VAT exemption reason code (BT-121) or VAT exemption reason text…
[BR-Z-01](/einvoice-rules/br-z-01)errorAn Invoice that contains an Invoice line (BG-25), a Document level allowance (BG-20) or a Document level charge (BG-21) where the VAT category code (BT-151…
[BR-Z-02](/einvoice-rules/br-z-02)errorAn Invoice that contains an Invoice line where the Invoiced item VAT category code (BT-151) is "Zero rated" shall contain the Seller VAT Identifier (BT-31)…
[BR-Z-03](/einvoice-rules/br-z-03)errorAn Invoice that contains a Document level allowance (BG-20) where the Document level allowance VAT category code (BT-95) is "Zero rated" shall contain the…
[BR-Z-04](/einvoice-rules/br-z-04)errorAn Invoice that contains a Document level charge where the Document level charge VAT category code (BT-102) is "Zero rated" shall contain the Seller VAT…
[BR-Z-05](/einvoice-rules/br-z-05)errorIn an Invoice line (BG-25) where the Invoiced item VAT category code (BT-151) is "Zero rated" the Invoiced item VAT rate (BT-152) shall be 0 (zero).
[BR-Z-06](/einvoice-rules/br-z-06)errorIn a Document level allowance (BG-20) where the Document level allowance VAT category code (BT-95) is "Zero rated" the Document level allowance VAT rate…
[BR-Z-07](/einvoice-rules/br-z-07)errorIn a Document level charge (BG-21) where the Document level charge VAT category code (BT-102) is "Zero rated" the Document level charge VAT rate (BT-103)…
[BR-Z-08](/einvoice-rules/br-z-08)errorIn a VAT breakdown (BG-23) where VAT category code (BT-118) is "Zero rated" the VAT category taxable amount (BT-116) shall equal the sum of Invoice line net…
[BR-Z-09](/einvoice-rules/br-z-09)errorThe VAT category tax amount (BT-117) in a VAT breakdown (BG-23) where VAT category code (BT-118) is "Zero rated" shall equal 0 (zero).
[BR-Z-10](/einvoice-rules/br-z-10)errorA VAT breakdown (BG-23) with VAT Category code (BT-118) "Zero rated" shall not have a VAT exemption reason code (BT-121) or VAT exemption reason text (BT-120).

Code lists (BR-CL)

Which code list each coded field must use: UNTDID, ISO, EAS, VATEX, UN/ECE Recommendation 20.

RuleSeverityMessage
[BR-CL-01](/einvoice-rules/br-cl-01)errorThe document type code MUST be coded by the invoice and credit note related code lists of UNTDID 1001.
[BR-CL-03](/einvoice-rules/br-cl-03)errorcurrencyID MUST be coded using ISO code list 4217 alpha-3
[BR-CL-04](/einvoice-rules/br-cl-04)errorInvoice currency code MUST be coded using ISO code list 4217 alpha-3
[BR-CL-05](/einvoice-rules/br-cl-05)errorTax currency code MUST be coded using ISO code list 4217 alpha-3
[BR-CL-06](/einvoice-rules/br-cl-06)errorValue added tax point date code MUST be coded using a restriction of UNTDID 2005.
[BR-CL-07](/einvoice-rules/br-cl-07)errorObject identifier identification scheme identifier MUST be coded using a restriction of UNTDID 1153.
[BR-CL-08](/einvoice-rules/br-cl-08)errorInvoiced note subject code shall be coded using UNCL4451
[BR-CL-10](/einvoice-rules/br-cl-10)errorAny identifier identification scheme identifier MUST be coded using one of the ISO 6523 ICD list.
[BR-CL-11](/einvoice-rules/br-cl-11)errorAny registration identifier identification scheme identifier MUST be coded using one of the ISO 6523 ICD list.
[BR-CL-13](/einvoice-rules/br-cl-13)errorItem classification identifier identification scheme identifier MUST be coded using one of the UNTDID 7143 list.
[BR-CL-14](/einvoice-rules/br-cl-14)errorCountry codes in an invoice MUST be coded using ISO code list 3166-1
[BR-CL-15](/einvoice-rules/br-cl-15)errorCountry codes in an invoice MUST be coded using ISO code list 3166-1
[BR-CL-16](/einvoice-rules/br-cl-16)errorPayment means in an invoice MUST be coded using UNCL4461 code list
[BR-CL-17](/einvoice-rules/br-cl-17)errorInvoice tax categories MUST be coded using UNCL5305 code list
[BR-CL-18](/einvoice-rules/br-cl-18)errorInvoice tax categories MUST be coded using UNCL5305 code list
[BR-CL-19](/einvoice-rules/br-cl-19)errorCoded allowance reasons MUST belong to the UNCL 5189 code list
[BR-CL-20](/einvoice-rules/br-cl-20)errorCoded charge reasons MUST belong to the UNCL 7161 code list
[BR-CL-21](/einvoice-rules/br-cl-21)errorItem standard identifier scheme identifier MUST belong to the ISO 6523 ICD code list
[BR-CL-22](/einvoice-rules/br-cl-22)errorTax exemption reason code identifier scheme identifier MUST belong to the CEF VATEX code list
[BR-CL-23](/einvoice-rules/br-cl-23)errorUnit code MUST be coded according to the UN/ECE Recommendation 20 with Rec 21 extension
[BR-CL-24](/einvoice-rules/br-cl-24)errorFor Mime code in attribute use MIMEMediaType.
[BR-CL-25](/einvoice-rules/br-cl-25)errorEndpoint identifier scheme identifier MUST belong to the CEF EAS code list
[BR-CL-26](/einvoice-rules/br-cl-26)errorDelivery location identifier scheme identifier MUST belong to the ISO 6523 ICD code list

Decimals (BR-DEC)

The amounts that may carry at most two decimals.

RuleSeverityMessage
[BR-DEC-01](/einvoice-rules/br-dec-01)errorThe allowed maximum number of decimals for the Document level allowance amount (BT-92) is 2.
[BR-DEC-02](/einvoice-rules/br-dec-02)errorThe allowed maximum number of decimals for the Document level allowance base amount (BT-93) is 2.
[BR-DEC-05](/einvoice-rules/br-dec-05)errorThe allowed maximum number of decimals for the Document level charge amount (BT-99) is 2.
[BR-DEC-06](/einvoice-rules/br-dec-06)errorThe allowed maximum number of decimals for the Document level charge base amount (BT-100) is 2.
[BR-DEC-09](/einvoice-rules/br-dec-09)errorThe allowed maximum number of decimals for the Sum of Invoice line net amount (BT-106) is 2.
[BR-DEC-10](/einvoice-rules/br-dec-10)errorThe allowed maximum number of decimals for the Sum of allowanced on document level (BT-107) is 2.
[BR-DEC-11](/einvoice-rules/br-dec-11)errorThe allowed maximum number of decimals for the Sum of charges on document level (BT-108) is 2.
[BR-DEC-12](/einvoice-rules/br-dec-12)errorThe allowed maximum number of decimals for the Invoice total amount without VAT (BT-109) is 2.
[BR-DEC-13](/einvoice-rules/br-dec-13)errorThe allowed maximum number of decimals for the Invoice total VAT amount (BT-110) is 2.
[BR-DEC-14](/einvoice-rules/br-dec-14)errorThe allowed maximum number of decimals for the Invoice total amount with VAT (BT-112) is 2.
[BR-DEC-15](/einvoice-rules/br-dec-15)errorThe allowed maximum number of decimals for the Invoice total VAT amount in accounting currency (BT-111) is 2.
[BR-DEC-16](/einvoice-rules/br-dec-16)errorThe allowed maximum number of decimals for the Paid amount (BT-113) is 2.
[BR-DEC-17](/einvoice-rules/br-dec-17)errorThe allowed maximum number of decimals for the Rounding amount (BT-114) is 2.
[BR-DEC-18](/einvoice-rules/br-dec-18)errorThe allowed maximum number of decimals for the Amount due for payment (BT-115) is 2.
[BR-DEC-19](/einvoice-rules/br-dec-19)errorThe allowed maximum number of decimals for the VAT category taxable amount (BT-116) is 2.
[BR-DEC-20](/einvoice-rules/br-dec-20)errorThe allowed maximum number of decimals for the VAT category tax amount (BT-117) is 2.
[BR-DEC-23](/einvoice-rules/br-dec-23)errorThe allowed maximum number of decimals for the Invoice line net amount (BT-131) is 2.
[BR-DEC-24](/einvoice-rules/br-dec-24)errorThe allowed maximum number of decimals for the Invoice line allowance amount (BT-136) is 2.
[BR-DEC-25](/einvoice-rules/br-dec-25)errorThe allowed maximum number of decimals for the Invoice line allowance base amount (BT-137) is 2.
[BR-DEC-27](/einvoice-rules/br-dec-27)errorThe allowed maximum number of decimals for the Invoice line charge amount (BT-141) is 2.
[BR-DEC-28](/einvoice-rules/br-dec-28)errorThe allowed maximum number of decimals for the Invoice line charge base amount (BT-142) is 2.

Sources