line_total_checksum_mismatch
The `line_total` you declared does not match the one Factuarea computes for that line (quantity × price − discount + VAT − withholding + surcharge) and the deviation is above the one-cent tolerance. The amount that gets invoiced and reported to the tax authority is always the one computed here, so the discrepancy means your system and the issued invoice would not reconcile.
| Code | Type | HTTP | Category |
|---|---|---|---|
line_total_checksum_mismatch | invalid_request_error | 422 | Invoices |
Cause
The line_total you declared does not match the one Factuarea computes for that line (quantity × price − discount + VAT − withholding + surcharge) and the deviation is above the one-cent tolerance. The amount that gets invoiced and reported to the tax authority is always the one computed here, so the discrepancy means your system and the issued invoice would not reconcile.
What to do
Compare error.details.expected (our total) with error.details.received (yours) and fix the rounding on your side. The field is an optional input checksum that is never persisted, so you can also omit it and take the amounts from the response.