| Field | Value |
|---|---|
| Type URI | https://developer-next.ingrid.com/ingrid-api/errors/common/validation-error |
| Title | Validation Error |
| Recommended Status | 400 Bad Request |
- 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
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 failureparam— The specific field or JSON path that caused the error (e.g.,email)
{
"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"
}
]
}