Get Result API

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

Request Example:

curl -X POST \
  https://sg-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://api.advance.ai/intl/openapi/identity-risk/idvs-h5/ekyc/v1/get-result
POST (application/json)
https://sg-api.advance.ai/intl/openapi/identity-risk/idvs-h5/ekyc/v1/get-result
POST (application/json)
https://ph-api.advance.ai/intl/openapi/identity-risk/idvs-h5/ekyc/v1/get-result
POST (application/json)
https://th-api.advance.ai/intl/openapi/identity-risk/idvs-h5/ekyc/v1/get-result
POST (application/json)
https://my-api.advance.ai/intl/openapi/identity-risk/idvs-h5/ekyc/v1/get-result
POST (application/json)
https://vn-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

FieldDescription
signatureIdstring, the signatureId of this verification transaction.
overallResultstring, The result code of this verification transaction.
submissionCompletedbool, Indicates whether the frontend data submission is completed.
idvResultstring, The result code of this verification transaction. (will be deprecated, use overallResult instead)
errorCodestring, The fail reason when overallResult is fail
docDetail

object, The document verification result details.
Refer to

DocDetail

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.
nullthe result is still in processing. (but partial results like docDetail may be ready).

errorCode

Response.data.overallResultValueDescription
PASSSUCCESSThe user passed the verification.
FAILID_FORGERY_DETECTEDThe document ( only the front part if the document is two-side) is forgery.
INCOMPLETE(replaced by FAIL when using Document API)NO_SUPPORTED_CARDThe card type detected from the document image is not supported.
CARD_TYPE_MISMATCHThe card type detected from the document image doesn't match with the docType
from the Generate URL API,or submitted the wrong side of the card.
CARD_LOW_QUALITY_IMAGEThe document images are too poor to do verification.
INCOMPLETED_CARDThe card is not completed in the document images.
CARD_INFO_MISMATCHThe front part and the back part of the two-side document do not match with each other.
TOO_MANY_CARDSMore than one cards were detected.
CARD_NOT_FOUNDCan't detect card from the document image.
OCR_NO_RESULTCan't extract ocr result from the docImages
PARAMETER_ERRORthe data submitted by our frontend is not valid. this may indicates a frontend bug.
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.
NO_SUPPORTED_CARD_CUSTOMIZEDThe card type is known but not supported currently. maybe support in the future.
NO_FACE_DETECTEDNo face detected on the front image of the document.
OCR_FIELD_INVALIDOne or more required fields extracted from the document are invalid, incomplete, or do not conform to the expected format/standards
FAILNATIONALITY_COMPLIANCE_FAILEDCategory: document. The nationality shown on the document is not permitted under the merchant's compliance policy. (eg. restricted jurisdictions)

Response Examples

SUCCESS

{
  "code": "SUCCESS",
  "message": "OK",
  "data": {
    "signatureId": "f302f5d2454a85c2",
    "overallResult": "PASS",
    "submissionCompleted": true,
    "idvResult": "PASS",
    "errorCode": "SUCCESS",
    "docDetail": {
      "ocrResult": "PASS",
      "docFrontImage": "https://abc.com/idFrontImage.jpg",
      "docBackImage": "https://abc.com/idBackImage.jpg",
      "docType": {
        "front": "MY-ID-MYKAD",
        "back": "MY-ID-MYKAD"
      },
      "subDocType": {
        "front": "MY-ID-MYKAD",
        "back": "MY-ID-MYKAD"
      },
      "ocrInfo": {
        "front": {
          "gender": "PEREMPUAN",
          "name": "****** ******",
          "address": "****** ****** ****** ******",
          "idNumber": "************",
          "religion": "",
          "birthday": "1977/10/28",
          "citizen": "MYS"
        },
        "back": {
          "idNumber": "************"
        }
      },
      "qualityLabels": {
        "front": {
          "isBlur": false,
          "isDim": false,
          "isExposure": true
        },
        "back": null
      },
      "forgeryLabels": [
        "photocopy"
      ],
      "eventDetails": [
        {
          "event": "FE_DOCUMENT_SCAN",
          "result": "PASS",
          "createTimestmap": 1665993522952
        }
      ]
    },
    "countryCodeIso3": "PHL"
  },
  "extra": null,
  "transactionId": "d3fde1547eeaf226",
  "pricingStrategy": "FREE"
}
{
    "code": "SUCCESS",
    "message": "OK",
    "data": {
      "signatureId":"f302f5d2454a85c2",
      "overallResult":"fail",
      "submissionCompleted": true,
      "idvResult":"fail",
      "errorCode":"NOT_SUPPORTED_CARD",
      "docDetail":  {
        "docResult": null,
        "docFrontImage": null,
        "docBackImage": null,
				"ocrInfo": null,
        "qualityLabels": null,
        "forgeryLabels": null
      },
      "countryCodeIso3": "PHL"
    },
    "extra": null,
    "transactionId": "d3fde1547eeaf226",
    "pricingStrategy": "FREE"
}
{
  "code": "SUCCESS",
  "message": "OK",
  "data": {
    "overallResult": null, // still in processing
    "submissionCompleted": false,
    "idvResult": null, // still in processing
    "errorCode": null,
    "docDetail": {
      "ocrResult": PASS,
      "docFrontImage": "https://abc.com/idFrontImage.jpg",
      "docBackImage": "https://abc.com/idBackImage.jpg",
      "ocrInfo": {
        "front": {
          "birthday": "OCTOBER 28,1977",
          "name": "**************",
          "birthdayParsed": "1977/10/28",
          "idNumber": "09-*******-*"
        },
        "back": null
      },
       "qualityLabels": {
  				"front": null,
  				"back": null
			},
      "forgeryLabels": null, // in processing
      "eventDetails": [
          {
              "event": "FE_DOCUMENT_SCAN",
              "result": "PASS",
              "createTimestmap": 1665993522952
          }
      ]
    },
    "countryCodeIso3": "PHL"
  },
  "extra": null,
  "transactionId": "d3fde1547eeaf226",
  "pricingStrategy": "FREE"
}

SIGNATURE_NOT_EXIST

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

ERROR

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