Tools › SmartFormular E-Rechnung lite › Validation rules › BR-AG-03
BR-AG-03
For an allowance with "IPSI (Ceuta and Melilla)" (M), the seller's VAT number or tax number (BT-31, BT-32) is missing
What the message means
For an allowance with "IPSI (Ceuta and Melilla)" (M), 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-20document level allowancesBT-31seller VAT identifierBT-32seller tax registration identifierBT-63seller tax representative VAT identifierBT-95document level allowance VAT category code
Your invoice reports BR-AG-03? 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 a Document level allowance (BG-20) where the Document level allowance VAT category code (BT-95) is "IPSI" 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:AllowanceCharge[cbc:ChargeIndicator=false()]/cac:TaxCategory[normalize-space(cbc:ID)='M'][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:AllowanceCharge[cbc:ChargeIndicator=false()]/cac:TaxCategory[normalize-space(cbc:ID)='M'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT'])))
CII
Context: //ram:SpecifiedTradeAllowanceCharge[ram:ChargeIndicator/udt:Indicator=false()]/ram:CategoryTradeTax[ram:CategoryCode = 'M'][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-AF-10With "IGIC (Canary Islands)" (L) no exemption reason may be given (BT-120, BT-121)
- BR-AG-01Lines, allowances or charges use the VAT category "IPSI (Ceuta and Melilla)" (M), but the VAT breakdown …
- BR-AG-02For lines with "IPSI (Ceuta and Melilla)" (M), the seller's VAT number or tax number (BT-31, BT-32) is missing
- BR-AG-04For a charge with "IPSI (Ceuta and Melilla)" (M), the seller's VAT number or tax number (BT-31, BT-32) is …
- BR-AG-05For a line with "IPSI (Ceuta and Melilla)" (M) the VAT rate is wrong: it must be zero or more
- BR-AG-06For an allowance with "IPSI (Ceuta and Melilla)" (M) the VAT rate is wrong: it must be zero or more