the remote server returned an error: (400)

Integration of WC1 API into our CRM back end is working in development environment but it's giving us 400 error in production env.

what can be the issue?

Best Answer

Answers

  • Hi @ashwinikumar,


    Can you send me the request and response headers and body so that I can look into this. Thank you.


    Regards,

    Ssneha Balasubramanian.

  • I am trying to create screening cases in bulk @ssneha.balasubramanian

    here is my webservice.cs file, which I am consuming from another controller.

    WCApiService.txt

    API parameters as follows:

    basepath="https://api-worldcheck.refinitiv.com";

    gatewayurl="/v2/";

    methodType="POST";

    requestPath="cases/saveAndScreen";

    contentType="application/json";

    content="{\"groupId\":\"goupidGoeshere\",\"providerTypes\":[\"WATCHLIST\"],\"nameTransposition\":false,\"caseScreeningState\":{\"WATCHLIST\":\"INITIAL\"},\"cases\":[{\"entityType\":\"ORGANISATION\",\"name\":\"ELEGANT\",\"secondaryFields\":[{\"typeId\":\"SFCT_191\",\"value\":\"0148,AE-TLN,ARE\"},{\"typeId\":\"SFCT_6\",\"value\":\"ARE\"}],\"customFields\":[]},{\"entityType\":\"INDIVIDUAL\",\"name\":\"KAUSHAl\",\"secondaryFields\":[{\"typeId\":\"SFCT_1\",\"value\":\"MALE\"},{\"typeId\":\"SFCT_2\",\"dateTimeValue\":\"1979-09-15\"},{\"typeId\":\"SFCT_3\",\"value\":\"ARE\"},{\"typeId\":\"SFCT_4\",\"value\":\"IND\"},{\"typeId\":\"SFCT_5\",\"value\":\"IND\"},{\"typeId\":\"SFCT_191\",\"value\":\"Z4977489,IN-PASS,IND\"}],\"customFields\":[]}]}";

    please let me know, if you want any.

    hoping to get some fruitful response.

    Thank you!

  • Hi @ashwinikumar,


    Can you post the response you're getting as well? Thank you.


    Regards,

    Ssneha Balasubramanian.

  • The remote server returned an error: (400)

  • Hi @ssneha.balasubramanian ,

    Could you please provide further assistance with the question poster?

    Thanks,
    AHS