Tools › SmartFormular E-Rechnung lite › Validation rules › BR-AF-02
BR-AF-02
For lines with "IGIC (Canary Islands)" (L), the seller's VAT number or tax number (BT-31, BT-32) is missing
What the message means
For lines with "IGIC (Canary Islands)" (L), the seller's VAT number or tax number (BT-31, BT-32) is missing.
What the issuer needs to change
Add the missing numbers.
Fields concerned
BG-25invoice lineBT-31seller VAT identifierBT-32seller tax registration identifierBT-63seller tax representative VAT identifierBT-151invoiced item VAT category code
Your invoice reports BR-AF-02? Check it with SmartFormular E-Rechnung lite, free to try until 31 December 2026: the tool shows every finding with an explanation, the invoice in readable form and a GiroCode to pay – in your browser, no upload.
Check an e-invoiceOrigin
- Rule set
- EN 16931 (CEN, rule set 1.3.16)
- Syntax
- CII, UBL
- Level
- Error
Original rule text
An 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), the Seller tax registration identifier (BT-32) and/or the Seller tax representative VAT identifier (BT-63).
Technical details for IT
UBL
Context: /ubl:Invoice | /cn:CreditNote Test: not((exists(//cac:ClassifiedTaxCategory[normalize-space(cbc:ID) = 'L'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']) and (exists(//cac:AccountingSupplierParty/cac:Party/cac:PartyTaxScheme/cbc:CompanyID) or exists(//cac:TaxRepresentativeParty/cac:PartyTaxScheme[cac:TaxScheme/(normalize-space(upper-case(cbc:ID)) = 'VAT')]/cbc:CompanyID))) or not(exists(//cac:ClassifiedTaxCategory[normalize-space(cbc:ID) = 'L'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT'])))
CII
Context: //rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement/ram:ApplicableTradeTax[ram:CategoryCode = 'L'][upper-case(ram:TypeCode) = 'VAT']
Test: not(/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:SellerTradeParty/ram:SpecifiedTaxRegistration/ram:ID[@schemeID = ('VA', 'FC')] or /rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:SellerTaxRepresentativeTradeParty/ram:SpecifiedTaxRegistration/ram:ID[@schemeID = 'VA'])
Related rules
- BR-AE-09With "reverse charge" (AE) the VAT amount in the breakdown (BT-117) must be 0
- BR-AE-10The invoice shows no VAT – category "reverse charge" (AE) – but gives no reason (BT-120 or BT-121)
- BR-AF-01Lines, allowances or charges use the VAT category "IGIC (Canary Islands)" (L), but the VAT breakdown (BG-23) …
- BR-AF-03For an allowance with "IGIC (Canary Islands)" (L), the seller's VAT number or tax number (BT-31, BT-32) is …
- BR-AF-04For a charge with "IGIC (Canary Islands)" (L), the seller's VAT number or tax number (BT-31, BT-32) is missing
- BR-AF-05For a line with "IGIC (Canary Islands)" (L) the VAT rate is wrong: it must be zero or more