-
Notifications
You must be signed in to change notification settings - Fork 16
User
Oleg Baturov edited this page Jul 4, 2018
·
18 revisions
Welcome to user api wiki!
api prefix: /user
Get access token by email
Get user info from token
Update user info from token
Update user idendity document from token
Update user selfie document from token
POST /initverify
Name | Type | Mandatory | Default | Description |
---|---|---|---|---|
apiKey | String | Yes | undefined | api scret key |
String | Yes | undefined | user email |
- for successed case
{
status: 200,
msg: "success",
data: {
accessToken,
callbackUrl
}
}
- for failed case
{ status: 400, msg: err_msg, data: err }
GET /info/:token
- for successed case
{
status: 200,
msg: 'sccuess',
data: {
email, token, approvalStatus, approvalDescriptin
}
}
- for failed case
{ status: 400, msg: err_msg, data: err }
POST /update
Name | Type | Mandatory | Default | Description |
---|---|---|---|---|
token | String | Yes | undefined | token |
firstname | String | No | undefined | user firstname. If undefined, no change |
lastname | String | No | undefined | user lastname. If undefined, no change |
dob | String | No | undefined | user dob. If undefined, no change |
documentExpireDate | String | No | undefined | documentExpireDate. If undefined, no change |
nationalityCountry | String | No | undefined | nationalityCountry. If undefined, no change |
documentId | String | No | undefined | documentId. If undefined, no change |
phone | String | No | undefined | phone. If undefined, no change |
residenceCountry | String | No | undefined | residenceCountry. If undefined, no change |
residenceAddress | String | No | undefined | residenceAddress. If undefined, no change |
adminContact | String | No | undefined | adminContact. If undefined, no change |
adminContact | String | No | undefined | adminContact. If undefined, no change |
adminContact | String | No | undefined | adminContact. If undefined, no change |
adminMessage | String | No | undefined | adminMessage. If undefined, no change |
backgroundCheckId | String | No | undefined | backgroundCheckId. If undefined, no change |
- for successed case
{ status: 200, msg: 'sccuess', data: userInfo }
- for failed case
{ status: 400, msg: err_msg, data: err }
POST /update/identity
Name | Type | Mandatory | Default | Description |
---|---|---|---|---|
token | String | Yes | undefined | token |
documentType | String | Yes | undefined | document type. { PASSPORT, IDCARD } |
identityDocument | String | Yes | undefined | base64_image raw data |
- for successed case
{ status: 200, msg: 'sccuess', data: userInfo }
- for failed case
{ status: 400, msg: err_msg, data: err }
POST /update/selfie
Name | Type | Mandatory | Default | Description |
---|---|---|---|---|
token | String | Yes | undefined | token |
selfie | String | Yes | undefined | base64_image raw data |
- for successed case
{ status: 200, msg: 'sccuess', data: userInfo }
- for failed case
{ status: 400, msg: err_msg, data: err }