An authorization issue while calling WorldCheck One API. Response: status 401
Hello,
we try to integrate WorldCheck One API in our System.
Firstly, we download documentation and postmen collection: Thomson-Reuters-World-Check-One-API-documentation.v1.5 and World-Check One API Postman Collection
Secondly, we try to run the test postman collection as shown in https://developers.thomsonreuters.com/customer-and-third-party-screening/world-check-one-api/quick-start. Before this, we enter API Key and API Secret provided for us by Administrator (the screenshot are attached).
We try to execute GET request - SEQ-pre-groups: Get my top-level groups but as a result, we receive the following response: Status: 401 Unauthorized FAIL: Status code is 200 | AssertionError: expected response to having status code 200 but got 401 FAIL: Could retrieve the groupId from response | AssertionError: expected response body to be a valid json but got error No data, empty input at 1:1
Best Answer
-
Thank you for sharing the console logs.
Based on the details, I can see that you are using an empty ‘Content-Type’
in the ‘Request Headers’ which is not required for the GET request. The GET
request headers would only include ‘Date’ and ‘Authorization’. Could you please remove the ‘Content-Type’ from the
Header and then try?Group-id would be obtained when you use the API call – “SEQ-pre-groups: Get my top-level groups”
and the response code is 200 OK (see the format below). Group-id would not be required for the above mentioned request.{
"id" : "Group Id",
"parentId" : "Parent Group
ID","name" : "John Smith",
"hasChildren" : true,
"children" : [ ],
"status" : "ACTIVE"
}
Custom-fields are the fields which you may want to use in
addition while screening a case. The information of the available custom fields
could be obtained when you use the API call – ‘SEQ-pre-group-case-template: Get the case template for a group’
in the below format and would not be required for the API call - 'Get my top-level groups':"customFields" : [ {
"typeId" : "Custom Field Id 1",
"value" : "Reference Id 1234567"
}, {
"typeId" : "Custom Field Id 2",
"value" : "Deal Id 1234567"
} ],
Let me know if this helps.
0
Answers
-
Hi @otkachova,
Can you please share the postman console logs in order to investigate the exact cause for the Error 401?
0 -
@Prabhjyot.Mandla thank you for the assist!
Sure
The log:
Request Headers:
date: "Tue, 28 Aug 2018 13:42:13 GMT"
authorization:"Signature keyId="ffd37d13-36f9-4efc-ab5e-d9ec9dbee778",algorithm="hmac-sha256",headers="(request-target) host date",signature="cGIWyWvC87EzG9UgMCLPRmBzs9A0EDlX2D2OJ145x4Q=""
content-type:""
cache-control:"no-cache"
postman-token:"8d293112-d189-456e-bacd-cd69bd7aced9"
user-agent:"PostmanRuntime/7.2.0"
accept:"*/*"
host:"rms-world-check-one-api-pilot.thomsonreuters.com"
accept-encoding:"gzip, deflate"
Response Headers:
x-application-context:"application"
authorization:"WWW-Authenticate: Signature realm="World-Check One API",algorithm="hmac-sha256",headers="(request-target) host date content-type content-length"
transfer-encoding:"chunked"
date:"Tue, 28 Aug 2018 13:42:12 GMT"
server:""""
Response Body:
I am not sure that we entered all data in the environment. We do not know what exactly needs to be provided in the following parameters:
group-id
custom-field-1
custom-field-2
custom-field-3
The screenshot is attached
0
Categories
- All Categories
- 6 AHS
- 37 Alpha
- 161 App Studio
- 4 Block Chain
- 4 Bot Platform
- 16 Connected Risk APIs
- 47 Data Fusion
- 30 Data Model Discovery
- 608 Datastream
- 1.3K DSS
- 577 Eikon COM
- 4.9K Eikon Data APIs
- 7 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- Trading API
- 2.7K Elektron
- 1.3K EMA
- 236 ETA
- 519 WebSocket API
- 33 FX Venues
- 10 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 20 Messenger Bot
- 2 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 59 Open Calais
- 264 Open PermID
- 39 Entity Search
- 2 Org ID
- PAM
- PAM - Logging
- 8.4K Private Comments
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 20 RDMS
- 1.4K Refinitiv Data Platform
- 367 Refinitiv Data Platform Libraries
- 3 Refinitiv Due Diligence
- LSEG Due Diligence Portal API
- 3 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.1K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 10 World-Check Customer Risk Screener
- 990 World-Check One
- 44 World-Check One Zero Footprint
- 45 Side by Side Integration API
- Test Space
- 3 Thomson One Smart
- 1.2K TR Internal
- Global Hackathon 2015
- 2 Specialists Who Code
- 10 TR Knowledge Graph
- 150 Transactions
- 142 REDI API
- 1.7K TREP APIs
- 4 CAT
- 21 DACS Station
- 117 Open DACS
- 1.1K RFA
- 103 UPA
- 172 TREP Infrastructure
- 224 TRKD
- 886 TRTH
- 5 Velocity Analytics
- 5 Wealth Management Web Services
- 59 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛