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

alibaba.pur.infra.queryoubyid (根据buid查找bu)

根据buid查找bu

公共参数

请求参数

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

响应参数

名称 类型 示例值 描述
result OuTopDto [] null 系统自动生成
  • └ bu_code
  • String
  • ZD
  • ou的code
  • └ name
  • String
  • 蚂蚁国内
  • OU的name
  • └ id
  • Number
  • abdcd13sd213
  • id
  • └ en_name
  • String
  • Z69
  • OU英文名称

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaPurInfraQueryoubyidRequest req = new AlibabaPurInfraQueryoubyidRequest();
req.setBuId(6L);
req.setIsActive("y");
AlibabaPurInfraQueryoubyidResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_pur_infra_queryoubyid_response>
    <result>
        <ou_top_dto>
            <bu_code>ZD</bu_code>
            <name>蚂蚁国内</name>
            <id>abdcd13sd213</id>
            <en_name>Z69</en_name>
        </ou_top_dto>
    </result>
</alibaba_pur_infra_queryoubyid_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

返回
顶部