淘宝客商品详情查询(详细版)
| 名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
|---|---|---|---|---|---|
| item_id | String | 必须 | 3232 | 商品ID。多个用","分割,一次最多查询20个 | |
| ip | String | 可选 | 11.22.33.43 | ip地址,影响邮费获取,如果不传或者传入不准确,邮费无法精准提供 | |
| get_topn_rate | Number | 可选 | 0 | 是否获取前N件佣金信息,0否,1是,其他值否 | |
| biz_scene_id | String | 可选 | 1 | 1-动态ID转链场景,2-消费者比价场景,3-商品库导购场景(不填默认为1) | |
| promotion_type | String | 可选 | 2 | 1-自购省,2-推广赚(代理模式专属ID,代理模式必填,非代理模式不用填写该字段) | |
| relation_id | String | 可选 | 1 | 渠道关系ID | |
| manage_item_pub_id | Number | 可选 | 1 | 商品库服务账户(场景id3权限对应的memberid) |
| 名称 | 类型 | 示例值 | 描述 |
|---|---|---|---|
| results | TbkItemDetail [] | 仅淘宝客商品,字段值根据API赋权等级输出 | |
|
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TbkItemDetailsGetRequest req = new TbkItemDetailsGetRequest();
req.setItemId("3232");
req.setIp("11.22.33.43");
req.setGetTopnRate(0L);
req.setBizSceneId("1");
req.setPromotionType("2");
req.setRelationId("1");
req.setManageItemPubId(1L);
TbkItemDetailsGetResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
<tbk_item_details_get_response>
<results>
<tbk_item_detail>
<real_post_fee>10.00</real_post_fee>
<property_image_list>
<tbk_item_detail_prop_img>
<image_url>https://img.alicdn.com/bao/uploaded/i4/33283/O1CN01JMY9uO1a7enNCmCEP_!!33283.jpg</image_url>
<properties>1627207:6733755172(颜色分类--棉柔巾100抽(绿))</properties>
</tbk_item_detail_prop_img>
</property_image_list>
<property_list>
<tbk_item_detail_prop>
<value_text>36</value_text>
<value_id>671</value_id>
<property_text>尺码</property_text>
<property_id>20509</property_id>
</tbk_item_detail_prop>
</property_list>
<tmall_desc_url>ttps://mdetail.tmall.com/templates/pages/desc?id=5323</tmall_desc_url>
<taobao_desc_url>https://h5.m.taobao.com/app/detail/desc.html?_isH5Des=true#!id=2332&type=0&f=sdsdsd</taobao_desc_url>
<sku_list>
<tbk_item_detail_sku>
<property_list>
<tbk_item_detail_sku_prop>
<value_text>藏青色</value_text>
<value_id>28866</value_id>
<property_text>颜色分类</property_text>
<property_id>1627207</property_id>
<value_alias_text>藏青色</value_alias_text>
</tbk_item_detail_sku_prop>
</property_list>
<quantity>6</quantity>
<sku_id>4112264076</sku_id>
<sku_final_price>88.50</sku_final_price>
<sku_reserve_price>102.00</sku_reserve_price>
</tbk_item_detail_sku>
</sku_list>
<level_one_category_name>女装</level_one_category_name>
<item_id>4112264076123</item_id>
<title>连衣裙</title>
<pict_url>http://gi4.md.alicdn.com/bao/uploaded/i4/xxx.jpg</pict_url>
<small_images>
<string>http://gi4.md.alicdn.com/bao/uploaded/i4/xxx.jpg</string>
</small_images>
<user_type>1</user_type>
<provcity>杭州</provcity>
<item_url>http://detail.m.tmall.com/item.htm?id=xxx</item_url>
<seller_id>123</seller_id>
<volume>1</volume>
<category_name>情趣内衣</category_name>
<is_prepay>true</is_prepay>
<shop_dsr>23</shop_dsr>
<ratesum>13</ratesum>
<i_rfd_rate>true</i_rfd_rate>
<h_good_rate>true</h_good_rate>
<h_pay_rate30>true</h_pay_rate30>
<material_lib_type>1</material_lib_type>
<presale_discount_fee_text>付定金立减20元</presale_discount_fee_text>
<presale_tail_end_time>1937297392332</presale_tail_end_time>
<presale_tail_start_time>1937297392332</presale_tail_start_time>
<presale_end_time>1937297392332</presale_end_time>
<presale_start_time>1937297392332</presale_start_time>
<presale_deposit>100</presale_deposit>
<ju_play_end_time>1937297392332</ju_play_end_time>
<ju_play_start_time>1937297392332</ju_play_start_time>
<play_info>玩法</play_info>
<tmall_play_activity_end_time>1937297392332</tmall_play_activity_end_time>
<tmall_play_activity_start_time>1937297392332</tmall_play_activity_start_time>
<reserve_price>102.00</reserve_price>
<zk_final_price>88.00</zk_final_price>
<nick>xx旗舰店</nick>
<white_image>https://img.alicdn.com/bao/uploaded/TB1De0xk4n1gK0jSZKPXXXvUXXa.png</white_image>
<short_title>巴布豆菠萝超薄干爽拉拉裤xl60+6</short_title>
<quantity>10</quantity>
<commission_rate>1550</commission_rate>
<coupon_id>d62db1ab8d9546b1bf0ff49bda5fc33b</coupon_id>
<coupon_start_time>2017-10-29</coupon_start_time>
<coupon_end_time>2017-10-29</coupon_end_time>
<coupon_info>满299元减20元</coupon_info>
<coupon_amount>10.00</coupon_amount>
<coupon_start_fee>29.00</coupon_start_fee>
<coupon_remain_count>111</coupon_remain_count>
<coupon_total_count>22323</coupon_total_count>
<sale_price>168</sale_price>
<kuadian_promotion_info>["每100减20","每200减50"]</kuadian_promotion_info>
<superior_brand>1</superior_brand>
<hot_flag>1</hot_flag>
<topn_info>
<topn_quantity>3000</topn_quantity>
<topn_total_count>3000</topn_total_count>
<topn_end_time>1937297392332</topn_end_time>
<topn_start_time>1937297392332</topn_start_time>
<topn_rate>30</topn_rate>
</topn_info>
<input_item_id>qeqscd1231-uqwenqe</input_item_id>
</tbk_item_detail>
</results>
</tbk_item_details_get_response>
<error_response>
<code>50</code>
<msg>Remote service error</msg>
<sub_code>isv.invalid-parameter</sub_code>
<sub_msg>非法参数</sub_msg>
</error_response>
| 错误码 | 错误描述 | 解决方案 |
|---|---|---|
| 50001 | 无结果 | 更换商品查询 |
| 40001 | 内部调用失败 | 稍后重试 |
| 50002 | 调用频率过高 | 稍后重试 |
| 2 | pid不正确 | 检查除pid之外的相关入参adzoneId和siteId |
| 4 | adzoneId不存在 | 检查入参adzoneId |
| 5 | pid校验出错 | 检查pid相关入参,稍后重试 |
| 8 | 未找到对应pid,请检查输入是否正确 | 检查入参 |
| isp.tbkapi-service-unavailable | 系统异常 | 请重试 |