I am trying to integrate World Check One Screening Request, I am receiving proper responses on the postm
an, but when I hit from my application, I receive 500 Internal Server Error.
Authorisation Header:
Signature keyId="18XXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",algorithm="hmac-sha256",headers="(request-target) host date content-type content-length",signature="nN45v5sPz4SRWo1lNhzpwvfYQOsrba0nhu/Uf3XIBoA="
Request Data:
{"secondaryFields":[{"value":null,"typeId":"SFCT_2","dateTimeValue":"2010-05-18"},{"value":"Kuwait","typeId":"SFCT_3","dateTimeValue":null}],"providerTypes":["WATCHLIST"],"name":"Shareholder One","groupId":"0a3687cf-6855-18b8-9a1f-a88d00000781","entityType":"INDIVIDUAL"}
Data To Sign (Fed to HMAC-SHA256 generator):
(request-target): post /v1/cases/screeningRequest
host: zfs-world-check-one-api-pilot.thomsonreuters.com
date: Wed, May 22 2019 16:35:24 GMT
content-type: application/json
content-length: 271
Response:
{"message":null}
If I use the same request body in postman I receive a proper 200 response, I guess there is some issue with my signature, but not sure why I am getting a 500 rather than a 401.
I checked the response Headers and see
x-amzn-ErrorType value: AuthorizerConfigurationException.
Any help is appreciated.