Hi, I'm getting 415 response when I try to create a case..
It's working in Postman, however I cannot replicate it in my script. I do not see any difference between pre-requests script in postman and mine. Since I was able to call "top-lvl-groups", the two functions visible in screen (getGMT & calculate_HMAC_256_64base) work.. same headers, body, everything..
Would someone be able to see what's wrong? (see screen)
Thank you, that helped with the 415 error, but I'm getting empty 400 on template, create case & delete case calls. Could you advise me in what sequence of calls would I need to do a single consumer search? I was hoping this would be simple and I wouldn't have to do 7 calls, creating case checking adding deleting etc., maybe WC1 API is not what we need at all. All we need is to find out what information world-check currently has on particular name which we submit; absolutely no on-going screening, audit-logs or any need to keep records on our searches; and if the matching results are too high, more criteria can be added. How many calls does this require?
Error 400 means that the request which you are sending is invalid.
- Can you please send us the response and the request headers for the failed API calls?
- Can you please share the request payload for the Create case API call?
- For deleting a case, the case has to be archived first and only then can it be deleted.
You do not have to use all the API calls everytime. The API call - 'Top level groups', 'ISO country listing', 'Case template' and few others needs to be sent only once and not everytime you want to screen a case.
Please note - If any changes are made in the group settings, you will have to call the API call - 'Top level group' everytime a change is made in the settings, so that the updated details are fetched and used.
For screening a case, you can use 2 workflows -
1. Synchronous Screening
2. Asynchronous screening
You can find the details of both the screeing workflows in the below link -
In order to use the API call to get the results, you may use the Sync API call which save the case, screens a case and fetches the result using a single API call.
From the above link, on the left section please select the 'World-Check One API sync screening steps' to know the steps of synchronous API call.
Hope this helps.
Can you please try sending the payload in the format provided in the link and see if that helps?
For the Error 404 in case template - You have to use the caseTemplate instead of CaseTemplate in 2 places -
1. datatosign - "groups/group-id/caseTemplate`n"
2. base_URL. - . "/caseTemplate"
Once you have updated to the correct format, you should get 200 OK response code.
Hope this helps.
Hi, thank you very much, changing "CaseTemplate" to "caseTemplate" actually solved the problem; I was also able to do more calls; however API with payload still returns 404; I tried using the format provided in the link. Also variations of using the quotation marks differently before creating signature and after for payload only (still getting 404). Attempts visible in attached code. Maybe I misunderstood what you have kindly suggested?