文档中心 > API类目 > 企业贷款-机构接入API

alibaba.finance.loan.result.notify (企业贷款业务-机构支用结果推送)

企业贷款业务-机构支用结果推送

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
external_loan_notify_request ExternalLoanNotifyRequest 可选 参数
  • └ request_id
  • String
  • 必须
  • 21312312313123123
  • 幂等ID
  • └ institution_loan_no
  • String
  • 可选
  • 2321313
  • 机构借据单
  • └ loan_apply_no
  • String
  • 可选
  • 12312321
  • 阿里支用申请单
  • └ extend_info
  • String
  • 可选
  • {"key":"value"}
  • 扩展信息
  • └ fail_reason_message
  • String
  • 可选
  • "错误"
  • 错误信息
  • └ loan_amount
  • String
  • 可选
  • 100.00
  • 支用金额
  • └ institution
  • String
  • 可选
  • JIANGSU
  • 机构
  • └ customer_id
  • String
  • 可选
  • "1929292"
  • 客户ID
  • └ loan_status
  • String
  • 可选
  • "SUCCESS"
  • 支用状态
  • └ loan_time
  • Date
  • 可选
  • 2024-11-18 12:22:31
  • 支用时间
  • └ fail_reason_code
  • String
  • 可选
  • "LOAN_REJECT"
  • 风控拒绝

响应参数

名称 类型 示例值 描述
result ExternalLoanNotifyResponse 返回
  • └ trace_id
  • String
  • ”223232hkjssdsd"
  • 一次请求的ID
  • └ data
  • String
  • {"key":"value"}
  • 扩展信息,业务数据从这里返回
  • └ success
  • Boolean
  • true
  • 是否成功
  • └ response_message
  • String
  • "系统异常"
  • 业务数据
  • └ response_code
  • String
  • SYSTEM_ERROR
  • 系统码

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaFinanceLoanResultNotifyRequest req = new AlibabaFinanceLoanResultNotifyRequest();
AlibabaFinanceLoanResultNotifyRequest.ExternalLoanNotifyRequest obj1 = new AlibabaFinanceLoanResultNotifyRequest.ExternalLoanNotifyRequest();
obj1.setRequestId("21312312313123123");
obj1.setInstitutionLoanNo("2321313");
obj1.setLoanApplyNo("12312321");
obj1.setExtendInfo("{\"key\":\"value\"}");
obj1.setFailReasonMessage("\"错误\"");
obj1.setLoanAmount("100.00");
obj1.setInstitution("JIANGSU");
obj1.setCustomerId("\"1929292\"");
obj1.setLoanStatus("\"SUCCESS\"");
obj1.setLoanTime(StringUtils.parseDateTime("2024-11-18 12:22:31"));
obj1.setFailReasonCode("\"LOAN_REJECT\"");
req.setExternalLoanNotifyRequest(obj1);
AlibabaFinanceLoanResultNotifyResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_finance_loan_result_notify_response>
    <result>
        <trace_id>”223232hkjssdsd&quot;</trace_id>
        <data>{&quot;key&quot;:&quot;value&quot;}</data>
        <success>true</success>
        <response_message>&quot;系统异常&quot;</response_message>
        <response_code>SYSTEM_ERROR</response_code>
    </result>
</alibaba_finance_loan_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

返回
顶部