CRATEAPI

BR-CO-13

EN 16931 FATAL

The invoice total without VAT (BT-109) must equal the sum of line nets (BT-106) minus document-level allowances (BT-107) plus document-level charges (BT-108). Your declared BT-109 breaks that equation.

How to fix it
  1. Recompute BT-109 = BT-106 − BT-107 + BT-108, all rounded to 2 decimals.
  2. If you have no document-level allowances/charges, BT-109 must simply equal BT-106.
  3. Check the allowance/charge indicator flags - an allowance encoded as a charge flips the sign and breaks the equation.
Official rule text
Invoice total amount without VAT (BT-109) = Σ Invoice line net amount (BT-131) - Sum of allowances on document level (BT-107) + Sum of charges on document level (BT-108).

Developers also reach this page searching for an “invoice validation error”, an “e-invoice rejected” message, or how to fix a failed EN 16931 compliance check — it's the same issue, explained above.

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.

Related rules