errorEN 16931

BR-AG-09:IPSI VAT breakdown tax amount must be calculated correctly

The tax amount for the IPSI VAT category in the VAT breakdown must be calculated based on the taxable amount and rate.

Severity
Fatal
Rule set
EN 16931
Country
All EU
Fix type
AUTO-FIX
Confidence
90%
Category
calculation

Engine Classification

Recalculate IPSI tax amount as taxableAmount times rate per EN16931 BR-AG-09

Confidence: 90% · Applied automatically in pipeline

What is BR-AG-09?

BR-AG-09 is a fatal validation rule defined in the EN 16931 specification. It validates the TaxAmount element under TaxSubtotal[cac:TaxCategory > ID='M'] in the UBL invoice XML.

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.

Target path: //cac:TaxTotal/cac:TaxSubtotal[cac:TaxCategory/cbc:ID='M']/cbc:TaxAmount

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-09 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.

Invoice Navigator can automatically correct this error in your pipeline. The fix is applied with full audit evidence, so your compliance trail remains intact.

Validator Behavior

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

How to Fix It

1.

Locate IPSI VAT breakdown

2.

Check tax amount calculation

3.

Fix incorrect tax amount

4.

Validate the result

Before / After

Failing XML
<cac:TaxSubtotal>
  <cbc:TaxAmount>999.99</cbc:TaxAmount>
  <!-- Does not match expected calculation -->
</cac:TaxSubtotal>
Corrected XML
<cac:TaxSubtotal>
  <cbc:TaxAmount>100.00</cbc:TaxAmount>
  <!-- Matches expected calculation -->
</cac:TaxSubtotal>

Technical Reference

XPath//cac:TaxTotal/cac:TaxSubtotal[cac:TaxCategory/cbc:ID='M']/cbc:TaxAmount
SpecEN 16931
Operationrecalculate
StrategyRecalculate IPSI tax amount as taxableAmount times rate per EN16931 BR-AG-09

Common Causes

  • ·IPSI tax amount calculation is incorrect
  • ·Tax amount does not equal taxable × rate for IPSI
  • ·Rounding error in IPSI tax calculation
  • ·Manual tax override created mismatch
  • ·Tax engine calculation differs from expected formula

Seeing this in production? The API handles BR-AG-09 automatically. See the fix response →

See Also

Related Errors

Last updated: 27 February 2026

Share this guide:

Handle BR-AG-09 Automatically in Your Pipeline

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