Skip to content

total_mismatch

Total mismatch

HTTP status422 Unprocessable Content
Returned byInvoicing API (/v1, API keys)
typeEnglish (default): https://flashpi.com.ec/docs/en/errors/total_mismatch
Spanish (Accept-Language: es): https://flashpi.com.ec/docs/errors/total_mismatch
It changes with the language of the answer: branch on code.
Retry?No: the same request gets the same answer. Change the request, or the state of what it acts on, first.

What to do

  • You sent expectedTotal, and the total Flashpi computed with the SRI rounding rules is different. The answer carries both, expectedTotal and computedTotal. Nothing was issued.
  • Compare your lines, discounts and tax rates with the rules in totals, or leave expectedTotal out to accept Flashpi’s total.

Texts of the answer

The title and detail of the answer, in English by default and in Spanish when the Accept-Language entry with the highest priority (q) is es or es- plus a region, such as es-EC. A detail can be more specific than this one, and {name} marks a value of each occurrence.

Languagetitledetail
English (default)Total mismatchThe total Flashpi computed ({computedTotal}) does not match expectedTotal ({expectedTotal}).
Spanish (Accept-Language: es)El total no coincideEl total que calculó Flashpi ({computedTotal}) no coincide con expectedTotal ({expectedTotal}).