VALIDATION_ERROR

The request body, query parameters, or path parameters failed schema validation.

typestring

invalid_request_error

statusnumber

400

What happened

One or more fields in your request did not pass validation. The details array tells you exactly which fields failed and why. Fix them and retry.

{
  "error": {
    "type": "invalid_request_error",
    "code": "VALIDATION_ERROR",
    "message": "Invalid request",
    "status": 400,
    "doc_url": "https://docs.thewitn.com/docs/errors/validation-error",
    "details": [
      {
        "path": "contract.price",
        "message": "Number must be greater than 0"
      }
    ]
  }
}

The details array

Each entry in details identifies one failing field:

FieldTypeDescription
pathstringDot-notation path to the field, e.g. contract.price. Array indices use bracket notation: conditions[0].event.
messagestringHuman-readable reason the field failed validation.

Common causes

On this page