invalid_request
The request is invalid. HTTP 400
What it means
A field is missing, has the wrong type or is not one the endpoint takes. The message names the field. A few checks after validation (a country the beta does not serve, say) answer 422 with the same code.
What to do
Fix the field the message names and send again. Compare the request with the endpoint's page in the API reference.
Example
{
"error": {
"code": "invalid_request",
"message": "The request is invalid",
"docUrl": "https://docs.pushwren.com/errors/invalid_request"
}
}Every error has this shape. The message says what went wrong in this case; docUrl links here. See all errors.