Validation

This problem occurs when the request payload fails validation.

The error response will likely contain 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

1{
2 "type": "https://developer.yoco.com/docs/api/error-codes/validation",
3 "title": "Validation Error",
4 "detail": "The request contains one or many validation errors.",
5 "status": 400,
6 "code": "validation",
7 "errors": [
8 {
9 "detail": "The field is required.",
10 "pointer": "#/first_name",
11 "code": "missing_required_field"
12 }
13 ]
14}