Skip to navigation
Yoco APIError codes

Validation

This problem occurs when the request payload fails validation.

The error response likely contains a list of errors with more specific information as to what went wrong.

Troubleshooting

  • If present in the response, look at the list of errors, correct any invalid fields and try the request again.

Example error

{
"type": "https://developer.yoco.com/docs/api/error-codes/validation",
"title": "Validation Error",
"detail": "The request contains one or more validation errors.",
"status": 400,
"code": "validation",
"errors": [
{
"detail": "The field is required.",
"pointer": "#/first_name",
"code": "missing_required_field"
}
]
}