Skip to content
Last updated

Validation Error

FieldValue
Type URIhttps://developer-next.ingrid.com/ingrid-api/errors/common/validation-error
TitleValidation Error
Recommended Status400 Bad Request

Common Causes

  • One or more required fields are missing from the request body
  • A field value does not match the expected format or constraints
  • A field value is outside the allowed range

Error Details

Unlike other error types, the Validation Error includes an errors array with detailed information about each field that failed validation. Each entry contains:

  • code — A stable, machine-readable error code (e.g., error.email.required)
  • message — A human-readable description of the failure
  • param — The specific field or JSON path that caused the error (e.g., email)

Example Response

{
  "type": "https://developer-next.ingrid.com/ingrid-api/errors/common/validation-error",
  "title": "Validation Error",
  "status": 400,
  "detail": "One or more fields failed validation.",
  "trace_id": "abc-123-def-456",
  "errors": [
    {
      "code": "error.email.required",
      "message": "Email is required",
      "param": "email"
    }
  ]
}