淘宝客商品详情查询(简版)
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
num_iids | String | 必须 | 123,456 | 商品ID串,用,分割,最大40个 | |
platform | Number | 可选 | 1 |
|
链接形式:1:PC,2:无线,默认:1 |
ip | String | 可选 | 11.22.33.43 | ip地址,影响邮费获取,如果不传或者传入不准确,邮费无法精准提供 | |
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 | NTbkItem [] | 淘宝客商品 | |
|
1 2 3 4 5 6 7 8 9 10 11 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); TbkItemInfoGetRequest req = new TbkItemInfoGetRequest(); req.setNumIids( "123,456" ); req.setPlatform(1L); req.setIp( "11.22.33.43" ); req.setBizSceneId( "1" ); req.setPromotionType( "2" ); req.setRelationId( "1" ); req.setManageItemPubId(1L); TbkItemInfoGetResponse rsp = client.execute(req); System.out.println(rsp.getBody()); |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 | < tbk_item_info_get_response > < results > < n_tbk_item > < cat_name >女装</ cat_name > < num_iid >123</ num_iid > < title >连衣裙</ title > < small_images > </ small_images > < reserve_price >102.00</ reserve_price > < zk_final_price >88.00</ zk_final_price > < user_type >1</ user_type > < provcity >杭州</ provcity > < seller_id >123</ seller_id > < volume >1</ volume > < nick >xx旗舰店</ nick > < cat_leaf_name >情趣内衣</ cat_leaf_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 > < free_shipment >true</ free_shipment > < 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 > < ju_online_start_time >1581868800000</ ju_online_start_time > < ju_online_end_time >1582300799000</ ju_online_end_time > < ju_pre_show_start_time >1581868800000</ ju_pre_show_start_time > < ju_pre_show_end_time >1582300799000</ ju_pre_show_end_time > < 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 > < input_num_iid >sdfqere-123dfqweq</ input_num_iid > </ n_tbk_item > </ results > </ tbk_item_info_get_response > |
1 2 3 4 5 6 | < 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相关入参,稍后重试 |
1 | 服务系统异常 | 请重试 |
isp.tbkapi-service-unavailable | 系统异常 | 请重试 |
50 | 系统异常 | 请重试。另同步重要通知:您需将商品ID字段类型调整为同时兼容number和string类型,否则8月8日起调用将会出现异常,如已调整完成可忽略本次错误提示,点击https://mo.m.taobao.com/union/page_20220701_150002_297 查看公告详情,如有疑问可加入【淘宝联盟】线上合规升级咨询群(钉钉群:44748908)进行咨询。 |