文档中心 > API类目 > 淘宝服饰

taobao.fs.ww.items.status.query (淘宝服饰行业ww查询商品状态接口)

淘宝服饰行业ww查询商品状态接口

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
buyer_shopping_history_item_req BuyerShoppingHistoryItemReq 必须 查询参数
  • └ encode_item_id_list
  • String []
  • 必须
  • xxxx
  • 加密的商品ID

响应参数

名称 类型 示例值 描述
result BaseHsfResponse 结果
  • └ trace_id
  • String
  • 2132b44c17677908150692038e4b2a
  • 调用记录ID
  • └ msg
  • String
  • 成功
  • 提示信息
  • └ code
  • Number
  • 10000
  • 错误码
  • data
  • BuyerShoppingItemInfoDTO []
  • 返回数据
  • └ encode_item_id
  • String
  • xxxx
  • 加密后的商品ID
  • └ item_status
  • Number
  • 1
  • 商品状态 1 上架 0:下架
  • └ success
  • Boolean
  • true
  • 是否调用成功

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
FsWwItemsStatusQueryRequest req = new FsWwItemsStatusQueryRequest();
FsWwItemsStatusQueryRequest.BuyerShoppingHistoryItemReq obj1 = new FsWwItemsStatusQueryRequest.BuyerShoppingHistoryItemReq();
obj1.setEncodeItemIdList("xxxx");
req.setBuyerShoppingHistoryItemReq(obj1);
FsWwItemsStatusQueryResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<fs_ww_items_status_query_response>
    <result>
        <trace_id>2132b44c17677908150692038e4b2a</trace_id>
        <msg>成功</msg>
        <code>10000</code>
        <data>
            <buyer_shopping_item_info_d_t_o>
                <encode_item_id>xxxx</encode_item_id>
                <item_status>1</item_status>
            </buyer_shopping_item_info_d_t_o>
        </data>
        <success>true</success>
    </result>
</fs_ww_items_status_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

返回
顶部