# INTERNAL_VALIDATION_FAILED: Request payload failed validation.

- Category: Platform
- HTTP status: 400
- Reference: https://docs.bizkithub.com/en/errors/INTERNAL_VALIDATION_FAILED

## What happened

The server-side validator rejected a field value that the typed body schema could not catch (format, length, cross-field consistency, multi-tenant ownership, etc.). The offending field and constraint should be passed as parametric context — e.g. `throw ApiError("INTERNAL_VALIDATION_FAILED", 'reserveFrom must be a relative-time string')`.

## How to resolve

1. Re-read the field requirements in the relevant Swagger description.
2. For relative-time fields use the format `1d`, `2h`, `30m`, `15m`, etc. (max 8 chars).
3. For ids verify the referenced record exists and belongs to your organisation.

## Example response

```json
{
  "state": "error",
  "code": 400,
  "message": "Request payload failed validation.",
  "errorCode": "INTERNAL_VALIDATION_FAILED",
  "hint": "The server-side validator rejected a field value that the typed body schema could not catch (format, length, cross-field consistency, multi-tenant ownership, etc.). The offending field and constraint should be passed as parametric context — e.g. `throw ApiError(\"INTERNAL_VALIDATION_FAILED\", 'reserveFrom must be a relative-time string')`.",
  "documentationUrl": "https://docs.bizkithub.com/errors/INTERNAL_VALIDATION_FAILED"
}
```
