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

alibaba.finance.common.invoke (通用调用)

通用调用

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
external_common_request ExternalCommonRequest 可选 请求体
  • └ instruction_type
  • String
  • 必须
  • LOGIN_OSS
  • 操作类型
  • └ idempotent_no
  • String
  • 可选
  • 123
  • 幂等号
  • └ notify_content
  • String
  • 可选
  • {}
  • 参数
  • └ institution_type
  • String
  • 必须
  • SPDB
  • 机构

响应参数

名称 类型 示例值 描述
trace_id String 123 trace
data String {} 返回内容
response_message String xxx 返回信息
response_code String SUCCESS 返回 code

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaFinanceCommonInvokeRequest req = new AlibabaFinanceCommonInvokeRequest();
AlibabaFinanceCommonInvokeRequest.ExternalCommonRequest obj1 = new AlibabaFinanceCommonInvokeRequest.ExternalCommonRequest();
obj1.setInstructionType("LOGIN_OSS");
obj1.setIdempotentNo("123");
obj1.setNotifyContent("{}");
obj1.setInstitutionType("SPDB");
req.setExternalCommonRequest(obj1);
AlibabaFinanceCommonInvokeResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_finance_common_invoke_response>
    <trace_id>123</trace_id>
    <data>{}</data>
    <response_message>xxx</response_message>
    <response_code>SUCCESS</response_code>
</alibaba_finance_common_invoke_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

返回
顶部