文档中心 > API类目 > 天猫汽车金融

tmall.fin.car.open.credit.result.notify (天猫汽车金融授信结果通知)

天猫汽车金融授信结果通知

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
credit_result_notify_request TopOpenCreditResultNotifyRequest 必须 请求入参
  • └ amount
  • Number
  • 可选
  • 10000
  • 单位分,授信额度-最长32
  • └ request_no
  • String
  • 必须
  • 18989
  • 幂等号-最长64
  • └ status
  • String
  • 必须
  • QUALIFIED
  • QUALIFIED:授信成功 FAILED:授信失败 NEED_TELE_REVIEW:需要电审
  • └ biz_no
  • String
  • 必须
  • 898989
  • 天猫业务单号-最长64
  • fail_reason
  • FailReason
  • 可选
  • 授信失败原因
  • └ code
  • String
  • 可选
  • 400
  • 原因码-最长32
  • └ msg
  • String
  • 可选
  • 机构授信失败
  • 源码描述-最长64
  • └ type
  • String
  • 必须
  • RISK_CREDIT
  • RISK_CREDIT("风控授信") TELE_REVIEW("电审阶段")
  • └ currency
  • String
  • 可选
  • CNY
  • 人民币
  • └ event_time
  • String
  • 必须
  • 2019-08-06 11:33:09
  • 事件时间,如果有授信结果,就填授信结果时间
  • └ customer_type
  • String
  • 必须
  • ALI
  • 客户类型,默认为ALI
  • └ customer_id
  • String
  • 必须
  • 288890902
  • 客户ID-最长32
  • └ channel
  • String
  • 可选
  • DS_APP
  • 对接渠道:大搜车(DS_APP)、广汇(GH_APP)

响应参数

名称 类型 示例值 描述
result TopOpenCreditResultNotifyResponse 系统自动生成
  • └ message
  • String
  • 输入参数校验失败
  • 错误描述
  • └ success
  • Boolean
  • true
  • 授信结果通知是否成功:true (成功)、false (失败)
  • └ code
  • String
  • 10000
  • 响应编码-- 10000:成功 10200: 重复请求 10300: 参数校验失败,10400: 未知错误 10500: 系统异常 10600: 业务异常 10700: 无权限访问 10800: 状态不允许当前请求
  • └ retry
  • Boolean
  • true
  • 是否需要重试

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TmallFinCarOpenCreditResultNotifyRequest req = new TmallFinCarOpenCreditResultNotifyRequest();
TmallFinCarOpenCreditResultNotifyRequest.TopOpenCreditResultNotifyRequest obj1 = new TmallFinCarOpenCreditResultNotifyRequest.TopOpenCreditResultNotifyRequest();
obj1.setAmount(10000L);
obj1.setRequestNo("18989");
obj1.setStatus("QUALIFIED");
obj1.setBizNo("898989");
TmallFinCarOpenCreditResultNotifyRequest.FailReason obj2 = new TmallFinCarOpenCreditResultNotifyRequest.FailReason();
obj2.setCode("400");
obj2.setMsg("机构授信失败");
obj1.setFailReason(obj2);
obj1.setType("RISK_CREDIT");
obj1.setCurrency("CNY");
obj1.setEventTime("2019-08-06 11:33:09");
obj1.setCustomerType("ALI");
obj1.setCustomerId("288890902");
obj1.setChannel("DS_APP");
req.setCreditResultNotifyRequest(obj1);
TmallFinCarOpenCreditResultNotifyResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<tmall_fin_car_open_credit_result_notify_response>
    <result>
        <message>输入参数校验失败</message>
        <success>true</success>
        <code>10000</code>
        <retry>true</retry>
    </result>
</tmall_fin_car_open_credit_result_notify_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部