Skip to main content

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 ajv or jsonschema.
  • 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

Causedetail field message
Missing ecfTypefield required on ecfType
Negative totalensure this value is greater than 0
RNC with dashesvalue is not a valid RNC
Future dateissuanceDate cannot be in the future