API Reference
English

信用指标-印尼

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,KTP
id_typeString身份证件 ID 类型必须ID 类型枚举值:
国民身份证:national_id
countryString国家必须两位国家码,符合 ISO 3166 标准。
支持国家:印尼(ID)
nameString姓名必须
phone_numberString手机号码必须印尼只支持 10-13 纯数字和 + 号. 明文仅支持以下作为开头: + 628, 628, 8, 08
app_nameStringapp名称强烈建议选择 下述产品包时建议填入:
behavior_analysis_of_repayment 还款行为分析,;
multiplatform_multi_V1.1 多头1.1版本;
multiplatform_V2 多头(手机号、身份证、GAID) V2、fraud_insight_graph_V1 欺诈图谱指标 V1.0版本
multiplatform_V2_m2 多头(手机号、身份证、GAID) V2.1版本
package_nameString产品名必须枚举值:
印尼地区:
multiplatform_phone 多头(手机号)
multiplatform_id 多头(身份证)
device_risk_detection 设备历史风险检测
financial_assessment_level 经济能力评估等级
credit_rating_estimation 信用等级预测
behavior_analysis_of_repayment 还款行为分析
multiplatform_multi_V1_1 多头1.1版本
multiplatform_V2 多头(手机号、身份证、GAID) V2版本
multiplatform_V2_m2 多头(手机号、身份证、GAID) V2.1版本
fraud_insight_graph_V1 欺诈图谱指标 V1.0
fraud_insight_graph_V2 欺诈图谱指标 V2.0
不可多传,只能传入一个。
device_idString设备ID条件必须如果调用设备历史风险检测产品则为必须填入,选择fraud_insight_graph_V1 欺诈图谱指标 V1.0,fraud_insight_graph_V2 欺诈图谱指标 V2.0建议填入
gaid StringGAID条件必须例如: cc15aaf9-01cf-4900-9a45-6f5643b00e2f, 如果调用以下产品时为必填:
multiplatform_V2 多头(手机号、身份证、GAID) V2版本
fraud_insight_graph_V1 欺诈图谱指标 V1.0
multiplatform_V2_m2 多头(手机号、身份证、GAID) V2.1版本
fraud_insight_graph_V2 欺诈图谱指标 V2.0

响应参数

字段类型建议含义备注
codeInteger必须API 状态码
messageString必须状态信息在 API 异常状态下会输出具体的异常原因
sequence_idString必须响应唯一码用于跟踪每次请求记录的唯一标识
dataArray必须
id_numberJSONObject条件必须身份证号维度选择下述指标包时返回: multiplatform_V2 多头;

multiplatform_V2_m2 多头(手机号、身份证、GAID) V2.1版本;

fraud_insight_graph_V2 欺诈图谱指标 V2.0
phone_numberJSONObject条件必须手机号维度选择下述指标包时返回: multiplatform_V2 多头;
multiplatform_V2_m2 多头(手机号、身份证、GAID) V2.1版本;
fraud_insight_graph_V2 欺诈图谱指标 V2.0
gaidJSONObject条件必须gaid维度选择下述指标包时返回: multiplatform_V2 多头;
multiplatform_V2_m2 多头(手机号、身份证、GAID) V2.1版本;
fraud_insight_graph_V2 欺诈图谱指标 V2.0
indicator_nameString必须指标名选择下述指标包时返回: multiplatform_V2 多头;
multiplatform_V2_m2 多头(手机号、身份证、GAID) V2.1版本;
fraud_insight_graph_V2 欺诈图谱指标 V2.0
indicator_valueString/int必须指标值指标特殊值含义:
-1111:无法计算
-999:库无记录
-888: 内部错误,请联系运营
注:返回类型根据不同指标(名)而不同
indicator_statusInt条件必须
选择multiplatform_V2 多头fraud_insight_graph_V1 欺诈图谱指标 V1.0时返回
指标状态枚举值:
200:成功
201:库无记录(手机号、身份证号无记录)
202:指标无法计算
500:系统错误

API接口响应码

CodeMessage描述
200成功
300Service not purchased or not effective服务不可⽤
301Service not purchased服务未购买
302Service has been suspend服务已被禁⽤
303Not enough balance流量不足
304Service expired服务已过期
9500Internal error内部错误
9060{parameter} empty{字段名}为空
9061{parameter} error{字段名}错误
9055The country partner located has no service您所在的国家/地区没有服务
9081The format of the phone number does not match with the country手机号所在国家非传入国家

响应样例

{
    "code":200,
    "sequence_id":"53b63090c0374cad82********f8991e",
    "data":[
        {
            "indicator_name":"indicator_name_1",
            "indicator_status":200,
            "indicator_value":1
        },
        {
            "indicator_name":"indicator_name_2",
            "indicator_status":200,
            "indicator_value":1
        }
    ]
}

响应样例-multiplatform_V2

{
    "code": 200,
    "sequence_id": "53b63090c0374cad82********f8991e",
    "data": {
        "id_number": [
            {
                "indicator_name": "indicator_name_1",
                "indicator_value": 1
            },
            {
                "indicator_name": "indicator_name_2",
                "indicator_value": 2
            }
        ],
        "phone_number": [
            {
                "indicator_name": "indicator_name_1",
                "indicator_value": 1
            },
            {
                "indicator_name": "indicator_name_2",
                "indicator_value": 4
            }
        ],
        "gaid": [
            {
                "indicator_name": "indicator_name_1",
                "indicator_value": 1
            },
            {
                "indicator_name": "indicator_name_2",
                "indicator_value": 8
            }
        ]
    }
}
}

失败样例

{
    "code": 9061,
    "sequence_id": "80b57561b6fb********61ccba263b60",
    "message": "country error"
}