淘宝客-服务商-淘宝客商品详情查询升级版(简易版)
| 名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
|---|---|---|---|---|---|
| item_id | String | 可选 | 3232 | 商品ID。多个用","分割,一次最多查询20个 | |
| ip | String | 可选 | 11.22.33.43 | ip地址,影响邮费获取,如果不传或者传入不准确,邮费无法精准提供 | |
| biz_scene_id | String | 可选 | 1 | 1-动态ID转链场景,2-消费者比价场景,3-商品库导购场景(不填默认为1);场景id使用说明参考《淘宝客新商品ID升级》白皮书:https://www.yuque.com/taobaolianmengguanfangxiaoer/zmig94/tfyt0pahmlpzu2ud | |
| promotion_type | String | 可选 | 2 | 1-自购省,2-推广赚(代理模式专属ID,代理模式必填,非代理模式不用填写该字段) | |
| relation_id | String | 可选 | 1 | 渠道关系ID,仅适用于渠道推广场景 | |
| manage_item_pub_id | Number | 可选 | 1 | 商品库服务账户(场景id3权限对应的memberid) | |
| get_tlj_info | Number | 可选 | 0 | 是否获取单品淘礼金剩余数量,0-否,1-是,默认否(仅开通淘礼金权限媒体可查) | |
| uvid | String | 可选 | adjso7389rbnasd | 加密用户标识 | |
| special_id | String | 可选 | 123 | 会员运营id | |
| device_value | String | 可选 | xxx | 设备号加密后的值(MD5加密需32位小写);请先签署协议https://pub.alimama.com/fourth/protocol/common.htm?key=hangye_laxin | |
| device_encrypt | String | 可选 | MD5 | 设备号加密类型:MD5;请先签署协议https://pub.alimama.com/fourth/protocol/common.htm?key=hangye_laxin | |
| device_type | String | 可选 | IDFA | 设备号类型:IDFA或OAID;请先签署协议https://pub.alimama.com/fourth/protocol/common.htm?key=hangye_laxin | |
| item_dto | ItemDetailDTO | 可选 | 商品信息 | ||
|
| 名称 | 类型 | 示例值 | 描述 |
|---|---|---|---|
| results | TbkItemDetail [] | 仅淘宝客商品,字段值根据API赋权等级输出 | |
|
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TbkScItemInfoUpgradeGetRequest req = new TbkScItemInfoUpgradeGetRequest();
req.setItemId("3232");
req.setIp("11.22.33.43");
req.setBizSceneId("1");
req.setPromotionType("2");
req.setRelationId("1");
req.setManageItemPubId(1L);
req.setGetTljInfo(0L);
req.setUvid("adjso7389rbnasd");
req.setSpecialId("123");
req.setDeviceValue("xxx");
req.setDeviceEncrypt("MD5");
req.setDeviceType("IDFA");
TbkScItemInfoUpgradeGetRequest.ItemDetailDTO obj1 = new TbkScItemInfoUpgradeGetRequest.ItemDetailDTO();
obj1.setTraceCode("xxx");
obj1.setZgBtCode("xxxx");
obj1.setItemId("i87a9ja90d8-09qrjcoa7qwl");
req.setItemDto(obj1);
TbkScItemInfoUpgradeGetResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
<tbk_sc_item_info_upgrade_get_response>
<results>
<tbk_item_detail>
<item_id>4112264076123</item_id>
<publish_info>
<income_rate>15.5</income_rate>
<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>
<tlj_remain_num>19000</tlj_remain_num>
<two_hour_promotion_sales>24</two_hour_promotion_sales>
<daily_promotion_sales>111</daily_promotion_sales>
<cpa_reward_type>0 1 2</cpa_reward_type>
<cpa_reward_amount>1.11 2.22 3.21</cpa_reward_amount>
<income_info>
<commission_rate>55</commission_rate>
<commission_amount>12</commission_amount>
<subsidy_rate>1100,补贴比例*10000展示,如1100代表11%</subsidy_rate>
<subsidy_amount>5,单位:元</subsidy_amount>
<subsidy_upper_limit>10</subsidy_upper_limit>
<subsidy_type>妈妈补贴</subsidy_type>
<subsidy_info>
<subsidy_info_map_data>
<subsidy_type_detail>千万补贴</subsidy_type_detail>
<subsidy_upper_fee_detail>4,单位:元</subsidy_upper_fee_detail>
<subsidy_rate_detail>1100,补贴比例*10000展示,如1100代表11%</subsidy_rate_detail>
<subsidy_amount_detail>5,单位:元</subsidy_amount_detail>
</subsidy_info_map_data>
</subsidy_info>
</income_info>
<future_activity_commission_rate>1550表示15.5%</future_activity_commission_rate>
<future_activity_time>1665504000000</future_activity_time>
</publish_info>
<price_promotion_info>
<reserve_price>102.00</reserve_price>
<zk_final_price>88.00</zk_final_price>
<final_promotion_price>69.9</final_promotion_price>
<final_promotion_path_list>
<final_promotion_path_map_data>
<promotion_title>商品券</promotion_title>
<promotion_desc>满7999减1300</promotion_desc>
<promotion_fee>1300.00</promotion_fee>
<promotion_start_time>2019-11-10 21:59:59</promotion_start_time>
<promotion_end_time>2019-11-10 21:59:59</promotion_end_time>
<promotion_id>XX</promotion_id>
</final_promotion_path_map_data>
</final_promotion_path_list>
<promotion_tag_list>
<promotion_tag_map_data>
<tag_name>88VIP</tag_name>
</promotion_tag_map_data>
</promotion_tag_list>
<predict_rounding_up_price>56.1</predict_rounding_up_price>
<predict_rounding_up_price_desc>需买1件</predict_rounding_up_price_desc>
<more_promotion_list>
<more_promotion_map_data>
<promotion_title>满件折</promotion_title>
<promotion_desc>2件9折</promotion_desc>
<promotion_start_time>1661222400000</promotion_start_time>
<promotion_end_time>1662393600000</promotion_end_time>
<promotion_id>XX</promotion_id>
<promotion_total_count>1000</promotion_total_count>
<promotion_url>https://</promotion_url>
</more_promotion_map_data>
</more_promotion_list>
<activity_tag_list>
<activity_tag_map_data>
<tag_name>淘宝好价节</tag_name>
</activity_tag_map_data>
</activity_tag_list>
<gov_subsidy>
<tag_name>国家补贴</tag_name>
<state_subsidy_info>
<max_rebate>1</max_rebate>
<min_rebate>1</min_rebate>
<max_discount>15.00</max_discount>
<min_discount>15.00</min_discount>
</state_subsidy_info>
</gov_subsidy>
<future_activity_promotion_price>56.1</future_activity_promotion_price>
<future_activity_promotion_path_list>
<future_activity_promotion_d_t_o>
<promotion_title>商品券</promotion_title>
<promotion_desc>满7999减1300</promotion_desc>
<promotion_fee>1300.00</promotion_fee>
<promotion_start_time>1661184000000</promotion_start_time>
<promotion_end_time>1661788799000</promotion_end_time>
</future_activity_promotion_d_t_o>
</future_activity_promotion_path_list>
<final_promotion_target_type>10</final_promotion_target_type>
</price_promotion_info>
<input_item_iid>qeqscd1231-uqwenqe</input_item_iid>
<item_basic_info>
<title>连衣裙</title>
<pict_url>http://gi4.md.alicdn.com/bao/uploaded/i4/xxx.jpg</pict_url>
<level_one_category_name>女装</level_one_category_name>
<category_name>内衣</category_name>
<provcity>杭州</provcity>
<item_url>http://detail.m.tmall.com/item.htm?id=xxx</item_url>
<user_type>1</user_type>
<ratesum>13</ratesum>
<shop_dsr>23</shop_dsr>
<i_rfd_rate>true</i_rfd_rate>
<h_good_rate>true</h_good_rate>
<h_pay_rate30>true</h_pay_rate30>
<volume>1</volume>
<is_prepay>true</is_prepay>
<superior_brand>1</superior_brand>
<material_lib_type>1</material_lib_type>
<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>
<shop_title>xx旗舰店</shop_title>
<free_shipment>true</free_shipment>
<brand_name>淘宝心选</brand_name>
<short_title>巴布豆菠萝超薄干爽拉拉裤xl60+6</short_title>
<white_image>https://img.alicdn.com/bao/uploaded/TB1De0xk4n1gK0jSZKPXXXvUXXa.png</white_image>
<seller_id>123</seller_id>
<annual_vol>1万+</annual_vol>
</item_basic_info>
<presale_info>
<presale_tail_end_time>1567440000000</presale_tail_end_time>
<presale_tail_start_time>1567440000000</presale_tail_start_time>
<presale_end_time>1567440000000</presale_end_time>
<presale_start_time>1567440000000</presale_start_time>
<presale_deposit>100</presale_deposit>
<presale_discount_fee_text>付定金立减5元</presale_discount_fee_text>
</presale_info>
<zg_bt_code>xx</zg_bt_code>
<trace_code>xxx</trace_code>
<zg_bt_promotion_info>
<promotion_title>官方淘礼金</promotion_title>
<promotion_fee>3</promotion_fee>
</zg_bt_promotion_info>
</tbk_item_detail>
</results>
</tbk_sc_item_info_upgrade_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>
| 错误码 | 错误描述 | 解决方案 |
|---|