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

alibaba.finance.credit.result.notify (企业贷款业务-机构授信结果推送)

企业贷款业务-机构授信结果推送

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param ExternalCreditNotifyRequest 必须 请求参数
  • └ request_id
  • String
  • 必须
  • 123123123213213123123
  • 请求幂等单
  • └ customer_id
  • String
  • 可选
  • 232131323
  • 阿里客户ID
  • └ credit_apply_no
  • String
  • 可选
  • FI231313131312313123
  • 阿里授信申请单
  • └ institution_credit_apply_no
  • String
  • 可选
  • 11313123123123213
  • 机构授信申请单
  • └ institution_credit_no
  • String
  • 可选
  • 31313123213
  • 机构授信合同单
  • └ institution_customer_id
  • String
  • 可选
  • 231313123
  • 机构客户ID
  • └ credit_status
  • String
  • 可选
  • QUALIFIED
  • 授信状态
  • └ credit_time
  • Date
  • 可选
  • 2019-11-22 00:00:00
  • 授信成功时间
  • └ credit_quota
  • String
  • 可选
  • 1213213.21
  • 授信额度
  • └ interest_rate
  • String
  • 可选
  • 0.18
  • 授信年化利率
  • └ start_time
  • Date
  • 可选
  • 2019-11-22 00:00:00
  • 授信开始时间
  • └ end_time
  • Date
  • 可选
  • 2019-11-22 00:00:00
  • 授信结束时间
  • └ extend_info
  • String
  • 可选
  • {"key":value}
  • 扩展字段
  • └ fail_reason_code
  • String
  • 可选
  • RETRY_MAX_LIMITS
  • 授信失败原因码
  • └ fail_reason_message
  • String
  • 可选
  • "超过最大次数"
  • 授信失败原因描述
  • └ next_available_apply_time
  • Date
  • 可选
  • 2050-11-22 00:00:00
  • 下次准入时间
  • └ credit_term
  • String
  • 可选
  • 1
  • 授信期限
  • └ credit_term_unit
  • String
  • 可选
  • "M"
  • 授信期限单位

响应参数

名称 类型 示例值 描述
result ExternalCreditNotifyResponse result
  • └ trace_id
  • String
  • 1231231312321跨境1回款
  • traceId
  • └ data
  • String
  • {\"key\":\"value\"}
  • data
  • └ success
  • Boolean
  • true
  • success
  • └ response_message
  • String
  • 未知异常
  • responseMessage
  • └ response_code
  • String
  • HC
  • responseCode

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaFinanceCreditResultNotifyRequest req = new AlibabaFinanceCreditResultNotifyRequest();
AlibabaFinanceCreditResultNotifyRequest.ExternalCreditNotifyRequest obj1 = new AlibabaFinanceCreditResultNotifyRequest.ExternalCreditNotifyRequest();
obj1.setRequestId("123123123213213123123");
obj1.setCustomerId("232131323");
obj1.setCreditApplyNo("FI231313131312313123");
obj1.setInstitutionCreditApplyNo("11313123123123213");
obj1.setInstitutionCreditNo("31313123213");
obj1.setInstitutionCustomerId("231313123");
obj1.setCreditStatus("QUALIFIED");
obj1.setCreditTime(StringUtils.parseDateTime("2019-11-22 00:00:00"));
obj1.setCreditQuota("1213213.21");
obj1.setInterestRate("0.18");
obj1.setStartTime(StringUtils.parseDateTime("2019-11-22 00:00:00"));
obj1.setEndTime(StringUtils.parseDateTime("2019-11-22 00:00:00"));
obj1.setExtendInfo("{\"key\":value}");
obj1.setFailReasonCode("RETRY_MAX_LIMITS");
obj1.setFailReasonMessage("\"超过最大次数\"");
obj1.setNextAvailableApplyTime(StringUtils.parseDateTime("2050-11-22 00:00:00"));
obj1.setCreditTerm("1");
obj1.setCreditTermUnit("\"M\"");
req.setParam(obj1);
AlibabaFinanceCreditResultNotifyResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_finance_credit_result_notify_response>
    <result>
        <trace_id>1231231312321跨境1回款</trace_id>
        <data>{\&quot;key\&quot;:\&quot;value\&quot;}</data>
        <success>true</success>
        <response_message>未知异常</response_message>
        <response_code>HC</response_code>
    </result>
</alibaba_finance_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

返回
顶部