searchOptions.confidenceScores result to CDI071 Bad Request

Solved! Go to solution
API_Products
Visa Developer Support Specialist

Re: searchOptions.confidenceScores result to CDI071 Bad Request

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

  }

}

 

 

 




Thanks,

Diana H.



Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.

KrisC
Helper

Re: searchOptions.confidenceScores result to CDI071 Bad Request

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.

API_Products
Visa Developer Support Specialist

Re: searchOptions.confidenceScores result to CDI071 Bad Request

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. 




Thanks,

Diana H.



Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.

KrisC
Helper

Re: searchOptions.confidenceScores result to CDI071 Bad Request

Hi @API_Products,

Just do take note though that boolean values in JSON should not be surrounded by double quotes.

 

Thanks,

Kris