How can I look up a specific user's data?
Note: The user ID set in the PartnerParams JSON must be unique. It is used to connect future jobs to the correct user. Using this user ID you are able to check the state of that user in our system and retrieve a list of the outcomes of actions they have taken in our system.
This is done by making a call to:
POST https://[env].smileidentity.com/api/v2/partner/enrollee/info
Where [env] is either "portal" or "prod"
With a JSON body shown below:
1
{
2
'user_id': '<Put User ID here>',
3
'partner_id': '<Put your partner ID here>',
4
'timestamp': <Put the timestamp received from generate_sec_key() call here>,
5
'sec_key': '<Put sec_key received from generate_sec_key() call here>',
6
'environment': '<test | production>'
7
}
Copied!
Example response:
1
{
2
"enrolled_user": {
3
"complete": true,
4
"allow_new_enroll": false,
5
"inactive": false,
6
"deleted": false,
7
"provisional": false,
8
"pending": false
9
},
10
"history": [
11
{
12
"created_at": "2019-07-12T18:13:50.586Z",
13
"partner_params": {
14
"job_id": "1180ad5b-e2fa-4a26-b3c2-de3872b4a438",
15
"user_id": "49435266-4d92-45fc-93ec-935628f79d84",
16
"job_type": 2
17
},
18
"job_id": "0000008081",
19
"result_code": "1220",
20
"result_message": "Authenticated",
21
"id_check": null
22
},
23
{
24
"created_at": "2019-07-12T18:13:50.586Z",
25
"partner_params": {
26
"job_id": "3905ad5b-e2fa-4a26-b3c2-de3872b5bce5",
27
"user_id": "49435266-4d92-45fc-93ec-935628f79d84",
28
"job_type": 5
29
},
30
"job_id": "0000008080",
31
"result_code": "1012",
32
"result_message": "ID Number Validated",
33
"id_check": {
34
"name": "SOME PERSON",
35
"id_number": "12345678901",
36
"country": "NG",
37
"id_type": "BVN",
38
"dob": "1996-01-02",
39
"expiration_date": "Not Available",
40
"photo": 'base64 string',
41
"address": "Not Available",
42
"gender": "Male",
43
"phone_number": "Not Available",
44
"result_code": "1012",
45
"result_text": "ID Number Validated",
46
"full_data": {
47
// json content varies by id type and country
48
}
49
}
50
},
51
{
52
"created_at": "2019-07-10T18:13:33.011Z",
53
"partner_params": {
54
"job_id": "0f4b0017-6eba-4135-98b0-0f24dc6db0ab",
55
"user_id": "49435266-4d92-45fc-93ec-935628f79d84",
56
"job_type": 4
57
},
58
"job_id": "0000008079",
59
"result_code": "0840",
60
"result_message": "Enroll User",
61
"id_check": null
62
}
63
]
64
}
Copied!
Last modified 6mo ago
Copy link