-
Notifications
You must be signed in to change notification settings - Fork 16
User
Oleg Baturov edited this page Jul 5, 2018
·
18 revisions
Welcome to user api wiki!
api prefix: /user
init kyc
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 /gentoken
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: {
token,
frontendUrl,
passportInfoUrl,
statusInfoUrl,
baseUrl
}
}
- for failed case
{ status: 400, msg: err_msg, data: err }
POST /gentoken
Name | Type | Mandatory | Default | Description |
---|---|---|---|---|
String | Yes | undefined | user email |
- for successed case
{
status: 200,
msg: "success",
data: {
email,
token,
approvalStatus: user.approvalStatus,
approvalDescription: user.approvalDescription
},
}
- 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 }