alibaba.mkt.cell.common.hb.items.recommend (惊喜红包支付宝侧商品推荐接口)

惊喜红包支付宝侧商品推荐接口

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
jingxi_hb_alipay_feeds_request JingxiHbAlipayFeedsRequest 必须 request
  • └ user_id
  • Number
  • 必须
  • 1001
  • 淘宝用户id
  • └ fund_id
  • Number
  • 可选
  • 11
  • 红包实例id,有红包时传
  • └ has_win_hb
  • Boolean
  • 必须
  • true
  • 否领了红包

响应参数

名称 类型 示例值 描述
result Result result
  • data
  • Data
  • data
  • items
  • Items []
  • 商品列表
  • └ item_id
  • String
  • 712975762736
  • 商品id
  • └ item_white_pic
  • String
  • //img.alicdn.com/bao/upload/O1CN01cnQ9CJ1eJoFat3csS_!!6000000003851-0-yinhe.jpg
  • 商品白底图
  • └ item_title
  • String
  • 博音适用苹果耳机充电仓盒蓝牙1/2代3三耳机仓air二pro一代充电器
  • 商品标题
  • └ item_price
  • String
  • 73
  • 商品优惠价格
  • └ item_url
  • String
  • //detail.tmall.com/item.htm?id=626927079925&scm=1007.10302.274556.3208939_0_0&pvid=a77c0430-a817-47f2-82b6-d2b1300cda5c&utparam=%7B%22x_object_type%22%3A%22item%22%2C%22ald_res%22%3A%2237763161%22%2C%22tpp_buckets%22%3A%22302%230%23411103%230_30636%230%23411103%2319%22%2C%22floorId%22%3A43194206%2C%22ald_solution%22%3A%22commonPersonalizedSolution%22%2C%22pvid%22%3A%22a77c0430-a817-47f2-82b6-d2b1300cda5c%22%2C%22ald_biz%22%3A1111%2C%22utcP%22%3A%2210_2000%22%2C%22scm%22%3A%221007.10302.411103.3208939_0_0%22%2C%22ump_item_price%22%3A%2220%22%2C%22traceId%22%3A%222131332717477408126038367e7e47%22%2C%22ald_st%22%3A%221747740812888%22%2C%22recIndex%22%3A1%2C%22sourceTypeKey%22%3A%2234_promotionVenue%22%2C%22item_price%22%3A%2220%22%2C%22ump_invoke%22%3A%222%22%2C%22t_s%22%3A%221747740813805%5E1748275199000%5Espsd4htklj_%5E%5E%5E%5E%5E330108%22%2C%22sku_id%22%3A%225120195828528%22%2C%22price_stage%22%3A%220%22%2C%22x_item_ids%22%3A626927079925%2C%22x_object_id%22%3A626927079925%7D
  • 商品跳转链接
  • └ success
  • Boolean
  • true
  • success

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaMktCellCommonHbItemsRecommendRequest req = new AlibabaMktCellCommonHbItemsRecommendRequest();
AlibabaMktCellCommonHbItemsRecommendRequest.JingxiHbAlipayFeedsRequest obj1 = new AlibabaMktCellCommonHbItemsRecommendRequest.JingxiHbAlipayFeedsRequest();
obj1.setUserId(1001L);
obj1.setFundId(11L);
obj1.setHasWinHb(true);
req.setJingxiHbAlipayFeedsRequest(obj1);
AlibabaMktCellCommonHbItemsRecommendResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_mkt_cell_common_hb_items_recommend_response>
    <result>
        <data>
            <items>
                <items>
                    <item_id>712975762736</item_id>
                    <item_white_pic>//img.alicdn.com/bao/upload/O1CN01cnQ9CJ1eJoFat3csS_!!6000000003851-0-yinhe.jpg</item_white_pic>
                    <item_title>博音适用苹果耳机充电仓盒蓝牙1/2代3三耳机仓air二pro一代充电器</item_title>
                    <item_price>73</item_price>
                    <item_url>//detail.tmall.com/item.htm?id=626927079925&amp;scm=1007.10302.274556.3208939_0_0&amp;pvid=a77c0430-a817-47f2-82b6-d2b1300cda5c&amp;utparam=%7B%22x_object_type%22%3A%22item%22%2C%22ald_res%22%3A%2237763161%22%2C%22tpp_buckets%22%3A%22302%230%23411103%230_30636%230%23411103%2319%22%2C%22floorId%22%3A43194206%2C%22ald_solution%22%3A%22commonPersonalizedSolution%22%2C%22pvid%22%3A%22a77c0430-a817-47f2-82b6-d2b1300cda5c%22%2C%22ald_biz%22%3A1111%2C%22utcP%22%3A%2210_2000%22%2C%22scm%22%3A%221007.10302.411103.3208939_0_0%22%2C%22ump_item_price%22%3A%2220%22%2C%22traceId%22%3A%222131332717477408126038367e7e47%22%2C%22ald_st%22%3A%221747740812888%22%2C%22recIndex%22%3A1%2C%22sourceTypeKey%22%3A%2234_promotionVenue%22%2C%22item_price%22%3A%2220%22%2C%22ump_invoke%22%3A%222%22%2C%22t_s%22%3A%221747740813805%5E1748275199000%5Espsd4htklj_%5E%5E%5E%5E%5E330108%22%2C%22sku_id%22%3A%225120195828528%22%2C%22price_stage%22%3A%220%22%2C%22x_item_ids%22%3A626927079925%2C%22x_object_id%22%3A626927079925%7D</item_url>
                </items>
            </items>
        </data>
        <success>true</success>
    </result>
</alibaba_mkt_cell_common_hb_items_recommend_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

返回
顶部