This page is also available in your language:
CRATEAPI Error reference EN · FR · DE · RO

BR-CO-17

EN 16931 FATAL

Official rule text

VAT category tax amount (BT-117) = VAT category taxable amount (BT-116) x (VAT category rate (BT-119) / 100), rounded to two decimals.

What this error means

This is a consistency rule: two or more amounts in the invoice must add up exactly, and in your file they don't. The validator recomputes the total from its parts and compares it with the value you declared.

How to fix it

  1. Recompute the amounts referenced in the rule text above and make them agree.
  2. Round each line and each total to 2 decimals using the same rounding mode everywhere (banker's rounding is a common source of 1-cent mismatches).
  3. Never re-derive a declared total from scratch on the receiving side of your pipeline - compute it once, at the source, and carry it through.

Related rules

Fix it faster

Paste your invoice XML in our free validator - every finding comes with its rule ID. Then generate, convert and render compliant invoices through one API.