You need to sign in to do that
Don't have an account?
Shatrughna 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]
{
"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]
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