跟据卖家设定的商品外部id获取商品 这个商品对应卖家从传入的session中获取,需要session绑定
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
fields | String | 必须 | num_iid,sku,item_img,prop_img | 需返回的字段列表,参考:Item商品结构体说明,其中barcode、sku.barcode等条形码字段暂不支持;多个字段之间用“,”分隔。 | |
outer_id | String | 必须 | 123456 | 商品的外部商品ID,支持批量,最多不超过40个。 |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
items | Item [] | 商品列表,具体返回字段以fields决定 | |
|
1 2 3 4 5 6 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); ItemsCustomGetTmallRequest req = new ItemsCustomGetTmallRequest(); req.setFields( "num_iid,sku,item_img,prop_img" ); req.setOuterId( "123456" ); ItemsCustomGetTmallResponse rsp = client.execute(req, sessionKey); 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 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 | < items_custom_get_tmall_response > < items > < item > < iid >13232</ iid > < num_iid >1489161932</ num_iid > < title >Google test item</ title > < nick >tbtest561</ nick > < type >fixed</ type > < cid >132443</ cid > < seller_cids >2234445,3344466,446434</ seller_cids > < props >135255:344454</ props > < input_pids >2432,5353,656425</ input_pids > < input_str >耐克;耐克系列;科比系列;科比系列;2K5</ input_str > < desc >这是一个好商品</ desc > < num >8888</ num > < valid_thru >7</ valid_thru > < list_time >2009-10-22 14:22:06</ list_time > < delist_time >2000-01-01 00:00:00</ delist_time > < stuff_status >new</ stuff_status > < location > < state >浙江</ state > < city >杭州</ city > </ location > < price >5.00</ price > < post_fee >5.00</ post_fee > < express_fee >5.00</ express_fee > < ems_fee >5.00</ ems_fee > < has_discount >true</ has_discount > < freight_payer >seller</ freight_payer > < has_invoice >true</ has_invoice > < has_warranty >true</ has_warranty > < has_showcase >true</ has_showcase > < modified >2000-01-01 00:00:00</ modified > < increment >0</ increment > < approve_status >onsale</ approve_status > < violation >true</ violation > < postage_id >32</ postage_id > < product_id >85883030</ product_id > < auction_point >15</ auction_point > < property_alias >property</ property_alias > < item_imgs > < item_img > < id >1645920</ id > < position >1</ position > </ item_img > </ item_imgs > < prop_imgs > < prop_img > < id >1646146</ id > < properties >1627207:28326</ properties > < position >1</ position > </ prop_img > </ prop_imgs > < skus > < sku > < sku_id >123</ sku_id > < properties >1243:1215;5626:5125</ properties > < properties_name >20000:3275069:品牌:盈讯;1753146:3485013:型号:F908;-1234:-5678:自定义属性1:属性值1</ properties_name > < quantity >3</ quantity > < price >200.07</ price > < outer_id >12345</ outer_id > < created >2009-11-04 15:24:43</ created > < modified >2009-11-04 15:24:43</ modified > < with_hold_quantity >100</ with_hold_quantity > </ sku > </ skus > < outer_id >34143554352</ outer_id > < is_virtual >true</ is_virtual > < is_taobao >true</ is_taobao > < is_ex >true</ is_ex > < videos > < video > < id >123456</ id > < video_id >123456</ video_id > < created >2000-01-01 00:00:00</ created > < modified >2000-01-01 00:00:00</ modified > </ video > </ videos > < is_3D >true</ is_3D > < one_station >true</ one_station > < second_kill >web_only</ second_kill > < auto_fill >time_card</ auto_fill > < features >;tags:3522,7234;source:sell;sp:2;</ features > < global_stock_type >1</ global_stock_type > < global_stock_country >美国</ global_stock_country > < global_stock_delivery_place >1</ global_stock_delivery_place > < global_stock_tax_free_promise >false</ global_stock_tax_free_promise > < locality_life > < expirydate >2012-08-06,2012-08-16</ expirydate > < network_id >5645746</ network_id > < merchant >56879:码商X</ merchant > < verification >1</ verification > < refund_ratio >50</ refund_ratio > < obs >1</ obs > < version >1</ version > < packageid >1234</ packageid > </ locality_life > < custom_made_type_id >1</ custom_made_type_id > < food_security > < prd_license_no >QS410006010388</ prd_license_no > < design_code >Q/DHL.001-2008</ design_code > < factory >远东恒天然乳品有限公司</ factory > < factory_site >台北市仁爱路4段85号</ factory_site > < contact >00800-021216</ contact > < mix >有机乳糖、有机植物油</ mix > < plan_storage >常温</ plan_storage > < period >2年</ period > < food_additive >磷脂 、膨松剂</ food_additive > < supplier >深圳岸通商贸有限公司</ supplier > < product_date_start >2012-06-01</ product_date_start > < product_date_end >2012-06-10</ product_date_end > < stock_date_start >2012-06-20</ stock_date_start > < stock_date_end >2012-06-30</ stock_date_end > < health_product_no >卫食健字(1997)第167号</ health_product_no > </ food_security > < qualification >%7B%22checked%22%3A%22checked%22%2C%22iq_field_item_pack_image%22%3A%22http%3A%2F%</ qualification > < with_hold_quantity >12</ with_hold_quantity > < desc_modules >[{"module_id":123,"module_name":"模特图","type":"cat_mod","content":"模特要漂亮一点拜托"},{"module_id":null,"module_name":"店主最漂亮","type":"usr_mod","content":"老娘全网最美"}]</ desc_modules > < sell_point >2013新款 时尚 前卫</ sell_point > < delivery_time > < need_delivery_time >none/item/sku</ need_delivery_time > < delivery_time_type >absolute,relative</ delivery_time_type > < delivery_time >2013-11-11</ delivery_time > < skus_delivery_time_list > < skus_delivery_time > < sku_delivery_time >2012-06-01</ sku_delivery_time > < sku_id >123</ sku_id > </ skus_delivery_time > </ skus_delivery_time_list > </ delivery_time > < is_cspu >true</ is_cspu > < cuntao_item_specific > < kick_back_rate >3.3即3.3%</ kick_back_rate > </ cuntao_item_specific > </ item > </ items > </ items_custom_get_tmall_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 > |
错误码 | 错误描述 | 解决方案 |
---|