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

alibaba.pur.infra.queryallbu (获取所有bu)

获取所有bu

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
is_active String 可选 null y是,n否,all或""表示有效和无效的记录都返回

响应参数

名称 类型 示例值 描述
result BuTopDto [] null 系统自动生成
  • └ bu_code
  • String
  • BD
  • bu的code
  • └ is_parent
  • String
  • y
  • 是否是父级
  • └ name
  • String
  • B2B国内
  • bu的名字
  • └ id
  • Number
  • 23wer234sdf
  • id
  • └ parent_id
  • Number
  • 5
  • 父级的id
  • └ en_name
  • String
  • ZD
  • BU英文

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaPurInfraQueryallbuRequest req = new AlibabaPurInfraQueryallbuRequest();
req.setIsActive("null");
AlibabaPurInfraQueryallbuResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_pur_infra_queryallbu_response>
    <result>
        <bu_top_dto>
            <bu_code>BD</bu_code>
            <is_parent>y</is_parent>
            <name>B2B国内</name>
            <id>23wer234sdf</id>
            <parent_id>5</parent_id>
            <en_name>ZD</en_name>
        </bu_top_dto>
    </result>
</alibaba_pur_infra_queryallbu_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

返回
顶部