商旅酒店api分销-酒店最低价
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
param_hotel_search_list_r_q | HotelSearchListRq | 可选 | 列表最低价入参 | ||
|
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
result | HisvResult | 返回出参 | |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); AlitripBtripHotelDistributionSearchLowPriceRequest req = new AlitripBtripHotelDistributionSearchLowPriceRequest(); AlitripBtripHotelDistributionSearchLowPriceRequest.HotelSearchListRq obj1 = new AlitripBtripHotelDistributionSearchLowPriceRequest.HotelSearchListRq(); obj1.setCheckIn( "2021-06-05" ); obj1.setCheckOut( "2021-06-06" ); obj1.setCityCode( "330100" ); obj1.setCityName( "杭州" ); obj1.setSubChannel( "distribution_hkfghnmiujhgv01" ); obj1.setOrder(0L); obj1.setDir(0L); obj1.setShids( "10024010,59947001,60385002" ); obj1.setPageNo(1L); obj1.setPageSize(20L); req.setParamHotelSearchListRQ(obj1); AlitripBtripHotelDistributionSearchLowPriceResponse 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 | < alitrip_btrip_hotel_distribution_search_low_price_response > < result > < module > < hotels > < hotel_list_dto > < low_price >18000</ low_price > < name >杭州中洲大酒店</ name > < shid >10076614</ shid > < supplier_code >fliggy</ supplier_code > < supplier_name >飞猪</ supplier_name > < is_protocol >false</ is_protocol > </ hotel_list_dto > </ hotels > < total >100</ total > </ module > < result_code >0</ result_code > < result_msg >系统异常</ result_msg > </ result > </ alitrip_btrip_hotel_distribution_search_low_price_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 > |
错误码 | 错误描述 | 解决方案 |
---|