WORLD CHECK ONE API | V2 | return 404 while calling | POST | cases/{<!-- -->{case-system-id}}/scr...

...eeningRequest
Hi
I am using worldcheck One Api and i am using your collection request SEQ-screen-async: Screen an existing case (asynchronous)
NOTE : i put **** in public and secret key here but in code i use real one.
Method : POST
URL : {{protocol}}{{gateway-host}}{{gateway-url}}cases/{{case-system-id}}/screeningRequest
DATA: none
Problem
when i request using postman its working fine and return 201 status
but when i call this api from nodejs code it return 404
Here is the code
let caseSystemId = "5jb6a6c1cjda1hyqpz0yylxrf";
let worldCheckBaseUrl = "https://api-worldcheck.refinitiv.com";
let worldCheckGatewayHost = "api-worldcheck.refinitiv.com";
let worldCheckGatewayVersion = "/v2/";
let requestPath = `cases/${caseSystemId}/screeningRequest`;
let getCompleteUrl = worldCheckBaseUrl+worldCheckGatewayVersion+requestPath;
var date = new Date().toGMTString();
var dataToSign = "(request-target): post " + worldCheckGatewayVersion + `${requestPath}\n` +
"host: " + worldCheckGatewayHost + "\n" +
"date: " + date;
console.log("dataToSign",dataToSign)
let secret = "*************";
var hash = CryptoJS.HmacSHA256(dataToSign,secret);
var hmac = hash.toString(CryptoJS.enc.Base64)
var worldCheckPublickey = "**************";
var authorisation = "Signature keyId=\"" + worldCheckPublickey + "\",algorithm=\"hmac-sha256\",headers=\"(request-target) host date" + attachedHost + "\",signature=\"" + hmac + "\"";
So the data to sign request output is
(request-target): post /v2/cases/5jb6a6c1cjda1hyqpz0yylxrf/screeningRequest
host: api-worldcheck.refinitiv.com
date: Fri, 01 Sep 2023 10:04:38 GMT
and authorization signature output
Signature keyId="***********",algorithm="hmac-sha256",headers="(request-target) host date",signature="8k2F4Z/gluAspNarnd/sPEzTDwvlckdMYTPIqfe4iCY="
Kindly help to sort this issue
Thanks
Best Answer
-
Hi Raksina ,
Yes this has been resolved.
Regards,
Hetal Mandalia
0
Answers
-
Hi @Hetal Mandalia,
Thanks for reaching out to us & if you can share the below details which will be helpful for us to investigate further.
Can you please share your complete code sample if not here send it to my email anisetti.saikiranreddy@lseg.com.
Moreover, is it that you are receiving 404 error responses for every case that you are trying to rescreen.
Thanks
0 -
@anisetti.saikiranreddy01Hi
Thanks for the update kindly check email i email you the sample code file please review and help us to solve this issue
Thanks0 -
@Hetal Mandalia and @anisetti.saikiranreddy01 ,Hi
Could you please let me know if this has been resolved yet?
Thanks,
AHS0 -
@raksina.samasiri,Hi
We have addressed this over the email and shared the code samples for their reference.
Thanks
0
Categories
- All Categories
- 3 Polls
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 685 Datastream
- 1.4K DSS
- 615 Eikon COM
- 5.2K Eikon Data APIs
- 10 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 252 ETA
- 556 WebSocket API
- 38 FX Venues
- 14 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 23 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 275 Open PermID
- 44 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 22 RDMS
- 1.9K Refinitiv Data Platform
- 652 Refinitiv Data Platform Libraries
- 4 LSEG Due Diligence
- LSEG Due Diligence Portal API
- 4 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.2K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 12 World-Check Customer Risk Screener
- 1K World-Check One
- 46 World-Check One Zero Footprint
- 45 Side by Side Integration API
- 2 Test Space
- 3 Thomson One Smart
- 10 TR Knowledge Graph
- 151 Transactions
- 143 REDI API
- 1.8K TREP APIs
- 4 CAT
- 27 DACS Station
- 121 Open DACS
- 1.1K RFA
- 104 UPA
- 193 TREP Infrastructure
- 228 TRKD
- 917 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 90 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 46 中文论坛