validation-error
HTTP 400 · Tenant fixable.
One or more payload fields do not meet the OpenAPI contract published at /api-reference. The detail field contains a JSON list of specific errors provided by Pydantic:
{
"type": "https://errors.api.erply.pro/validation-error",
"title": "Validation error",
"status": 400,
"detail": "[{\"loc\":[\"buyer\",\"rnc\"],\"msg\":\"value is not a valid RNC\"}]"
}
How to fix
- Run the payload against the OpenAPI schema using
ajvorjsonschema. - Check that date formats are ISO-8601 (
YYYY-MM-DD). - Monetary amounts are sent as numbers (not strings) with up to 2 decimals.
- The RNC must have 9 or 11 digits, numeric only.
Common errors
| Cause | detail field message |
|---|---|
Missing ecfType | field required on ecfType |
Negative total | ensure this value is greater than 0 |
| RNC with dashes | value is not a valid RNC |
| Future date | issuanceDate cannot be in the future |