Skip to main content
422 Unprocessable EntityRequest

INVALID_REQUEST

A field is missing or invalid

When it happens

Validation failed. error.fields lists every field with a problem.

How to fix it

  1. Read error.fields: each entry names the field and what is wrong with it.
  2. Fix the request and send it with a new Idempotency-Key: the original response is saved for its key.
RetryingFix the request, then send it with a new key.How idempotency works

Example response

HTTP 422 Unprocessable Entity
{
"status": "failed",
"error": {
"code": "INVALID_REQUEST",
"message": "Some fields are missing or invalid.",
"doc_url": "https://developer.getreeds.co/errors/INVALID_REQUEST",
"fields": [
{
"field": "package.description",
"message": "Describe what is being sent."
},
{
"field": "dropoff.phone",
"message": "Enter a Nigerian mobile number."
}
]
}
}