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

alibaba.finance.agreement.upload.notify (企业贷款业务-机构协议上传结果推送)

企业贷款业务-机构协议上传结果推送

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
external_agreement_notify_request ExternalAgreementNotifyRequest 必须 请求参数
  • └ institution
  • String
  • 可选
  • JIANGSU
  • 合作机构
  • └ apply_no
  • String
  • 可选
  • 123132131313123
  • 阿里业务单号,如果是支用相关,那么支用申请单号; 如果是授信相关,那么传授信申请单号。
  • attachment_list
  • Attachment []
  • 必须
  • {}
  • 协议列表
  • └ path
  • String
  • 可选
  • /edn/aliababa/file
  • 文件路径
  • └ type
  • String
  • 可选
  • TMALL_DDD_YZ_JSBK_PERSONAL_CREDIT_AUTH
  • 文件编码
  • └ name
  • String
  • 可选
  • 12232323232323
  • 文件名
  • └ suffix
  • String
  • 可选
  • pdf
  • 文件后缀
  • └ request_id
  • String
  • 可选
  • 12312312313123
  • 推送幂等ID
  • └ customer_id
  • String
  • 可选
  • 123123123123
  • 阿里客户ID
  • └ push_scene
  • String
  • 可选
  • LOAN
  • 推协议场景 CREDIT - 授信 LOAN- 支用 如果是支用通知,那么传CREDIT; 如果是授信通知,那么传LOAN
  • └ extend_info
  • String
  • 可选
  • {}
  • 扩展信息

响应参数

名称 类型 示例值 描述
result ExternalAgreementNotifyResponse 返回值
  • └ trace_id
  • String
  • 123131323
  • 单次请求的唯一ID
  • └ data
  • String
  • {}
  • 业务数据
  • └ success
  • Boolean
  • true
  • 结果true表示成功false表示失败
  • └ response_message
  • String
  • ""
  • 业务失败描述
  • └ response_code
  • String
  • ERROR
  • 系统码,失败的时候返回

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaFinanceAgreementUploadNotifyRequest req = new AlibabaFinanceAgreementUploadNotifyRequest();
AlibabaFinanceAgreementUploadNotifyRequest.ExternalAgreementNotifyRequest obj1 = new AlibabaFinanceAgreementUploadNotifyRequest.ExternalAgreementNotifyRequest();
obj1.setInstitution("JIANGSU");
obj1.setApplyNo("123132131313123");
List<AlibabaFinanceAgreementUploadNotifyRequest.Attachment> list3 = new ArrayList<AlibabaFinanceAgreementUploadNotifyRequest.Attachment>();
AlibabaFinanceAgreementUploadNotifyRequest.Attachment obj4 = new AlibabaFinanceAgreementUploadNotifyRequest.Attachment();
list3.add(obj4);
obj4.setPath("/edn/aliababa/file");
obj4.setType("TMALL_DDD_YZ_JSBK_PERSONAL_CREDIT_AUTH");
obj4.setName("12232323232323");
obj4.setSuffix("pdf");
obj1.setAttachmentList(list3);
obj1.setRequestId("12312312313123");
obj1.setCustomerId("123123123123");
obj1.setPushScene("LOAN");
obj1.setExtendInfo("{}");
req.setExternalAgreementNotifyRequest(obj1);
AlibabaFinanceAgreementUploadNotifyResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
1
2
3
4
5
6
7
8
9
<alibaba_finance_agreement_upload_notify_response>
    <result>
        <trace_id>123131323</trace_id>
        <data>{}</data>
        <success>true</success>
        <response_message>&quot;&quot;</response_message>
        <response_code>ERROR</response_code>
    </result>
</alibaba_finance_agreement_upload_notify_response>

异常示例

  • XML示例
  • JSON示例
1
2
3
4
5
6
<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

返回
顶部