Skip to content

撞库接口

接口信息

需对方提供

  • 地址:合作机构提供接口地址
  • 请求方式:POST
  • 接口说明:万利通调用机构撞库接口,传入统一标准用户资质

请求参数

参数类型必填说明
mobileMaskString手机号前8位,例如:13812345
mobileMd5String手机号 MD5
realNameString用户姓名
genderInteger性别:1=男0=女
cityString城市名称
idCardString身份证号
ageInteger年龄
educationInteger学历,见参数字典
housingStatusInteger房产,见参数字典
hasCarInteger车辆,见参数字典
overdueInteger逾期情况
creditCardInteger信用卡
commercialInsuranceInteger保险
occupationInteger职业
salaryOfMonthInteger月收入
hasProvidentFundInteger公积金
hasSocialSecurityInteger社保
zhimaScoreInteger芝麻分等级,详见参数字典
weiliInteger微粒贷
baiTiaoInteger京东白条
huaBeiInteger花呗
businessTimeInteger营业执照时长(月)
loanAmountInteger贷款金额(万元)
loanTimeInteger贷款期限(月)
purposeInteger贷款用途
paymentFormInteger工资发放
applyIpString用户 IP
authUrlString万利通回调地址
agreementUrlString万利通提供的个人信息授权协议链接,协议内容包含平台与合作机构双方公司名、产品名

响应参数

参数类型说明
codeInteger0-成功
msgString响应消息
dataObject响应数据

data 字段

参数类型说明
userIdString用户标识
applyNoString机构申请号(如有)
channelIdString机构分配给万利通的渠道标识(如有)
productNameString产品名称
companyNameString机构名称(如有)
logoStringLogo URL
priceFloat单价(元)
discountPriceFloat折后单价(如有,平台优先取该值)
protocolsArray协议列表
urlString授权 URL;撞库返有值,进件返可为空

请求示例

json
{
  "mobileMask": "13812345",
  "mobileMd5": "5d41402abc4b2a76b9719d911017c592",
  "realName": "张三",
  "gender": 1,
  "city": "成都市",
  "idCard": "510100199001011234",
  "age": 34,
  "education": 5,
  "housingStatus": 2,
  "hasCar": 0,
  "overdue": 0,
  "creditCard": 1,
  "commercialInsurance": 2,
  "occupation": 1,
  "salaryOfMonth": 3,
  "hasProvidentFund": 4,
  "hasSocialSecurity": 4,
  "zhimaScore": 1,
  "weili": 1,
  "baiTiao": 1,
  "huaBei": 1,
  "loanAmount": 5,
  "loanTime": 12,
  "purpose": 1,
  "paymentForm": 3,
  "applyIp": "114.114.114.114",
  "authUrl": "https://platform.example.com/api/platform/downstream/auth-callback",
  "agreementUrl": "https://platform.example.com/agreements/downstream-authorization?..."
}

响应示例

json
{
  "code": 0,
  "msg": "成功",
  "data": {
    "userId": "USER123456",
    "channelId": "CH001",
    "productName": "信用贷",
    "companyName": "示例机构",
    "logo": "https://example.com/logo.png",
    "price": 20.0,
    "discountPrice": 18.5,
    "protocols": [
      {
        "name": "用户协议",
        "url": "https://example.com/protocol.html"
      }
    ],
    "url": "https://institution.example.com/auth?userId=USER123456"
  }
}

注意事项

  1. 撞库返模式需在 url 中返回授权页地址。
  2. 进件返模式在撞库阶段可不返回 url,但需返回可用于后续进件的 userIdapplyNo
  3. 平台优先读取 discountPrice,未返回时回退读取 price
  4. authUrl 为机构回调万利通地址,agreementUrl 为用户查看的授权协议链接,两者语义不同,不可混用。