Skip to navigation
Yoco APIError codes

Missing required field

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

This error code typically appears within a parent error with the code validation.

Troubleshooting

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

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"
}
]
}