errorbusinessEN 16931

BR-AG-05:IPSI invoice line VAT rate must be 0% or positive

Fix: Invoice Navigator automatically fixes this issue by correcting the `cac:InvoiceLine` element in your Invoice (BR-AG-05). Upload your invoice to fix this automatically.

When an invoice line uses the IPSI VAT category (M for Ceuta/Melilla indirect tax), the VAT rate must be 0 or greater than zero.

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

Engine Classification

Set VAT rate to 0% if negative for IPSI invoice lines per EN16931 BR-AG-05

Confidence: 92% · Applied automatically in pipeline

What is BR-AG-05?

BR-AG-05 is a fatal validation rule defined in the EN 16931 specification. It validates the Percent element under Item > ClassifiedTaxCategory in the UBL invoice XML.

When this rule fires, the invoice is rejected by Peppol access points and never reaches the buyer.

Target path: //cac:InvoiceLine/cac:Item/cac:ClassifiedTaxCategory[cbc:ID='M']/cbc:Percent

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-05 is a hard failure — the invoice must be corrected and re-sent before it can reach the recipient.

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-05
  • ·Specification: EN 16931

How to Fix It

1.

Identify IPSI invoice lines

2.

Check VAT rate values

3.

Fix negative rates

4.

Validate the result

Before / After

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

Technical Reference

XPath//cac:InvoiceLine/cac:Item/cac:ClassifiedTaxCategory[cbc:ID='M']/cbc:Percent
SpecEN 16931
Operationset_value
StrategySet VAT rate to 0% if negative for IPSI invoice lines per EN16931 BR-AG-05

Common Causes

  • ·IPSI line item has negative VAT rate
  • ·Incorrect rate entered for Ceuta/Melilla tax
  • ·IPSI percentage field contains invalid value
  • ·Rate calculation error for IPSI category
  • ·Data entry error on IPSI tax rate

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

Frequently Asked Questions

When an invoice line uses the IPSI VAT category (M for Ceuta/Melilla indirect tax), the VAT rate must be 0 or greater than zero.

Invoice Navigator automatically fixes this issue by correcting the `cac:InvoiceLine` element in your Invoice (BR-AG-05). You can also use Invoice Navigator's compliance engine to correct this automatically in your pipeline.

Yes, BR-AG-05 is a critical error that will cause invoice rejection. It must be fixed before submission.

Many instances of BR-AG-05 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: 27 February 2026

Share this guide:

Validate your invoice

Drop your XML here to check for BR-AG-05

Auto-fix BR-AG-05 in seconds

Upload your invoice and we fix this error automatically. Financial fields are never touched.