身份验真-印尼

本产品主要用于用户的三要素核验。

API 方式

Base URL

API

URL请求方式Content-Type输出格式字符集
api-base-url?partner_code=xxx&partner_key=xxxPOSTapplication/jsonJSONUTF-8

认证参数

字段类型含义建议备注
partner_codeString合作方标识必须由 TD 分配
partner_keyString合作方密钥必须由 TD 分配

请求参数

字段类型含义建议备注
id_numberString身份证件 ID 号码必须ID number
id_typeString身份证件 ID 类型必须印尼-枚举值: KTP
phone_numberString手机号 / 电话号码必须08开头10到13位,样例:081234567890
nameString姓名必须
countryString国家必须国家,必填. 两位国家码,符合 ISO 3166 标准。目前支持:印尼(ID)

请求示例

{
    "country":"ID",
    "phone_number":"081234567890",
    "id_type":"KTP",
    "id_number":"3310225629467",
    "name":"Joe"
}

响应参数

字段类型含义建议备注
codeIntegerAPI 状态码必须
messageString状态信息必须在 API 异常状态下会输出具体的异常原因
sequence_idString响应唯一码必须用于跟踪每次请求记录的唯一标识
resultString核验结果必须枚举值:
通过:pass(姓名、手机号和身份证都对应上)
不通过:fail
无纪录:no record
reasonString核验原因条件必须,当result=fail/ no record的时候当result=fail的时候:
1. The NIK does not match with the phone number(nik不匹配手机号)
2. The NIK does not match with the name(nik不匹配姓名)
3. The NIK does not match with both name and phone number(nik不匹配姓名和手机号)

当result=no record 的时候:
1. No record for the ID number (库无NIK)
2. No record for the phone number (库无手机号)

API状态码

codeMessage含义是否收费
200success成功
301Service not purchased服务未购买
302Service has been suspend服务已被禁⽤
303Not enough balance流量不足
304Service expired服务已过期
305Daily maximum volume reached日流量已封顶
600Service Temporarily Unavailable服务超过限制
11350Internal error系统错误
11301{parameter} empty{参数}为空
11304The country partner located is not open国家不支持
11340{parameter} error{参数}错误

响应示例

  • 业务成功示例
{   
 "code": 200,
 "message": "success",
 "sequence_id": "1648777165770866F82AC7F326307055",
 "result": "pass" 
}
  • 业务失败示例
{
    "code":11340,
    "sequence_id":"170427842997****I3167369D6187177",
    "message":"phone_number error"
}