Documentation

Get Result API

After the Verification process is done on the user side, you can request the Verification result by calling the Get Result API.

Request Example:

curl -X POST \
  https://ph-api.advance.ai/intl/openapi/identity-risk/idvs-h5/ekyc/v1/get-result \
  -H 'Content-Type: application/json' \
  -H 'X-ACCESS-TOKEN:{Your Access Token}' \
  -d '{"signatureId": "f302f5d2454a85c2"}'

Request Url

https://sg-api.advance.ai/intl/openapi/identity-risk/idvs-h5/ekyc/v1/get-result
POST (application/json)

Request Header Parameters

ParameterDescription
X-ACCESS-TOKENstring Please use Token Authentication API to get your access token

Request Parameters

ParameterDescription
signatureIdstring SignatureId which can use it to get the Verification result

Response Description

ParameterDescription
codeResponse's Status Code
transactionIdThe request id, the max length is 64
pricingStrategyDeprecated, Always return FREE
messageStatus Code Explanation
dataobject : the business result of Verification
extraExtra response info (Exception Message)

Response.code

Status CodeMessage
SUCCESSOK
SIGNATURE_NOT_EXISTThis signatureId is not exist.
ERRORServer error.

Response.data

Field

Description

signatureId

string, the signatureId of this verification transaction.

overallResult

string, The result code of this verification transaction.

idvResult

string, The result code of this verification transaction. (will be deprecated, use overallResult instead)

errorCode

string, The fail reason when overallResult is fail or INCOMPLETE.

docDatabaseDetail

object, The document verification result details. Refer to

DocDatabaseDetail

faceDetail

object, The face verification result details. Refer to

FaceDetail

inputParameters

object, The request details from

Generate URL API's input. Refer to InputParameters

countryCodeIso3

string, the region in the

Generate URL API

's input.

overallResult

overallResult is the result code of the verification

ValueDescription
PASSthe user passed the verification check.
FAILthe user failed the verification check.
INCOMPLETEthe user gave up in the middle of the verification check, or the user timeouts.

errorCode

Response.data.overallResultValueDescription
PASSSUCCESSThe user passed the verification.
FAILBVN_NOT_EXISTthe BVN inputed by the user doesn't exists.
BVN_SUSPENDThe ID has been restricted from use by the official institution. The user should go to the relevant department to handle the recover procedures.
NUMBER_NOT_EXISTThe number inputed by user doesn't exists.
NAME_NOT_MATCHName inputed by user is not match.
LIVENESS_ATTACKThe liveness check failed.
SIMILARITY_FAILEDThe liveness face and the face belong to the number are not considered as the same person.
STRATEGY_HITSecurity policy hit. (Deprecated)
RISK_STRATEGY_HITThe transaction has triggered risk prevention strategies that are used to reject attacks.
INCOMPLETEBVN_INVALID_FORMATThe BVN number inputed by user is in wrong format.
INVALID_FORMATThe Number or other fields inputed by user is in wrong format.
PARAMETER_ERRORthe data submitted by our frontend is not valid. this may indicates a frontend bug.
BVN_DATASOURCE_UNSTABLEbvn datasource is unstable to complete the bvn verification.
DATASOURCE_UNSTABLEdatasource is unstable to complete the number verification.
USER_TIMEOUTUser did not complete the operation within the specified time(1 hour)
ERRORError during processing in our backend. this may indicates a backend bug.
FACE_QUALITY_TOO_POORFace quality too poor for face comparison or liveness.

Response Examples

SUCCESS

{
  "code": "SUCCESS",
  "message": "OK",
  "data": {
    "signatureId": "f302f5d2454a85c2",
    "overallResult": "PASS",
    "idvResult": "PASS",
    "errorCode": "SUCCESS",
    "docDatabaseDetail": {
      "bvn": "22********4",
      "firstName": "T****E",
      "middleName": "C****T",
      "lastName": "I***A",
      "gender": "FEMALE",
      "birthday": "1994/07/13",
      "phoneNumber": "081******05",
      "phoneNumber2": ""
    },
    "faceDetail": {
      "faceResult": "PASS",
      "faceImageFar": "https://abc.com/faceImageFar.jpg",
      "faceImageNear": "https://abc.com/faceImageNear.jpg",
      "auditImageUrl": "https://abc.com/auditImage.zip",
      "faceLivenessScore": 99,
      "faceSimilarityScore": 82,
      "eventDetails": [
        {
          "event": "FE_DOCUMENT_SCAN",
          "result": "PASS",
          "createTimestmap": 1665993522952
        }
      ]
    },
    "inputParameters": {
      "returnUrl": "https://www.example.com",
      "failReturnUrl": "https://www.example.com/fail",
      "callbackUrl": "https://www.example.com/callback",
      "bizId": "7ac66c0f148de9519b8bd264312c4d64",
      "userId": "8e44f0089b076e18a718eb9ca3d94674",
      "region": "NGA",
      "numberType": "BVN",
      "language": "en-US",
      "prefersColorScheme": "light",
      "ignoreFailWhenJump": false,
      "bizCode": "WhiteCard"
    },
    "countryCodeIso3":"MYS"
  },
  "extra": null,
  "transactionId": "d3fde1547eeaf226"
}
{
  "code": "SUCCESS",
  "message": "OK",
  "data": {
    "signatureId": "f302f5d2454a85c2",
    "overallResult": "FAIL",
    "idvResult": "FAIL",
    "errorCode": "LIVENESS_ATTACK",
    "docDatabaseDetail": {
      "bvn": "22********4",
      "firstName": "T****E",
      "middleName": "C****T",
      "lastName": "I***A",
      "gender": "FEMALE",
      "birthday": "1994/07/13",
      "phoneNumber": "081******05",
      "phoneNumber2": ""
    },
    "faceDetail": {
      "faceResult": "FAIL",
      "faceImageFar": "https://abc.com/faceImageFar.jpg",
      "faceImageNear": "https://abc.com/faceImageNear.jpg",
      "auditImageUrl": "https://abc.com/auditImage.zip",
      "faceLivenessScore": 0,
      "faceSimilarityScore": null,
      "eventDetails": [
        {
          "event": "FE_DOCUMENT_SCAN",
          "result": "PASS",
          "createTimestmap": 1665993522952
        }
      ]
    },
    "inputParameters": {
      "returnUrl": "https://www.example.com",
      "failReturnUrl": "https://www.example.com/fail",
      "callbackUrl": "https://www.example.com/callback",
      "bizId": "7ac66c0f148de9519b8bd264312c4d64",
      "userId": "8e44f0089b076e18a718eb9ca3d94674",
      "region": "NGA",
      "numberType": "BVN",
      "language": "en-US",
      "prefersColorScheme": "light",
      "ignoreFailWhenJump": false,
      "bizCode": "WhiteCard"
    },
    "countryCodeIso3":"MYS"
  },
  "extra": null,
  "transactionId": "d3fde1547eeaf226"
}

NGN BVN/NIN

{
  "code": "SUCCESS",
  "message": "OK",
  "data": {
    "signatureId": "f302f5d2454a85c2",
    "overallResult": "FAIL",
    "idvResult": "FAIL",
    "errorCode": "BVN_NOT_EXIST",
    "docDatabaseDetail": null,
    "faceDetail": null,
    "inputParameters": {
      "returnUrl": "https://www.example.com",
      "failReturnUrl": "https://www.example.com/fail",
      "callbackUrl": "https://www.example.com/callback",
      "bizId": "7ac66c0f148de9519b8bd264312c4d64",
      "userId": "8e44f0089b076e18a718eb9ca3d94674",
      "region": "NGA",
      "numberType": "BVN",
      "language": "en-US",
      "prefersColorScheme": "light",
      "ignoreFailWhenJump": false,
      "bizCode": "WhiteCard"
    },
    "countryCodeIso3":"MYS"
  },
  "extra": null,
  "transactionId": "d3fde1547eeaf226"
}
{
  "code": "SUCCESS",
  "message": "OK",
  "data": {
    "signatureId": "f302f5d2454a85c2",
    "overallResult": "INCOMPLETE",
    "idvResult": "INCOMPLETE",
    "errorCode": "BVN_INVALID_FORMAT",
    "docDatabaseDetail": null,
    "faceDetail": null,
    "inputParameters": {
      "returnUrl": "https://www.example.com",
      "failReturnUrl": "https://www.example.com/fail",
      "callbackUrl": "https://www.example.com/callback",
      "bizId": "7ac66c0f148de9519b8bd264312c4d64",
      "userId": "8e44f0089b076e18a718eb9ca3d94674",
      "region": "NGA",
      "numberType": "BVN",
      "language": "en-US",
      "prefersColorScheme": "light",
      "ignoreFailWhenJump": false,
      "bizCode": "WhiteCard"
    },
    "countryCodeIso3":"MYS"
  },
  "extra": null,
  "transactionId": "d3fde1547eeaf226"
}

IDN NIK

{
  "code": "SUCCESS",
  "message": "OK",
  "data": {
    "signatureId": "ab69**********0e",
    "overallResult": "FAIL",
    "idvResult": "FAIL",
    "errorCode": "NAME_NOT_MATCH",
    "faceDetail": {
      "faceResult": "FAIL",
      "faceImageFar": "https://stg-guardian-cv.oss-ap-southeast-5.aliyuncs.com/REDACTED",
      "faceImageNear": "https://stg-guardian-cv.oss-ap-southeast-5.aliyuncs.com/REDACTED",
      "auditImageUrl": null,
      "faceLivenessScore": null,
      "faceSimilarityScore": null,
      "eventDetails": [],
      "faceImageFarTime": 1756375677000,
      "faceImageNearTime": 1756375677000,
      "livenessAttackType": null,
      "faceImage": null,
      "faceImageTimestamp": null,
      "livenessType": "DISTANT_NEAR",
      "livenessFlowCategory": "DISTANT_CLOSE"
    },
    "docDetail": {
      "ocrResult": null,
      "docFrontImage": null,
      "docBackImage": null,
      "originDocType": null,
      "docType": null,
      "subDocType": null,
      "ocrInfo": null,
      "qualityIsLow": null,
      "qualityLabels": null,
      "forgeryLabels": null,
      "eventDetails": [],
      "docTypeDetails": {
        "front": null,
        "back": null
      },
      "docFrontImageTime": null,
      "docBackImageTime": null
    },
    "docDatabaseDetail": {
      "bvn": null,
      "nin": null,
      "numberValue": "************0005",
      "numberTypeInfo": {
        "numberType": "ID_NIK",
        "region": "IDN"
      },
      "firstName": null,
      "middleName": null,
      "lastName": null,
      "fullName": "R**** I**********",
      "gender": "FEMALE",
      "birthday": "1976/**/**",
      "phoneNumber": "+62*******4455",
      "phoneNumber2": null,
      "email": "w*****c@***.com",
      "verification": {
        "numberValue": "pass",
        "fullName": "fail",
        "dob": "fail",
        "face": "fail"
      }
    },
    "inputParameters": {
      "bizId": "02f1**********83",
      "returnUrl": "https://www.baidu.com/",
      "failReturnUrl": "https://m.weibo.cn/",
      "callbackUrl": null,
      "userId": "****3456",
      "region": "IDN",
      "language": null,
      "prefersColorScheme": "light",
      "numberType": "NIK",
      "ignoreFailWhenJump": false,
      "bizCode": null,
      "iframeEnabled": false,
      "livenessType": "DISTANT_NEAR",
      "productLevel": null,
      "docType": null
    },
    "countryCodeIso3": "IDN",
    "productLevel": "CUSTOMIZED"
  },
  "extra": null,
  "pricingStrategy": "FREE"
}
{
  "code": "SUCCESS",
  "message": "OK",
  "data": {
    "signatureId": "fd51**********d6",
    "overallResult": "INCOMPLETE",
    "idvResult": "INCOMPLETE",
    "errorCode": "PARAMETER_ERROR",
    "faceDetail": {
      "faceResult": "INCOMPLETE",
      "faceImageFar": "https://stg-guardian-cv.oss-ap-southeast-5.aliyuncs.com/REDACTED",
      "faceImageNear": "https://stg-guardian-cv.oss-ap-southeast-5.aliyuncs.com/REDACTED",
      "auditImageUrl": null,
      "faceLivenessScore": null,
      "faceSimilarityScore": null,
      "eventDetails": [],
      "faceImageFarTime": 1756375667000,
      "faceImageNearTime": 1756375667000,
      "livenessAttackType": null,
      "faceImage": null,
      "faceImageTimestamp": null,
      "livenessType": "DISTANT_NEAR",
      "livenessFlowCategory": "DISTANT_CLOSE"
    },
    "docDetail": {
      "ocrResult": null,
      "docFrontImage": null,
      "docBackImage": null,
      "originDocType": null,
      "docType": null,
      "subDocType": null,
      "ocrInfo": null,
      "qualityIsLow": null,
      "qualityLabels": null,
      "forgeryLabels": null,
      "eventDetails": [],
      "docTypeDetails": {
        "front": null,
        "back": null
      },
      "docFrontImageTime": null,
      "docBackImageTime": null
    },
    "docDatabaseDetail": {
      "bvn": null,
      "nin": null,
      "numberValue": "************0005",
      "numberTypeInfo": {
        "numberType": "ID_NIK",
        "region": "IDN"
      },
      "firstName": null,
      "middleName": null,
      "lastName": null,
      "fullName": "R**** I******",
      "gender": null,
      "birthday": null,
      "phoneNumber": "+62*******4455",
      "phoneNumber2": null,
      "email": "w*****c@***.com",
      "verification": {
        "numberValue": null,
        "fullName": null,
        "dob": null,
        "face": null
      }
    },
    "inputParameters": {
      "bizId": "02f1**********83",
      "returnUrl": "https://www.baidu.com/",
      "failReturnUrl": "https://m.weibo.cn/",
      "callbackUrl": null,
      "userId": "****3456",
      "region": "IDN",
      "language": null,
      "prefersColorScheme": "light",
      "numberType": "NIK",
      "ignoreFailWhenJump": false,
      "bizCode": null,
      "iframeEnabled": false,
      "livenessType": "DISTANT_NEAR",
      "productLevel": null,
      "docType": null
    },
    "countryCodeIso3": "IDN",
    "productLevel": "CUSTOMIZED"
  },
  "extra": null,
  "pricingStrategy": "FREE"
}
{
  "code": "SUCCESS",
  "message": "OK",
  "data": {
    "signatureId": "a32e**********ee",
    "overallResult": "PASS",
    "idvResult": "PASS",
    "errorCode": "SUCCESS",
    "faceDetail": {
      "faceResult": "PASS",
      "faceImageFar": "https://stg-guardian-cv.oss-ap-southeast-5.aliyuncs.com/REDACTED",
      "faceImageNear": "https://stg-guardian-cv.oss-ap-southeast-5.aliyuncs.com/REDACTED",
      "auditImageUrl": null,
      "faceLivenessScore": 100.0,
      "faceSimilarityScore": null,
      "eventDetails": [],
      "faceImageFarTime": 1756375621000,
      "faceImageNearTime": 1756375621000,
      "livenessAttackType": null,
      "faceImage": null,
      "faceImageTimestamp": null,
      "livenessType": "DISTANT_NEAR",
      "livenessFlowCategory": "DISTANT_CLOSE"
    },
    "docDetail": {
      "ocrResult": null,
      "docFrontImage": null,
      "docBackImage": null,
      "originDocType": null,
      "docType": null,
      "subDocType": null,
      "ocrInfo": null,
      "qualityIsLow": null,
      "qualityLabels": null,
      "forgeryLabels": null,
      "eventDetails": [],
      "docTypeDetails": { "front": null, "back": null },
      "docFrontImageTime": null,
      "docBackImageTime": null
    },
    "docDatabaseDetail": {
      "bvn": null,
      "nin": null,
      "numberValue": "************0005",
      "numberTypeInfo": { "numberType": "ID_NIK", "region": "IDN" },
      "firstName": null,
      "middleName": null,
      "lastName": null,
      "fullName": "R**** I******",
      "gender": "FEMALE",
      "birthday": "1976/**/**",
      "phoneNumber": "+62*******4455",
      "phoneNumber2": null,
      "email": "w*****c@***.com",
      "verification": { "numberValue": "pass", "fullName": "pass", "dob": "fail", "face": "pass" }
    },
    "inputParameters": {
      "bizId": "02f1**********83",
      "returnUrl": "https://www.baidu.com/",
      "failReturnUrl": "https://m.weibo.cn/",
      "callbackUrl": null,
      "userId": "****3456",
      "region": "IDN",
      "language": null,
      "prefersColorScheme": "light",
      "numberType": "NIK",
      "ignoreFailWhenJump": false,
      "bizCode": null,
      "iframeEnabled": false,
      "livenessType": "DISTANT_NEAR",
      "productLevel": null,
      "docType": null
    },
    "countryCodeIso3": "IDN",
    "productLevel": "CUSTOMIZED"
  },
  "extra": null,
  "pricingStrategy": "FREE"
}

SIGNATURE_NOT_EXIST

{
    "code":"SIGNATURE_NOT_EXIST",
    "message":"This signatureId is not exist",
    "data":null,
    "extra":null,
    "transactionId":"b6d722f7e9f553ae"
}

ERROR

{
    "code":"ERROR",
    "message":"Server error",
    "data":null,
    "extra":null,
    "transactionId":"1deae5a13ef2bd5e"
}