BR-CO-16 fails when the amount due is not exactly the total with VAT minus the amount already paid plus the rounding amount. EN 16931 checks every total of an e-invoice against its parts, to the cent. A printed invoice can show a rounded number; an e-invoice cannot, because a machine recalculates it.
How EN 16931 calculates the totals
The totals form a chain. Each link has its own rule:
| Rule | Calculation |
|---|---|
BR-CO-10 |
Sum of line net amounts (BT-106) = Σ line net amount (BT-131) |
BR-CO-13 |
Total without VAT (BT-109) = BT-106 − document allowances (BT-107) + document charges (BT-108) |
BR-CO-17 |
VAT per category (BT-117) = taxable amount (BT-116) × rate (BT-119) / 100, rounded to two decimals |
BR-CO-14 |
Total VAT (BT-110) = Σ VAT per category (BT-117) |
BR-CO-15 |
Total with VAT (BT-112) = BT-109 + BT-110 |
BR-CO-16 |
Amount due (BT-115) = BT-112 − paid amount (BT-113) + rounding amount (BT-114) |
When one link is off, every rule after it can fail as well. Fix the first failing rule in this order and validate again.
Where the cent goes missing
VAT per line instead of per rate. Many systems calculate VAT on each line, round it and add it up. EN 16931 calculates VAT once per category and rate, on the sum of the line amounts. Three lines of 0.33 at 19 % give 0.06 + 0.06 + 0.06 = 0.18 per line, but 0.99 × 19 % = 0.19 per rate. The rule expects 0.19.
Rounded line amounts. BT-131 is quantity × price minus line allowances plus line charges, rounded to two decimals. If your system keeps more decimals internally and rounds only the total, the sum of the printed line amounts differs from BT-106.
A deposit or partial payment. If the customer has already paid part of the invoice, the paid amount (BT-113) must be stated. Leaving it out while reducing the amount due fails BR-CO-16.
Cash rounding. If you round the amount due, for example to 5 cents, the difference belongs in the rounding amount (BT-114).
Manual edits. Changing one amount in the XML without the totals above it always breaks the chain.
How to fix it
- Validate the invoice and note the first failing BR-CO rule.
- Recalculate that total from its parts, using the formula in the table.
- Correct the setting in your invoicing system — usually the VAT calculation mode — so the next invoice is right.
To correct a single file, the repair analysis computes the correct value from the other amounts of the document and proposes it with confidence medium. Because it changes money, it is applied only when a person confirms it (confirmAmounts: true, or the check box in the dashboard). The service never changes an amount on its own.
Frequently asked questions
Why does the PDF show the right total but the XML fails?
The PDF is a picture of the invoice; nobody recalculates it. The XML is data, and the recipient's system recalculates every total with the EN 16931 formulas.
Is BR-CO-16 an XRechnung error or an EN 16931 error?
EN 16931. It applies to every invoice that follows the standard: XRechnung, ZUGFeRD from profile EN 16931, Peppol BIS and EN 16931 UBL or CII.
How much difference does the rule allow?
None. The totals must match to the cent.
Can I test my calculation before going live?
Yes. Synthetic test invoices from POST /v1/testdata include a case with a wrong amount due (BR-CO-16) and a wrong line total (BR-CO-10), so you can see how your system reports them. See testing e-invoices in CI.
E-Invoicing API