BR-AG-02ErrorVAT categories (BR-S, BR-Z, BR-E, BR-AE …)
BR-AG-02: Identifier missing for IPSI (Ceuta and Melilla) (lines)
The invoice is invalid and will be rejected.
What does the error mean?
If category M (IPSI (Ceuta and Melilla)) is used on an invoice line (BT-151), the invoice must contain the seller VAT id (BT-31), tax number (BT-32) or tax representative VAT id (BT-63).
How to fix it
Add the seller's VAT id or tax number (UBL: cac:PartyTaxScheme, CII: ram:SpecifiedTaxRegistration with schemeID VA or FC).
Original validator message
[BR-AG-02] An 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), the Seller tax registration identifier (BT-32) and/or the Seller tax representative VAT identifier (BT-63).
Checked in: UBL, CII
Fields involved
- BG-25 INVOICE LINE
- BT-151 Invoiced item VAT category code
- BT-31 Seller VAT identifier
- BT-32 Seller tax registration identifier
- BT-63 Seller tax representative VAT identifier
Check your invoice now
Upload your XRechnung or ZUGFeRD file. The validator lists every error with an explanation – free, no sign-up.
Open the validatorAvoid the errors in the first place
With the Invoicify API you create XRechnung and ZUGFeRD from JSON. Totals, VAT and mandatory fields are checked before any XML is written.
Read the API docsRelated error codes
- BR-AG-01: VAT breakdown for IPSI (Ceuta and Melilla) missing
- BR-AG-03: Identifier missing for IPSI (Ceuta and Melilla) (allowances)
- BR-AF-10: Exemption reason not allowed for IGIC (Canary Islands)
- BR-AG-04: Identifier missing for IPSI (Ceuta and Melilla) (charges)
- BR-AF-09: VAT amount for IGIC (Canary Islands) is wrong
- BR-AG-05: Negative VAT rate with IPSI (Ceuta and Melilla) (lines)