Missing required field

This problem occurs when the request payload is missing a required field.

This error code typically appears within a parent error of type validation_error.

Troubleshooting

  • Add the missing field to the request payload and retry the request.

Example error

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