Hi @KrisC,
After investigation, you're trying to send request without quote as for confidenceScore value as highlighted below. When engineering try to reproduce the issue for same payload, engineering see successful response is returning for them after correcting the syntax error.(Engineering added “” to the confidenceScore value). Please find the below screenshot from the validation.
Please provide quotes and try again? Share your result with us. If the error is fixed, let us know so I can close the incident.
Client Request JSON:
{
"header": {
"startIndex": "0",
"requestMessageId": "test_{{$guid}}",
"messageDateTime": "{{now}}"
},
"responseAttrList": [
"GNSTANDARD"
],
"searchAttrList": {
"merchantName": "mcdonalds",
"merchantCountryCode": "840",
"merchantPostalCode": "33172"
},
"searchOptions": {
"confidenceScores": true à “” are missing for true
}
}
Hi @API_Products,
Thank you for getting back to me. I tried and it does work, i.e. surrounding true with double quotes. That's surprising though since JSON conventions for boolean values specify lowercase true or false with no quotations.
Hi @KrisC,
Thanks for sharing the test result and confirming the error is fixed! This is great news! I'll close the incident. Have a nice day.
Hi @API_Products,
Just do take note though that boolean values in JSON should not be surrounded by double quotes.
Thanks,
Kris