validation_failed
Validation failed
| HTTP status | 422 Unprocessable Content |
|---|---|
| Returned by | Invoicing API (/v1, API keys)Console Flashpi’s internal backoffice (staff only) |
type | English (default): https://flashpi.com.ec/docs/en/errors/validation_failedSpanish ( Accept-Language: es): https://flashpi.com.ec/docs/errors/validation_failedIt 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 invalidfield(such asitems[0].quantity), acodeand amessage. 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.
| Language | title | detail |
|---|---|---|
| English (default) | Validation failed | One or more fields are invalid. See errors for details. |
Spanish (Accept-Language: es) | Error de validación | Uno o más campos no son válidos. Revisa errors para ver el detalle. |