Developers
Get access

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
400 Bad 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/json and a JSON object as the body.

Related

Updated