OCR

To access

Welcome to use our product. Here are some things you need to know before you start the interface call:

  1. Complete product signing and permission opening;
  2. You need to obtain an appKey and secret.
  3. We provide a demo java python php,for your reference;
  4. Please feel free to contact us if you have any questions.

token description

Write all request parameters and secrets (assigned when opening an account) except tokens in the form of "key=value", sort them by key, and connect them with "&" to get the string str:

String str = "appKey=test_key&idNumber=idNumber&name=name&phone=phone&secret=20200101";

Encrypt str with md5 to get the token:

String token = md5(str);

For details, please refer to calling demo

Interface information

API API information
formal environment http://api.digiscore.id/api/data/aiEkycKtpOcr/handle
sandbox environment http://test-platform.ferrystatic.com/openrisk/api/data/aiEkycKtpOcr/handle

Request parameter

Field type required describe
appKey string yes Unique identifier assigned to the organization
token string yes API request signature, see token description
ktpPhoto string yes bas64-encoded ID photo

Response parameters

Field type required describe
code int yes error code
msg string yes Error message
requestId string yes Request id
data object no See business parameters below for details
isFee int yes 1- charge, 0- free
when "code"=200 or 100401,it is charged.

Business parameters

Field type required describe
address string yes address
occupation object yes occupation
gender object yes gender
city string yes city
idNumber string yes idNumber
birthPlaceBirthday string no birthPlaceBirthday
bloodType string no bloodType
ktpPhoto string yes ktpPhoto
religion string no religion
expiryDate string no expiryDate
rtrw string yes rtrw of face picture
province string yes province
nationality string yes nationality
district string no district
name string yes name
village string no village
maritalStatus string no maritalStatus

Response example

success
{
   "code": 200,
    "msg": "OK",
    "data": {
        "address": "CIBODAS CAMPAKA",
        "occupation": "MENGURUS RUMAH TANGGA",
        "gender": "PEREMPUAN",
        "city": "KOTA CIMAHI",
        "idNumber": "3277015804880001",
        "birthPlaceBirthday": "CIMAHI, 18-04-1988",
        "bloodType": "O",
        "ktpPhoto": "ekyc/ktp_8796a6e1c77e6921a0745582c0a97510.jpg",
        "religion": "ISLAM",
        "expiryDate": "SEUMUR HIDUP",
        "rtrw": "004/014",
        "province": "JAWA BARAT",
        "nationality": "WNI",
        "district": "CIMAHI SELATAN",
        "name": "NURHAYATI",
        "village": "UTAMA",
        "maritalStatus": "KAWIN"
    },
    "requestId": "948f81c6a7a2173516a3fb40efa9c9c3",
    "isFee": 1
}

error

{
    "code": 11008,
    "msg": "xxxxxxxxx",
    "data": null
    "isFee": 0
}

results matching ""

    No results matching ""