文档中心 > API类目 > 信息平台-采购

alipay.infop.ceres.supplierbank.query (根据bankid查询供应商银行账号信息)

查询蚂蚁供应商银行账号信息

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
bank_id Number 可选 20200515186 bank主键id

响应参数

名称 类型 示例值 描述
result CallResult 返回值 返回值
  • └ err_code
  • String
  • 0
  • 错误码
  • bank_info
  • SupplierBankDto
  • 1
  • 1
  • └ bank_branch_name
  • String
  • 1
  • 1
  • └ account
  • String
  • 1
  • 1
  • └ swift_code
  • String
  • 1
  • 1
  • └ account_name
  • String
  • 1
  • 1
  • └ type
  • String
  • alipay
  • 类型
  • └ err_message
  • String
  • 系统异常
  • 错误信息
  • └ is_success
  • Boolean
  • true
  • 是否成功

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlipayInfopCeresSupplierbankQueryRequest req = new AlipayInfopCeresSupplierbankQueryRequest();
req.setBankId(20200515186L);
AlipayInfopCeresSupplierbankQueryResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alipay_infop_ceres_supplierbank_query_response>
    <result>
        <err_code>0</err_code>
        <bank_info>
            <bank_branch_name>1</bank_branch_name>
            <account>1</account>
            <swift_code>1</swift_code>
            <account_name>1</account_name>
            <type>alipay</type>
        </bank_info>
        <err_message>系统异常</err_message>
        <is_success>true</is_success>
    </result>
</alipay_infop_ceres_supplierbank_query_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

返回
顶部