My algorithm of action
1. creating a new case POST /cases
2. calling screening POST /cases/{caseSystemId}/screeningRequest
3. Getting results GET /cases/{caseSystemId}/results
All results contain an empty list of secondary field results. I need the secondary fields to find out the sex, date of birth, etc.
What am I doing wrong?
I think you are not passing the secondary identifiers in your request payload in step 1 of your algorithm. If you do not pass any secondary identifiers, you will receive none back in your response payload.
Can you please try the below payload and see if it returns back the secondary identifier match.
{"groupId": "{ {Enter your group-id}}", "entityType": "INDIVIDUAL", "providerTypes": [ "WATCHLIST" ], "name": "Putin", "customFields": [], "secondaryFields": [{ "typeId": "SFCT_1", "value": "MALE"}, { "typeId": "SFCT_2", "dateTimeValue": "2016-10-12" }, {"typeId": "SFCT_3", "value": "USA" }, { "typeId": "SFCT_4","value": "AUS" }, { "typeId": "SFCT_5", "value": "ABW" } ]}
Please use Jsonlint.com to format the JSON payload mentioned here and you should not get a 401 error.
Kindly let us know if this works.
It worked, thank you! It's a little strange, because you have to specify some values to get the values :)