注意:以下文档只适用于TOP接口,请谨慎使用!

文档中心 > API类目 > MOZI账号API

alibaba.mozi.buc.account.list.accountids (根据一批账号ID查询账号列表)

根据一批账号ID查询账号列表

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
list_account_ids ListAccountsByAccountIdsRequest 可选 请求参数
  • └ tenant_id
  • Number
  • 必须
  • 1
  • 租户ID
  • └ account_ids
  • Number []
  • 必须
  • [123,456]
  • 账号ID列表
  • └ available
  • String
  • 可选
  • T
  • 账号是否可用
  • └ request_meta_data
  • String
  • 可选
  • test
  • 附加信息

响应参数

名称 类型 示例值 描述
result ListAccountsByAccountIdsResult test 出参
  • └ data
  • String
  • accountMap
  • 返回的数据
  • └ success
  • Boolean
  • true
  • 是否成功
  • └ request_id
  • String
  • 1224
  • 请求的序列化
  • └ response_message
  • String
  • OK
  • 返回的状态消息
  • └ response_meta_data
  • String
  • test
  • 返回的附件信息
  • └ response_code
  • String
  • 0
  • 返回码

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaMoziBucAccountListAccountidsRequest req = new AlibabaMoziBucAccountListAccountidsRequest();
AlibabaMoziBucAccountListAccountidsRequest.ListAccountsByAccountIdsRequest obj1 = new AlibabaMoziBucAccountListAccountidsRequest.ListAccountsByAccountIdsRequest();
obj1.setTenantId(1L);
obj1.setAccountIds(new Long[] { 123,456 };
);
obj1.setAvailable("T");
obj1.setRequestMetaData("test");
req.setListAccountIds(obj1);
AlibabaMoziBucAccountListAccountidsResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_mozi_buc_account_list_accountids_response>
    <result>
        <data>accountMap</data>
        <success>true</success>
        <request_id>1224</request_id>
        <response_message>OK</response_message>
        <response_meta_data>test</response_meta_data>
        <response_code>0</response_code>
    </result>
</alibaba_mozi_buc_account_list_accountids_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

返回
顶部