文档中心 > API类目 > 天猫供应链

tmall.fenxiao.wc.item.get (供销弱管控商品查询)

供销弱管控商品查询

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
wc_item TopQueryWcItemDo 可选 查询对象
  • └ item_ids
  • Number []
  • 必须
  • 2300826472426
  • 商品id列表
  • └ product_param
  • String []
  • 可选
  • 暂无
  • 保留产品查询参数
  • └ fields
  • String []
  • 可选
  • skus
  • 指定查询结果返回的字段,可选值:skus,images,skus.quantity,quantity
  • └ user_id
  • Number
  • 可选
  • 134343
  • 买手ID
  • └ target_market
  • Number
  • 可选
  • 1110021
  • 目标市场的渠道code

响应参数

名称 类型 示例值 描述
result GpTopResultDo gp_top_result_do 结果对象
  • └ items
  • String
  • 见附录
  • 内容json
  • └ total_results
  • Number
  • 1
  • 返回结果数量

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TmallFenxiaoWcItemGetRequest req = new TmallFenxiaoWcItemGetRequest();
TmallFenxiaoWcItemGetRequest.TopQueryWcItemDo obj1 = new TmallFenxiaoWcItemGetRequest.TopQueryWcItemDo();
obj1.setItemIds(new Long[] { 2300826472426 };
);
obj1.setProductParam("暂无");
obj1.setFields("skus");
obj1.setUserId(134343L);
obj1.setTargetMarket(1110021L);
req.setWcItem(obj1);
TmallFenxiaoWcItemGetResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<tmall_fenxiao_wc_item_get_response>
    <result>
        <items>见附录</items>
        <total_results>1</total_results>
    </result>
</tmall_fenxiao_wc_item_get_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

返回
顶部