I am working on the integration World Check One API call into the system. I had tried to use Postman with provided WC1 Pilot environment to perform same API call and it able to create the case. I had followed the API sample for c# and it still gives me 401 unauthorized response.
I am here providing code which is being generated using the postman and the same being generated from my code for the same timestamp.
c# hmac
ymqgJIb9H4ETpJiu/T1MsdyBXD+n6qL1/NUVQFBVufc=
c# datatosign
(request-target): post /v1/cases
host: rms-world-check-one-api-pilot.thomsonreuters.com
date: Sun, 12 Aug 2018 07:51:57 GMT
content-type: application/json
content-length: 122
{"entityType":"INDIVIDUAL","groupId":"0a3687d0-64a6-1d01-9945-119200000daf","providerTypes":["WATCHLIST"],"name":"Bashar"}
c# authorisation
Signature keyId="xxxxxxxxxxxxxx",algorithm="hmac-sha256",headers="(request-target) host date content-type content-length",signature="ymqgJIb9H4ETpJiu/T1MsdyBXD+n6qL1/NUVQFBVufc="
-------------------
POSTMAN
var settings = {
"async": true,
"crossDomain": true,
"url": "https://rms-world-check-one-api-pilot.thomsonreuters.com/v1/groups/0a3687d0-64a6-1d01-9945-119200000daf",
"method": "GET",
"headers": {
"Date": "Sun, 12 Aug 2018 07:51:57 GMT",
"Authorization": "Signature keyId=\\\"xxxxxxxxxxx\\\",algorithm=\\\"hmac-sha256\\\",headers=\\\"(request-target) host date\\\",signature=\\\"ZwkG6dSdRE9EZS8N6iU7AbCIyuQfRhA15AOund+LaBg=\\\"",
"Cache-Control": "no-cache",
"Postman-Token": "d7a01eda-e360-4a39-9d8d-c298a2ed4d5b"
}
}