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

taobao.fs.trade.buyer.history.items.query (获取淘宝用户购物历史中的服饰商品的接口)

获取淘宝用户购物历史中的服饰商品的接口

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
buyer_shopping_history_item_req BuyerShoppingHistoryItemReq 必须 入参
  • └ page_no
  • Number
  • 必须
  • 1
  • 页码
  • └ page_size
  • Number
  • 必须
  • 100
  • 页大小

响应参数

名称 类型 示例值 描述
result BaseHsfResponse 返回结果
  • └ trace_id
  • String
  • 2132b44c17677908150692038e4b2a
  • 调用记录ID
  • └ msg
  • String
  • 成功
  • 提示信息
  • └ code
  • Number
  • 10000
  • 错误码
  • data
  • BuyerShoppingHistoryItemDTO []
  • 返回数据
  • └ on_shelf_status
  • Boolean
  • false
  • 是否上架状态
  • └ sku_images
  • String []
  • sku颜色属性图
  • └ main_image
  • String
  • https://img.alicdn.com/imgextra/i2/248358071/O1CN01qm6Nh629UZjaYnAa3_!!248358071.jpg
  • 主图1
  • └ item_title
  • String
  • #9616东大门秋季韩版通勤小香气质设计感丝巾抽绳百搭长袖衬衣女
  • 商品标题
  • └ category_list
  • String []
  • 类目树名称
  • └ item_short_url
  • String
  • https://mtwwitem.taobao.com/s/5wVQlzY2e
  • 商品短链接(加密后)
  • property_list
  • KeyValueDTO []
  • {"产地":"中国","品牌":"无品牌"}
  • 属性信息
  • └ value
  • String
  • 中国
  • 属性value
  • └ key
  • String
  • 产地
  • 属性key
  • └ white_background_image
  • String
  • https://img.alicdn.com/imgextra/i2/248358071/O1CN01qm6Nh629UZjaYnAa3_!!248358071.jpg
  • 白底图
  • └ success
  • Boolean
  • true
  • 调用是否成功

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
FsTradeBuyerHistoryItemsQueryRequest req = new FsTradeBuyerHistoryItemsQueryRequest();
FsTradeBuyerHistoryItemsQueryRequest.BuyerShoppingHistoryItemReq obj1 = new FsTradeBuyerHistoryItemsQueryRequest.BuyerShoppingHistoryItemReq();
obj1.setPageNo(1L);
obj1.setPageSize(100L);
req.setBuyerShoppingHistoryItemReq(obj1);
FsTradeBuyerHistoryItemsQueryResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<fs_trade_buyer_history_items_query_response>
    <result>
        <trace_id>2132b44c17677908150692038e4b2a</trace_id>
        <msg>成功</msg>
        <code>10000</code>
        <data>
            <buyer_shopping_history_item_d_t_o>
                <on_shelf_status>false</on_shelf_status>
                <main_image>https://img.alicdn.com/imgextra/i2/248358071/O1CN01qm6Nh629UZjaYnAa3_!!248358071.jpg</main_image>
                <item_title>#9616东大门秋季韩版通勤小香气质设计感丝巾抽绳百搭长袖衬衣女</item_title>
                <item_short_url>https://mtwwitem.taobao.com/s/5wVQlzY2e</item_short_url>
                <property_list>
                    <key_value_d_t_o>
                        <value>中国</value>
                        <key>产地</key>
                    </key_value_d_t_o>
                </property_list>
                <white_background_image>https://img.alicdn.com/imgextra/i2/248358071/O1CN01qm6Nh629UZjaYnAa3_!!248358071.jpg</white_background_image>
            </buyer_shopping_history_item_d_t_o>
        </data>
        <success>true</success>
    </result>
</fs_trade_buyer_history_items_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

返回
顶部