errorEN 16931

BR-AG-02:When using this VAT category, the seller must have a VAT identifier, tax...

When using this VAT category, the seller must have a VAT identifier, tax registration, or tax representative.

Severity
Fatal
Rule set
EN 16931
Country
All EU
Fix type
INPUT REQUIRED

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. It checks whether when using this vat category, the seller must have a vat identifier, tax....

When this rule fires, the invoice is non-compliant and will be rejected by Peppol access points and national validation services. The sending system receives a rejection response and the invoice does not reach 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. Invoices that trigger this rule are rejected at the access point and never reach the recipient. In Peppol networks, this means your sending system receives an MLR (Message Level Response) with a rejection status. The invoice must be corrected and re-sent, adding delay to your payment cycle.

Validator Behavior

  • ·Causes invoice rejection
  • ·Error returned: BR-AG-02
  • ·Specification: EN 16931

Before / After

Failing XML
<Invoice>
  <cac:InvoiceLine>INVALID_CODE</cac:InvoiceLine>
</Invoice>
Corrected XML
<Invoice>
  <cac:InvoiceLine>VALID_CODE</cac:InvoiceLine>
</Invoice>

Technical Reference

SpecEN 16931
Strategy1. Check for existing VAT/tax identifiers. 2. If none, prompt for seller VAT number. 3. Add PartyTaxScheme.

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 →

See Also

Related Errors

Last updated: 27 February 2026

Share this guide:

Handle BR-AG-02 Automatically in Your Pipeline

The compliance engine auto-remediates this error with controlled safety policies and evidence pack generation.