淘宝客商品详情查询升级版(简易版)
| 名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
|---|---|---|---|---|---|
| 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-是,默认否(仅开通淘礼金权限媒体可查) |
| 名称 | 类型 | 示例值 | 描述 |
|---|---|---|---|
| results | TbkItemDetail [] | 仅淘宝客商品,字段值根据API赋权等级输出 | |
|
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TbkItemInfoUpgradeGetRequest req = new TbkItemInfoUpgradeGetRequest();
req.setItemId("3232");
req.setIp("11.22.33.43");
req.setBizSceneId("1");
req.setPromotionType("2");
req.setRelationId("1");
req.setManageItemPubId(1L);
req.setGetTljInfo(0L);
TbkItemInfoUpgradeGetResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
<tbk_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>11</subsidy_rate>
<subsidy_amount>4</subsidy_amount>
<subsidy_upper_limit>10</subsidy_upper_limit>
<subsidy_type>妈妈补贴</subsidy_type>
</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>
</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>
</tbk_item_detail>
</results>
</tbk_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>
| 错误码 | 错误描述 | 解决方案 |
|---|---|---|
| 1001 | 传入正确的me参数值,含有券ID与商品ID信息 | |
| 10000 | 更换新的itemId查询 | |
| 4 | 查询不到对应的adzoneId,请检查adzoneId是否正确 | |
| 30002 | 参数q与cat不能都为空 | |
| 2 | pid不正确,请检查是否输入了正确的adzoneId和siteId | |
| 50001 | 更换查询条件 | |
| 40001 | 请稍后重试 | |
| 30001 | 请传入有效的物料ID | |
| 5 | 检查pid相关参数,稍后重试 | |
| isp.entry-sys-error | 稍后重试 | |
| isp.pid-check-error | 检查pid相关参数,稍后重试 | |
| isp.sys-error | 稍后重试 | |
| 50002 | 调用频率高,请稍后再试 | |
| 1201 | 请重试 | |
| 719 | 请重试。另同步重要通知:您需将商品ID字段类型调整为同时兼容number和string类型,否则8月8日起调用将会出现异常,如已调整完成可忽略本次错误提示,点击https://mo.m.taobao.com/union/page_20220701_150002_297 查看公告详情,如有疑问可加入【淘宝联盟】线上合规升级咨询群(钉钉群:44748908)进行咨询。 | |
| 1911 | 该appkey没有本sceneId权限,如有需要请联系对口商务/运营申请(钉钉咨询群号:44964951) |