Skip to content

validation_failed

Validation failed

HTTP status422 Unprocessable Content
Returned byInvoicing API (/v1, API keys)
Console
Flashpi’s internal backoffice (staff only)
typeEnglish (default): https://flashpi.com.ec/docs/en/errors/validation_failed
Spanish (Accept-Language: es): https://flashpi.com.ec/docs/errors/validation_failed
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

  • Read errors[]: each item names the invalid field (such as items[0].quantity), a code and a message. Fix every field it lists; Flashpi reports all of them at once.
  • Branch on the field error code, never on the message, which changes with the language. The codes are listed in field error codes.
  • For documents, see validation: amounts and quantities are decimal strings, and catalog values must be in force on the issue date.

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)Validation failedOne or more fields are invalid. See errors for details.
Spanish (Accept-Language: es)Error de validaciónUno o más campos no son válidos. Revisa errors para ver el detalle.