分销商查询供应商产品信息
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
pids | Number [] | 可选 | 1001,1002,1003,1004,1005 |
|
产品ID列表(最大限制30),用逗号分割,例如:“1001,1002,1003,1004,1005” |
item_ids | Number [] | 可选 | 1001,1002,1003,1004,1005 |
|
根据商品ID列表查询,优先级次于产品ID列表,高于其他分页查询条件。如果商品不是分销商品,自动过滤。最大限制20,用逗号分割,例如:“1001,1002,1003,1004,1005” |
supplier_nick | String | 可选 | test | 供应商nick,分页查询时,必传 | |
trade_type | String | 可选 | trade_type | 分销方式;可选择:AGENT : 代销;DEALER:经销;DIRECT:直营 | |
download_status | String | 可选 | download_status | 下载状态,默认是未下载;可选值:UNDOWNLOAD:未下载 ;DOWNLOADED:已下载;下载:指将供应商授权的产品发布为店铺新宝贝的过程,下载成功后,分销商需要将新生成的宝贝重新编辑并上架后售卖。 | |
productcat_id | Number | 可选 | 3232312 | 产品线ID | |
fields | String [] | 可选 | skus |
|
指定查询额外的信息,可选值:skus(sku数据)、images(多图),多个可选值用逗号分割。 |
start_time | Date | 可选 | 2000-01-01 00:00:00 | 开始修改时间 | |
end_time | Date | 可选 | 2000-01-01 00:00:00 | 结束时间 | |
time_type | String | 可选 | time_type | time_type | |
page_no | Number | 可选 | 1 | 页码(大于0的整数,默认1) | |
page_size | Number | 可选 | 20 | 每页记录数(默认20,最大50) | |
order_by | String | 可选 | order_by | order_by |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
has_next | Boolean | true | 是否存在下一页 |
products | FenxiaoProduct [] | 产品对象记录集。返回 FenxiaoProduct 包含的字段信息。 | |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); FenxiaoDistributorProductsGetRequest req = new FenxiaoDistributorProductsGetRequest(); req.setPids( "1001,1002,1003,1004,1005" ); req.setItemIds( "1001,1002,1003,1004,1005" ); req.setSupplierNick( "test" ); req.setTradeType( "trade_type" ); req.setDownloadStatus( "download_status" ); req.setProductcatId(3232312L); req.setFields( "skus" ); req.setStartTime(StringUtils.parseDateTime( "2000-01-01 00:00:00" )); req.setEndTime(StringUtils.parseDateTime( "2000-01-01 00:00:00" )); req.setTimeType( "time_type" ); req.setPageNo(1L); req.setPageSize(20L); req.setOrderBy( "order_by" ); FenxiaoDistributorProductsGetResponse 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 | < fenxiao_distributor_products_get_response > < has_next >true</ has_next > < products > < fenxiao_product > < pid >1255</ pid > < name >jayzhou</ name > < productcat_id >444</ productcat_id > < standard_price >5</ standard_price > < standard_retail_price >10.56</ standard_retail_price > < retail_price_low >10.56</ retail_price_low > < retail_price_high >10.56</ retail_price_high > < cost_price >5</ cost_price > < dealer_cost_price >20.33</ dealer_cost_price > < outer_id >4444</ outer_id > < quantity >444</ quantity > < category_id >12</ category_id > < description >这是产品的描述内容</ description > < properties >1631357:21846512;20000:21918302</ properties > < property_alias >1627207:28335:绿荫色</ property_alias > < input_properties >20000:品牌名</ input_properties > < prov >浙江</ prov > < city >杭州</ city > < postage_type >12</ postage_type > < postage_id >5545</ postage_id > < postage_ordinary >10.56</ postage_ordinary > < postage_fast >10.56</ postage_fast > < postage_ems >12.2</ postage_ems > < discount_id >100001</ discount_id > < query_item_id >1001</ query_item_id > < have_invoice >true</ have_invoice > < have_quarantee >true</ have_quarantee > < items_count >5</ items_count > < orders_count >5</ orders_count > < created >2000-01-01 00:00:00</ created > < modified >2000-01-01 00:00:00</ modified > < upshelf_time >2000-01-01 00:00:00</ upshelf_time > < status >up</ status > < trade_type >AGENT</ trade_type > < skus > < sku_list > < id >100001</ id > < name >如鞋子的sku:“红色,35”</ name > < standard_price >20.23</ standard_price > < cost_price >1</ cost_price > < dealer_cost_price >123</ dealer_cost_price > < quantity >1</ quantity > < outer_id >1</ outer_id > < properties >1243:1215;5626:5125</ properties > < scitem_id >10001</ scitem_id > </ sku_list > </ skus > < images > < product_image_list > < image_id >10001</ image_id > < image_position >2</ image_position > < properties >1000:23;2000:25</ properties > < type >PROPERTIES</ type > </ product_image_list > </ images > < pdus > < pdu_list > < product_id >1001</ product_id > < distributor_id >1001</ distributor_id > < distributor_name >分销商1</ distributor_name > < sku_properties >1627207:90554,1627207:3232484</ sku_properties > < quantity_agent >1</ quantity_agent > </ pdu_list > </ pdus > < is_authz >yes</ is_authz > < scitem_id >10001</ scitem_id > < spu_id >100</ spu_id > </ fenxiao_product > </ products > </ fenxiao_distributor_products_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 > |
错误码 | 错误描述 | 解决方案 |
---|