Invalid request
We could not read the request: the JSON is malformed, a field is not one we know, or a value is not one we accept.
- Status
400Bad Request- Type
https://developers.checkmystreet.co.uk/errors/invalid-request- Charged
- No
- Retry
- No. The same request always returns this error.
Example
{
"type": "https://developers.checkmystreet.co.uk/errors/invalid-request",
"title": "Invalid request",
"status": 400,
"detail": "propertyType must be one of detached, semi_detached, terraced, flat.",
"code": "invalid_value"
}
code is the specific reason: malformed_json, unknown_field or invalid_value. detail names the field.
What to do
- Read
detail: it names the field and what we expected. - Check the request against the API reference. Unknown fields are refused, so a typo in a field name returns this error rather than being ignored.
- Send
Content-Type: application/jsonand a JSON object as the body.
Related
floor-area-required: the request is valid, but a floor area is needed.outside-coverage: the postcode is valid, but outside England and Wales.- All errors