function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Shatrughna SalunkeShatrughna Salunke 

Status code 400 error

String requestbody='
{
  "platform": {
    "record": {
      "query_type": {
        "content": "11"
      },
      "consumer_title": "Mr.",
      "consumer_first_name": "Shatrughna",
      "consumer_surname": "Salunke",
      "consumer_date_of_birth": "1971-10-08",
      "address_line1": "19",
      "address_line2": "",
      "address_line3": "",
      "town": "Pune Hinjawadi",
      "postcode_2099407766": ""
    }
  }
}';

Using above request body I am getting below error
Error:System.HttpResponse[Status=null, StatusCode=400]
ShirishaShirisha (Salesforce Developers) 
Hi Shatrughna,

Greetings!

Please double check the parameters and type of the value which you are passing as this error occurs if the body is invalid.

https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/400#:~:text=The%20HyperText%20Transfer%20Protocol%20(HTTP,%2C%20or%20deceptive%20request%20routing).

Kindly mark it as best answer if it helps so that it can help others in the future.

Warm Regards,
Shirisha Pathuri