BR-AG-02:When using this VAT category, the seller must have a VAT identifier, tax...
Fix: This requires user input to resolve. Provide the correct value for `cac:InvoiceLine` (BG-25). Provide the required value in the free validator.
When using this VAT category, the seller must have a VAT identifier, tax registration, or tax representative.
Engine Classification
Business data required · Explicit input workflow · No assumptions made
Required input: Seller VAT/Tax ID
What is BR-AG-02?
BR-AG-02 is a fatal validation rule defined in the EN 16931 specification.
When this rule fires, the invoice is rejected by Peppol access points and never reaches the buyer.
Why This Error Matters
Invoice will be rejected. IPSI (Ceuta/Melilla indirect tax) transactions must follow specific rules for Spanish territory tax compliance.
BR-AG-02 is a hard failure — the invoice must be corrected and re-sent before it can reach the recipient.
Validator Behavior
- ·Causes invoice rejection
- ·Error returned: BR-AG-02
- ·Specification: EN 16931
How to Fix It
Identify the missing data
When using this VAT category, the seller must have a VAT identifier, tax registration, or tax representative.
Provide the required value
This requires user input to resolve. Provide the correct value for `cac:InvoiceLine` (BG-25).
Re-validate your invoice
Upload the corrected invoice to confirm BR-AG-02 is resolved.
Before / After
<Invoice> <cac:InvoiceLine>INVALID_CODE</cac:InvoiceLine> </Invoice>
<Invoice> <cac:InvoiceLine>VALID_CODE</cac:InvoiceLine> </Invoice>
Technical Reference
Common Causes
- ·Invoice line uses IPSI but seller has no tax identifier
- ·Ceuta/Melilla seller missing required VAT/tax registration
- ·Tax representative not configured for IPSI sales
- ·Seller tax identifiers not mapped in export
- ·IPSI transaction created without seller tax setup
Seeing this in production? The API handles BR-AG-02 automatically. See the fix response →
Frequently Asked Questions
When using this VAT category, the seller must have a VAT identifier, tax registration, or tax representative.
This requires user input to resolve. Provide the correct value for `cac:InvoiceLine` (BG-25). You can also use Invoice Navigator's compliance engine to correct this automatically in your pipeline.
Yes, BR-AG-02 is a critical error that will cause invoice rejection. It must be fixed before submission.
Many instances of BR-AG-02 can be automatically corrected using Invoice Navigator's compliance engine. The fix is applied in your pipeline with full audit evidence.
Related Errors
Related Content
Last updated: 14 April 2026
Validate your invoice
Drop your XML here to check for BR-AG-02
Fix BR-AG-02 with guided input
Upload your invoice and we'll ask for the missing data, then apply a safe, auditable fix.