Document API

Call this API to do a Document Verification without AAI's Frontend.

Request Example:

curl -X POST \
  https://ph-api.advance.ai/intl/openapi/identity-risk/idvs-h5/ekyc/v1/api/document \
  -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",
"solutionCode": "05",
"frontImageBase64":"YWJjZGVmZw==", // use real image base64 string
"bizCode":"WhiteCard"
}'

Request Url

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

Request Header Parameters

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

Request Parameters

ParameterDescription
callbackUrlstring [Optional] The target URL to notify the caller after the H5 Identity Verification finished.Max Length 2048 characters.
Refer to Callback Notification.
bizIdstring The unique business id to identify the business transaction that triggered this Identity Verification processing, such as order id.
userIdstring[Optional] The unique userId to identify the user who is performing the Identity Verification.
regionstring The region of the service support.
Refer to ISO ALPHA-3 Country Code.
solutionCodestring, [Optional] default to "05".
Refer to solutionCode.
docTypestring refer to Region and DocType.
frontImageBase64string
The front image of the document.
Please provide either frontImageBase64 or frontImageUrl.
Refer to Image Requirements.
frontImageUrlstring
The front image of the document.
Should be valid for at least 1 hour.
Please provide either frontImageBase64 or frontImageUrl.
Refer to Image Requirements .
backImageBase64string
The back image of the document.
[Required] when the docType is two-sides.
Please provide either backImageBase64 or backImageUrl.
Refer to Image Requirements .
backImageUrlstring
The back image of the document.
Should be valid for at least 1 hour.
Please provide either backImageBase64 or backImageUrl.
Refer to Image Requirements .
bizCodestring [Optional ] The business type of the user. max size of the length is 32. only support characters a-zA-z0-9

solutionCode

the solutionCode determine the product form of the Identity Verification, please choose the product form that suits your needs.

Supported ValuesProduct Form
05DOCUMENT(API)

Region and DocType

Region (Code)Country & RegionDocType (Input)SubDocType (output only)Document NameHas Back (Two Sides)
ABWArubaAW-PP-NAW-PP-NPassportNo
AFGAfghanistanAF-PP-NAF-PP-NPassportNo
AGOAngolaAO-PP-NAO-PP-NPassportNo
AIAAnguillaAI-PP-NAI-PP-NPassportNo
ALBAlbaniaAL-PP-NAL-PP-NPassportNo
ANDAndorraAD-PP-NAD-PP-NPassportNo
AREUnited Arab EmiratesAE-PP-NAE-PP-NPassportNo
ARGArgentinaAR-PP-NAR-PP-NPassportNo
ARMArmeniaAM-PP-NAM-PP-NPassportNo
AM-ID-TPCAM-ID-TPCNational IDNo
ATGAntigua and BarbudaAG-PP-NAG-PP-NPassportNo
AUSAustraliaAU-PP-NAU-PP-NPassportNo
AUTAustriaAT-PP-NAT-PP-NPassportNo
AZEAzerbaijanAZ-PP-NAZ-PP-NPassportNo
BDIBurundiBI-PP-NBI-PP-NPassportNo
BELBelgiumBE-PP-NBE-PP-NPassportNo
BENBeninBJ-PP-NBJ-PP-NPassportNo
BJ-DL-NBJ-DL-NDriver's LicenseNo
BJ-ID-NBJ-ID-NNational IDNo
BFABurkina FasoBF-PP-NBF-PP-NPassportNo
BGDBangladeshBD-PP-NBD-PP-NPassportNo
BD-ID-NBD-ID-NNational IDNo
BGRBulgariaBG-PP-NBG-PP-NPassportNo
BHRBahrainBH-PP-NBH-PP-NPassportNo
BHSBahamasBS-PP-NBS-PP-NPassportNo
BIHBosnia and HerzegovinaBA-PP-NBA-PP-NPassportNo
BLRBelarusBY-PP-NBY-PP-NPassportNo
BLZBelizeBZ-PP-NBZ-PP-NPassportNo
BMUBermudaBM-PP-NBM-PP-NPassportNo
BOLBoliviaBO-PP-NBO-PP-NPassportNo
BRABrazilBR-PP-NBR-PP-NPassportNo
BRBBarbadosBB-PP-NBB-PP-NPassportNo
BRNBrunei DarussalamBN-PP-NBN-PP-NPassportNo
BTNBhutanBT-PP-NBT-PP-NPassportNo
BVTBouvet IslandBV-PP-NBV-PP-NPassportNo
BWABotswanaBW-PP-NBW-PP-NPassportNo
CAFCentral African RepublicCF-PP-NCF-PP-NPassportNo
CANCanadaCA-PP-NCA-PP-NPassportNo
CCKCocos (Keeling) IslandsCC-PP-NCC-PP-NPassportNo
CHESwitzerlandCH-PP-NCH-PP-NPassportNo
CHLChileCL-PP-NCL-PP-NPassportNo
CHNChinaCN-PP-NCN-PP-NPassportNo
CIVCôte d'IvoireCI-PP-NCI-PP-NPassportNo
CMRCameroonCM-PP-NCM-PP-NPassportNo
CODDemocratic Republic of the CongoCD-PP-NCD-PP-NPassportNo
COGCongoCG-PP-NCG-PP-NPassportNo
COLColombiaCO-PP-NCO-PP-NPassportNo
COMComorosKM-PP-NKM-PP-NPassportNo
CPVCape VerdeCV-PP-NCV-PP-NPassportNo
CRICosta RicaCR-PP-NCR-PP-NPassportNo
CUBCubaCU-PP-NCU-PP-NPassportNo
CXRChristmas IslandCX-PP-NCX-PP-NPassportNo
CYMCayman IslandsKY-PP-NKY-PP-NPassportNo
CYPCyprusCY-PP-NCY-PP-NPassportNo
CZECzech RepublicCZ-PP-NCZ-PP-NPassportNo
DEUGermanyDE-PP-NDE-PP-NPassportNo
DJIDjiboutiDJ-PP-NDJ-PP-NPassportNo
DMADominicaDM-PP-NDM-PP-NPassportNo
DNKDenmarkDK-PP-NDK-PP-NPassportNo
DOMDominican RepublicDO-PP-NDO-PP-NPassportNo
DZAAlgeriaDZ-PP-NDZ-PP-NPassportNo
ECUEcuadorEC-PP-NEC-PP-NPassportNo
EGYEgyptEG-PP-NEG-PP-NPassportNo
ERIEritreaER-PP-NER-PP-NPassportNo
ESPSpainES-PP-NES-PP-NPassportNo
ESTEstoniaEE-PP-NEE-PP-NPassportNo
ETHEthiopiaET-PP-NET-PP-NPassportNo
FINFinlandFI-PP-NFI-PP-NPassportNo
FJIFijiFJ-PP-NFJ-PP-NPassportNo
FLKFalkland IslandsFK-PP-NFK-PP-NPassportNo
FRAFranceFR-PP-NFR-PP-NPassportNo
FROFaroe IslandsFO-PP-NFO-PP-NPassportNo
FSMMicronesiaFM-PP-NFM-PP-NPassportNo
GABGabonGA-PP-NGA-PP-NPassportNo
GBRUnited KingdomGB-PP-NGB-PP-NPassportNo
GEOGeorgiaGE-PP-NGE-PP-NPassportNo
GHAGhanaGH-PP-NGH-PP-NPassportNo
GIBGibraltarGI-PP-NGI-PP-NPassportNo
GINGuineaGN-PP-NGN-PP-NPassportNo
GLPGuadeloupeGP-PP-NGP-PP-NPassportNo
GMBGambiaGM-PP-NGM-PP-NPassportNo
GNBGuinea-BissauGW-PP-NGW-PP-NPassportNo
GNQEquatorial GuineaGQ-PP-NGQ-PP-NPassportNo
GRCGreeceGR-PP-NGR-PP-NPassportNo
GRDGrenadaGD-PP-NGD-PP-NPassportNo
GRLGreenlandGL-PP-NGL-PP-NPassportNo
GTMGuatemalaGT-PP-NGT-PP-NPassportNo
GUFFrench GuianaGF-PP-NGF-PP-NPassportNo
GUMGuamGU-PP-NGU-PP-NPassportNo
GUYGuyanaGY-PP-NGY-PP-NPassportNo
HKGHong KongHK-PP-NHK-PP-NPassportNo
HMDHeard and McDonald IslandsHM-PP-NHM-PP-NPassportNo
HNDHondurasHN-PP-NHN-PP-NPassportNo
HRVCroatiaHR-PP-NHR-PP-NPassportNo
HTIHaitiHT-PP-NHT-PP-NPassportNo
HUNHungaryHU-PP-NHU-PP-NPassportNo
IDNIndonesiaID-ID-KTPID-ID-KTPIndonesia National IDYes
IDNIndonesiaID-PP-NID-PP-NPassportNo
ID-ID-NID-ID-NNational IDNo
IMNIsle of ManIM-PP-NIM-PP-NPassportNo
INDIndiaIN-PP-NIN-PP-NPassportNo
IN-ID-AADHAARIN-ID-AADHAARAadhaar CardYes
IN-ID-PANIN-ID-PANPAN CardYes
IN-ID-VOTER_IDIN-ID-VOTER_IDVoter IDNo
IOTBritish Indian Ocean TerritoryIO-PP-NIO-PP-NPassportNo
IRLIrelandIE-PP-NIE-PP-NPassportNo
IRNIranIR-PP-NIR-PP-NPassportNo
IRQIraqIQ-PP-NIQ-PP-NPassportNo
ISLIcelandIS-PP-NIS-PP-NPassportNo
ISRIsraelIL-PP-NIL-PP-NPassportNo
ITAItalyIT-PP-NIT-PP-NPassportNo
JAMJamaicaJM-PP-NJM-PP-NPassportNo
JORJordanJO-PP-NJO-PP-NPassportNo
JPNJapanJP-PP-NJP-PP-NPassportNo
KAZKazakhstanKZ-PP-NKZ-PP-NPassportNo
KENKenyaKE-PP-NKE-PP-NPassportNo
KE-ID-NATIONAL_IDKE-ID-NATIONAL_IDNational IDYes
KGZKyrgyzstanKG-PP-NKG-PP-NPassportNo
KHMCambodiaKH-PP-NKH-PP-NPassportNo
KIRKiribatiKI-PP-NKI-PP-NPassportNo
KNASaint Kitts and NevisKN-PP-NKN-PP-NPassportNo
KORSouth KoreaKR-PP-NKR-PP-NPassportNo
KWTKuwaitKW-PP-NKW-PP-NPassportNo
LAOLaosLA-PP-NLA-PP-NPassportNo
LA-DL-NLA-DL-NDriver's LicenseNo
LBNLebanonLB-PP-NLB-PP-NPassportNo
LBRLiberiaLR-PP-NLR-PP-NPassportNo
LBYLibyaLY-PP-NLY-PP-NPassportNo
LCASaint LuciaLC-PP-NLC-PP-NPassportNo
LIELiechtensteinLI-PP-NLI-PP-NPassportNo
LKASri LankaLK-PP-NLK-PP-NPassportNo
LSOLesothoLS-PP-NLS-PP-NPassportNo
LTULithuaniaLT-PP-NLT-PP-NPassportNo
LUXLuxembourgLU-PP-NLU-PP-NPassportNo
LVALatviaLV-PP-NLV-PP-NPassportNo
MACMacaoMO-PP-NMO-PP-NPassportNo
MARMoroccoMA-PP-NMA-PP-NPassportNo
MCOMonacoMC-PP-NMC-PP-NPassportNo
MDAMoldovaMD-PP-NMD-PP-NPassportNo
MDGMadagascarMG-PP-NMG-PP-NPassportNo
MDVMaldivesMV-PP-NMV-PP-NPassportNo
MEXMexicoMX-PP-NMX-PP-NPassportNo
MHLMarshall IslandsMH-PP-NMH-PP-NPassportNo
MKDNorth MacedoniaMK-PP-NMK-PP-NPassportNo
MLIMaliML-PP-NML-PP-NPassportNo
MLTMaltaMT-PP-NMT-PP-NPassportNo
MMRMyanmarMM-PP-NMM-PP-NPassportNo
MNEMontenegroME-PP-NME-PP-NPassportNo
MNGMongoliaMN-PP-NMN-PP-NPassportNo
MNPNorthern Mariana IslandsMP-PP-NMP-PP-NPassportNo
MOZMozambiqueMZ-PP-NMZ-PP-NPassportNo
MRTMauritaniaMR-PP-NMR-PP-NPassportNo
MSRMontserratMS-PP-NMS-PP-NPassportNo
MTQMartiniqueMQ-PP-NMQ-PP-NPassportNo
MUSMauritiusMU-PP-NMU-PP-NPassportNo
MWIMalawiMW-PP-NMW-PP-NPassportNo
MYSMalaysiaMY-ID-NMY-ID-MYKAD, MY-ID-PRMalaysia Identity Card or Malaysia Permanent Resident (PR) Card.Yes
MYSMalaysiaMY-ID-MYKADMY-ID-MYKADMalaysia Identity CardYes
MYSMalaysiaMY-ID-PRMY-ID-PRMalaysia Permanent Resident (PR) CardYes
MYSMalaysiaMY-PP-NMY-PP-NPassportNo
MY-ID-POLICEMY-ID-POLICEPolice IDYes
MY-ID-TENTERAMY-ID-TENTERAMilitary IDYes
MY-RP-EPMY-RP-EPResidence CardNo
MYTMayotteYT-PP-NYT-PP-NPassportNo
NAMNamibiaNA-PP-NNA-PP-NPassportNo
NCLNew CaledoniaNC-PP-NNC-PP-NPassportNo
NERNigerNE-PP-NNE-PP-NPassportNo
NFKNorfolk IslandNF-PP-NNF-PP-NPassportNo
NGANigeriaNG-PP-NNG-PP-NPassportNo
NG-ID-NNG-ID-NNational IDNo
NICNicaraguaNI-PP-NNI-PP-NPassportNo
NIUNiueNU-PP-NNU-PP-NPassportNo
NLDNetherlandsNL-PP-NNL-PP-NPassportNo
NORNorwayNO-PP-NNO-PP-NPassportNo
NPLNepalNP-PP-NNP-PP-NPassportNo
NRUNauruNR-PP-NNR-PP-NPassportNo
NZLNew ZealandNZ-PP-NNZ-PP-NPassportNo
OMNOmanOM-PP-NOM-PP-NPassportNo
PAKPakistanPK-PP-NPK-PP-NPassportNo
PK-ID-NICPK-ID-NICNICYes
PK-ID-NICOPPK-ID-NICOPNICOPYes
PK-ID-SNICPK-ID-SNICSmart NICYes
PANPanamaPA-PP-NPA-PP-NPassportNo
PCNPitcairnPN-PP-NPN-PP-NPassportNo
PERPeruPE-PP-NPE-PP-NPassportNo
PE-ID-NATIONAL_IDPE-ID-NATIONAL_IDNational IDYes
PHLPhilippinesPH-PP-NPH-PP-NPassportNo
PH-ID-HEALTH_CARDPH-ID-HEALTH_CARDHealth CardNo
PH-ID-MYSSSPH-ID-MYSSSMySSS CardNo
PH-ID-NPH-ID-NNational IDNo
PH-ID-PAGIBIGPH-ID-PAGIBIGPag-IBIG CardNo
PH-ID-VOTER_IDPH-ID-VOTER_IDVoter IDNo
PLWPalauPW-PP-NPW-PP-NPassportNo
PNGPapua New GuineaPG-PP-NPG-PP-NPassportNo
PG-DL-NPG-DL-NDriver's LicenseNo
PG-ID-NPG-ID-NNational IDNo
POLPolandPL-PP-NPL-PP-NPassportNo
PRIPuerto RicoPR-PP-NPR-PP-NPassportNo
PRKNorth KoreaKP-PP-NKP-PP-NPassportNo
PRTPortugalPT-PP-NPT-PP-NPassportNo
PRYParaguayPY-PP-NPY-PP-NPassportNo
PSEPalestinePS-PP-NPS-PP-NPassportNo
PYFFrench PolynesiaPF-PP-NPF-PP-NPassportNo
QATQatarQA-PP-NQA-PP-NPassportNo
REURéunionRE-PP-NRE-PP-NPassportNo
ROURomaniaRO-PP-NRO-PP-NPassportNo
RUSRussiaRU-PP-NRU-PP-NPassportNo
RU-ID-DOMESTIC_PASSPORTRU-ID-DOMESTIC_PASSPORTDomestic PassportNo
RWARwandaRW-PP-NRW-PP-NPassportNo
SAUSaudi ArabiaSA-PP-NSA-PP-NPassportNo
SDNSudanSD-PP-NSD-PP-NPassportNo
SENSenegalSN-PP-NSN-PP-NPassportNo
SGPSingaporeSG-PP-NSG-PP-NPassportNo
SGSSouth Georgia and the South Sandwich IslandsGS-PP-NGS-PP-NPassportNo
SHNSaint HelenaSH-PP-NSH-PP-NPassportNo
SJMSvalbard and Jan MayenSJ-PP-NSJ-PP-NPassportNo
SLBSolomon IslandsSB-PP-NSB-PP-NPassportNo
SLESierra LeoneSL-PP-NSL-PP-NPassportNo
SLVEl SalvadorSV-PP-NSV-PP-NPassportNo
SMRSan MarinoSM-PP-NSM-PP-NPassportNo
SOMSomaliaSO-PP-NSO-PP-NPassportNo
SPMSaint Pierre and MiquelonPM-PP-NPM-PP-NPassportNo
SRBSerbiaRS-PP-NRS-PP-NPassportNo
SSDSouth SudanSS-PP-NSS-PP-NPassportNo
STPSão Tomé and PríncipeST-PP-NST-PP-NPassportNo
SURSurinameSR-PP-NSR-PP-NPassportNo
SVKSlovakiaSK-PP-NSK-PP-NPassportNo
SVNSloveniaSI-PP-NSI-PP-NPassportNo
SWESwedenSE-PP-NSE-PP-NPassportNo
SWZEswatiniSZ-PP-NSZ-PP-NPassportNo
SXMSint MaartenSX-PP-NSX-PP-NPassportNo
SYCSeychellesSC-PP-NSC-PP-NPassportNo
SYRSyriaSY-PP-NSY-PP-NPassportNo
TCATurks and Caicos IslandsTC-PP-NTC-PP-NPassportNo
TCDChadTD-PP-NTD-PP-NPassportNo
TGOTogoTG-PP-NTG-PP-NPassportNo
THAThailandTH-ID-NTH-ID-NThailand National IDYes
THAThailandTH-ID-PINKTH-ID-PINKThailand Pink IDYes
THAThailandTH-PP-NTH-PP-NPassportNo
THAThailandTH-DL-NTH-DL-NThailand Driver's LicenseYes
TJKTajikistanTJ-PP-NTJ-PP-NPassportNo
TJ-ID-NTJ-ID-NNational IDYes
TKLTokelauTK-PP-NTK-PP-NPassportNo
TKMTurkmenistanTM-PP-NTM-PP-NPassportNo
TLSTimor-LesteTL-PP-NTL-PP-NPassportNo
TONTongaTO-PP-NTO-PP-NPassportNo
TTOTrinidad and TobagoTT-PP-NTT-PP-NPassportNo
TUNTunisiaTN-PP-NTN-PP-NPassportNo
TURTurkeyTR-PP-NTR-PP-NPassportNo
TUVTuvaluTV-PP-NTV-PP-NPassportNo
TWNTaiwanTW-PP-NTW-PP-NPassportNo
TZATanzaniaTZ-PP-NTZ-PP-NPassportNo
UGAUgandaUG-PP-NUG-PP-NPassportNo
UKRUkraineUA-PP-NUA-PP-NPassportNo
UMIUnited States Minor Outlying IslandsUM-PP-NUM-PP-NPassportNo
URYUruguayUY-PP-NUY-PP-NPassportNo
USAUnited StatesUS-PP-NUS-PP-NPassportNo
UZBUzbekistanUZ-PP-NUZ-PP-NPassportNo
VATVatican CityVA-PP-NVA-PP-NPassportNo
VCTSaint Vincent and the GrenadinesVC-PP-NVC-PP-NPassportNo
VENVenezuelaVE-PP-NVE-PP-NPassportNo
VGBBritish Virgin IslandsVG-PP-NVG-PP-NPassportNo
VIRU.S. Virgin IslandsVI-PP-NVI-PP-NPassportNo
VNMVietnamVN-ID-NVN-ID-NVietnam National IDYes
VNMVietnamVN-PP-NVN-PP-NPassportNo
VNMVietnamVN-DL-NVN-DL-NVietnam Driver's LicenseYes
VUTVanuatuVU-PP-NVU-PP-NPassportNo
WLFWallis and FutunaWF-PP-NWF-PP-NPassportNo
WSMSamoaWS-PP-NWS-PP-NPassportNo
YEMYemenYE-PP-NYE-PP-NPassportNo
ZAFSouth AfricaZA-PP-NZA-PP-NPassportNo
ZMBZambiaZM-PP-NZM-PP-NPassportNo
ZWEZimbabweZW-PP-NZW-PP-NPassportNo

Response Description

the response data structure is similar with Get Result API's Response.

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 Identity Verification
extraExtra response info (Exception Message)

Response.code

Status CodeMessage
SUCCESSOK
PARAMETER_ERRORParameter error, please check your input.
Parameter should not be empty
Solution code is wrong
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.
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.
idvResultstring, The result code of this verification transaction.(will be deprecated, use overallResult instead)
errorCodestring, The fail reason when overallResult is fail
docDetailobject, The document verification result details. this field will always be null when solutionCode in ["04"].
Refer to DocDetail.
feeDetaillist, the charging details. Refer to FeeDetail
countryCodeIso3string, the region in the Generate URL API 's input.

overallResult

overallResult is the result code of the identity verification, the value is same with DocDetail.ocrResult.

ValueDescription
PASSthe user passed the identity verification check.
FAILthe user failed the identity verification check.

errorCode

Response.data.idvResultValueDescription
PASSSUCCESSThe user passed the identity verification.
FAILNO_FACE_DETECTEDNo face detected on the front image of the document.
CARD_INFO_MISMATCHThe front part and the back part of the two-side document do not match with each other.
ID_FORGERY_DETECTEDThe document ( only the front part if the document is two-side) is forgery.
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
CARD_LOW_QUALITY_IMAGEThe document images are too poor to do identity verification.
INCOMPLETED_CARDThe card is not completed in the document images.
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
OCR_REQUIRED_FIELDS_MISSINGOne or more required fields are missing from the OCR result.
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
ERRORError during processing in our backend. this may indicates a backend bug.

Response Examples

Planned postal-code extension: Examples containing docDetail.additionalInfo describe the response after this extension becomes available. Confirm service availability before relying on it. See legacy DocDetail — additionalInfo for scope, null handling, and final-result behavior.

SUCCESS

{
  "code": "SUCCESS",
  "message": "OK",
  "data": {
    "signatureId":"f302f5d2454a85c2",
    "overallResult": "PASS",
    "idvResult": "PASS",
    "errorCode": "SUCCESS",
    "docDetail": {
      "additionalInfo": {"postalCode": null},
      "ocrResult": "PASS",
      "docFrontImage": "https://abc.com/idFrontImage.jpg",
      "docBackImage": "https://abc.com/idBackImage.jpg",
      "ocrInfo": {
        "front": {
          "gender": "PEREMPUAN",
          "name": "****** ******",
          "address": "****** ****** ****** ******",
          "idNumber": "************",
          "religion": "",
          "birthday": "1977/10/28",
          "citizen": "MYS"
        },
        "back": {
          "secondaryIdNumber": "************"
        }
      },
      "qualityLabels": {
        "front": [],
        "back": []
      },
      "forgeryLabels": [
        "photocopy"
      ],
      "eventDetails": [
          {
              "event": "BE_DOCUMENT",
              "result": "PASS",
              "createTimestmap": 1665993522952
          }
      ]
    },
    "feeDetail": [
  				{
    				"name": "SOLUTION",
    				"type": "SOLUTION"
				}
		],
    "countryCodeIso3":"MYS"
  },
  "extra": null,
  "transactionId": "d3fde1547eeaf226",
  "pricingStrategy": "FREE"
}
{
    "code": "SUCCESS",
    "message": "OK",
    "data": {
      "signatureId":"f302f5d2454a85c2",
      "overallResult":"FAIL",
      "idvResult":"FAIL",
      "errorCode":"NOT_SUPPORTED_CARD",
      "faceDetail": {
         "faceResult": null,
        "faceImageFar": null,
        "faceImageNear": null,
				"auditImageUrl": null,
				"faceLivenessScore": null,
        "faceSimilarityScore": null
       
      },
      "docDetail":  {
        "additionalInfo": {"postalCode": null},
        "docResult": null,
        "docFrontImage": null,
        "docBackImage": null,
				"ocrInfo": null,
        "qualityLabels": null,
        "forgeryLabels": null
      },
     "feeDetail": [
  				{
    				"name": "SOLUTION",
    				"type": "SOLUTION"
				}
		  ],
    "countryCodeIso3":"MYS"
    },
    "extra": null,
    "transactionId": "d3fde1547eeaf226",
    "pricingStrategy": "FREE"
}
{
  "code": "SUCCESS",
  "message": "OK",
  "data": {
    "overallResult": null,
    "idvResult": null,
    "errorCode": null,
    "docDetail": {
      "additionalInfo": {"postalCode": null},
      "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": [],
        "back": []
      },
      "forgeryLabels": null,
      "eventDetails": [
          {
              "event": "BE_DOCUMENT",
              "result": "PASS",
              "createTimestmap": 1665993522952
          }
      ]
    },
     "feeDetail": [
  				{
    				"name": "SOLUTION",
    				"type": "SOLUTION"
				}
		],
    "countryCodeIso3":"MYS"
  },
  "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"
}

Did this page help you?