星河产品=酒店列表页搜索
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
tenant_key | String | 必须 | 123 | 商家租户id | |
list_search_param | ListSearchParam | 必须 | 请求参数 | ||
|
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
result | PageableResponse | 返回结果 | |
|
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 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); AlitripMerchantGalaxyHotelListSearchRequest req = new AlitripMerchantGalaxyHotelListSearchRequest(); req.setTenantKey( "123" ); AlitripMerchantGalaxyHotelListSearchRequest.ListSearchParam obj1 = new AlitripMerchantGalaxyHotelListSearchRequest.ListSearchParam(); obj1.setPriceMax(1L); obj1.setAdultNum(2L); obj1.setChildNum(1L); obj1.setOffset(0L); obj1.setStar( "-1" ); obj1.setCityCode( "330100" ); obj1.setPageSize(20L); obj1.setDir(1L); obj1.setChildrenAges( "5" ); obj1.setPriceMin(0L); obj1.setCheckIn( "2021-02-25" ); obj1.setPageNo(1L); obj1.setCheckOut( "2021-02-26" ); obj1.setBrand( "1997" ); obj1.setToken( "123" ); obj1.setMemberLevel( "3" ); obj1.setVoucherId( "1" ); obj1.setVersion(1L); req.setListSearchParam(obj1); AlitripMerchantGalaxyHotelListSearchResponse 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 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 | < alitrip_merchant_galaxy_hotel_list_search_response > < result > < size >8</ size > < has_next_page >false</ has_next_page > < page_no >1</ page_no > < success >true</ success > < page_size >10</ page_size > < error_code >error</ error_code > < total_page_num >1</ total_page_num > < total_count >8</ total_count > < contents > < hotel_list_search_dto > < brand_name >索菲特</ brand_name > < address >西湖大道333号近 南山路(近西湖,雷峰塔,中国美院,南山路,河坊街)</ address > < position_type >0</ position_type > < hotel_facility_list > < string >["24小时前台"</ string > < string >"大堂吧"</ string > < string >"中餐厅"</ string > < string >"西餐厅"</ string > < string >"商务中心"</ string > < string >"残疾人设施"</ string > < string >"咖啡厅"</ string > < string >"会议室"</ string > < string >"室内游泳池"</ string > < string >"前台贵重物品保险柜"</ string > < string >"储物柜"</ string > < string >"免费停车场"</ string > < string >"吸烟区"</ string > < string >"健身房"</ string > < string >"行政酒廊"</ string > < string >"电梯"</ string > < string >"公共区域免费wifi"]</ string > </ hotel_facility_list > < star >5</ star > < shid >10023179</ shid > < latitude >30.245586</ latitude > < picture_url >https://fm-unicorn-hotel.oss-cn-beijing.aliyuncs.com/10006373010/hotel/5554/%E5%A4%96%E8%A7%82/O1CN01L77i2y1Gyyhm2lxTw_%21%216000000000692-0-hotel.jpg</ picture_url > < name_cn >杭州索菲特西湖大酒店</ name_cn > < hotel_id >5554</ hotel_id > < domestic >0</ domestic > < fun_facility_list > < string >["spa/水疗"</ string > < string >"桑拿"]</ string > </ fun_facility_list > < brand_url >demo</ brand_url > < price >100</ price > < hotel_service_list > < string >["接送服务"</ string > < string >"行李寄存"</ string > < string >"叫醒服务"</ string > < string >"票务服务"</ string > < string >"叫车服务"</ string > < string >"礼宾接待服务"</ string > < string >"租车"</ string > < string >"送餐服务"</ string > < string >"24小时大堂经理"</ string > < string >"看护小孩服务"</ string > < string >"管家服务"</ string > < string >"外币兑换"</ string > < string >"洗衣服务"</ string > < string >"24小时客房服务"]</ string > </ hotel_service_list > < city_cn >杭州市</ city_cn > < id >530</ id > < facility_list > < facility_dto > < icon >https://fm-unicorn-hotel.oss-cn-beijing.aliyuncs.com/10006373010/facility/%E5%81%A5%E8%BA%AB%E6%88%BF.png</ icon > < name >健身房</ name > < id >2</ id > </ facility_dto > </ facility_list > < country_cn >中华人民共和国</ country_cn > < room_name_cn >大床房</ room_name_cn > < full >false</ full > < longitude >30.245586</ longitude > < brand_code >1997</ brand_code > < hot >1</ hot > < voucher_info > < is_mark_up >1</ is_mark_up > < mark_up_info >1</ mark_up_info > < mark_up_rule_list > < string >1</ string > </ mark_up_rule_list > < mark_up_amount >1</ mark_up_amount > </ voucher_info > < city_py >S</ city_py > < phone >1</ phone > </ hotel_list_search_dto > </ contents > < error_msg >1</ error_msg > </ result > </ alitrip_merchant_galaxy_hotel_list_search_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 > |
错误码 | 错误描述 | 解决方案 |
---|