IDV API
Call this API to do a ID Verification without AAI's Frontend.
Request Example:
curl -X POST \
https://ph-api.advance.ai/intl/openapi/identity-risk/idvs-h5/ekyc/v1/api/idv \
-H 'Content-Type: application/json' \
-H 'X-ACCESS-TOKEN:{Your Access Token}' \
-d '{
"callbackUrl": "https://www.example.com/callback",
"bizId": "7ac66c0f148de9519b8bd264312c4d64",
"userId":"8e44f0089b076e18a718eb9ca3d94674",
"region":"THA",
"docType": "TH-ID-N",
"frontImageBase64":"YWJjZGVmZw==", // use real image base64 string
"faceImageBase64":"YWJjZGVmZw==", // use real image base64 string
"bizCode":"WhiteCard"
}'
Request Url
https://sg-api.advance.ai/intl/openapi/identity-risk/idvs-h5/ekyc/v1/api/idv
POST (application/json)
https://api.advance.ai/intl/openapi/identity-risk/idvs-h5/ekyc/v1/api/idv
POST (application/json)
https://th-api.advance.ai/intl/openapi/identity-risk/idvs-h5/ekyc/v1/api/idv
POST (application/json)
https://vn-api.advance.ai/intl/openapi/identity-risk/idvs-h5/ekyc/v1/api/idv
POST (application/json)
Request Header Parameters
Parameter | Description |
---|---|
X-ACCESS-TOKEN | string Please use Token Authentication API to get your access token |
Request Parameters
Parameter | Description |
---|---|
callbackUrl |
|
bizId |
|
userId |
|
region |
|
docType |
|
frontImageBase64 |
|
frontImageUrl |
|
backImageBase64 |
|
backImageUrl |
|
faceImageBase64 |
|
faceImageUrl |
|
bizCode |
|
Response Description
the response data structure is similar with Get Result API's Response.
Parameter | Description |
---|---|
code | Response's Status Code |
transactionId | The request id, the max length is 64 |
pricingStrategy | Deprecated , Always return FREE |
message | Status Code Explanation |
data | object : the business result |
extra | Extra response info (Exception Message) |
Response.code
Status Code | Message |
---|---|
SUCCESS | OK |
PARAMETER_ERROR | Parameter error, please check you input. |
Parameter should not be empty | |
Region is wrong | |
Invalid image format, image format should be one of jpeg/jpg/png, and request content type should be image/jpeg or image/png | |
Invalid image size, max image size should be less than 2M, and image dimension should be between 256 * 256 and 4096 * 4096 | |
The image download has exceeded 3 seconds. Please check the network and operate again. | |
ERROR | Server error. |
Response.data
Field | Description |
---|---|
signatureId |
|
Response Examples
SUCCESS
{
"code": "SUCCESS",
"message": "OK",
"data": {
"signatureId":"f302f5d2454a85c2",
},
"extra": null,
"transactionId": "d3fde1547eeaf226",
"pricingStrategy": "FREE"
}
PARAMETER_ERROR
{
"code":"PARAMETER\_ERROR",
"message":"Region is wrong",
"data":null,
"extra":null,
"transactionId":"b6d722f7e9f553ae",
"pricingStrategy":"FREE"
}
Updated 4 days ago