Sum of line net amounts does not match the total
What it means
The sum of invoice line net amounts (BT-106) must equal the sum of the individual line amounts. A mismatch is usually accumulated rounding, or a line that was added or removed without the header total being recalculated.
Can it be fixed automatically?
Nothing about your business is needed to fix this — the correct value is a constant, a code list entry, or is already present in the document.
This one can be repaired automatically. The API applies the fix, re-validates, and reports exactly what changed with before and after values.
How to fix it
Recompute the total as the sum of the line net amounts already in the document.
Where it applies
| UBL | /Invoice/cac:LegalMonetaryTotal/cbc:LineExtensionAmount |
|---|
Check your own invoice
curl -X POST https://einvoice.mgsoft.sk/v1/validate \
-H 'Content-Type: application/xml' \
--data-binary @invoice.xml