感谢您的反馈!
哈罗合作项目,供哈罗合作方按需查询已开通城市下的标准酒店下指定时间段内的库存报价信息;在用户登录方面,返回结果不涉及用户个人信息,不涉及商家信息;仅根据不同用户,查询对应会员等级后,返回不同报价;
| 名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
|---|---|---|---|---|---|
| hotel_price_param | HotelPriceParam | 可选 | 参数封装 | ||
|
| 名称 | 类型 | 示例值 | 描述 |
|---|---|---|---|
| result | HotelPriceResultSet | 库价结果封装 | |
|
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
XhotelPriceGetForHelloRequest req = new XhotelPriceGetForHelloRequest();
XhotelPriceGetForHelloRequest.HotelPriceParam obj1 = new XhotelPriceGetForHelloRequest.HotelPriceParam();
obj1.setDataVersion("3.0");
obj1.setEndDate(StringUtils.parseDateTime("2020-03-06 15:45:59"));
obj1.setOpenId("r43rfef3r34");
obj1.setPid("mm_2000059001_20312022_20470013");
obj1.setShidCityCode("12332123_110100,4442131_110100");
obj1.setStartDate(StringUtils.parseDateTime("2020-03-04 15:45:59"));
obj1.setType(1L);
req.setHotelPriceParam(obj1);
XhotelPriceGetForHelloResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
<xhotel_price_get_for_hello_response>
<result>
<channel_id>1</channel_id>
<error>false</error>
<error_code>err_001</error_code>
<error_msg>查询失败</error_msg>
<h5_list_url>http://h5.m.taobao.com/trip/hotel/detail/detail.html?hid=0&shid=10107739&checkin=2014-05-12&checkout=2014-05-13&curcitycode=110100</h5_list_url>
<has_next>false</has_next>
<hotel_list_url>http://kezhan.trip.taobao.com/hotel_detail2.htm?shid=10004405&searchBy=yisou&requestId=1232322313</hotel_list_url>
<request_id>1232322313</request_id>
<results>
<s_hotel_price>
<daily_price_list>
<s_hotel_daily_price>
<end>2020-02-28</end>
<error_code>err_002</error_code>
<error_msg>参数错误</error_msg>
<low_price>12300</low_price>
<shid>11111111</shid>
<sroom_type_daily_price_list>
<s_room_type_daily_price>
<end>2020-02-28</end>
<low_price>12300</low_price>
<room_type_daily_price_list>
<room_type_daily_price>
<bed_type_string>大床</bed_type_string>
<h5_buy_url>http: //h5.m.taobao.net/trip/hotel/order/order-confirm.html?id=10909001075&iid=2100521217078&rpid=2438001075&paymenttype=1&shid=10005252&hid=0&allbseller=1&sellerId=-1&ttid=12gao0000004</h5_buy_url>
<name>大床房</name>
<pc_buy_url>http: //kezhan.trip.taobao.com/order/auction/buy_now.htm?city=110100&id=2100521217078&rpId=2438001075</pc_buy_url>
<rates>
<rate>
<breakfast>双早</breakfast>
<breakfast_count>2</breakfast_count>
<can_checkin_end>16:00</can_checkin_end>
<can_checkin_start>14:00</can_checkin_start>
<cancel_policy_desc>限免</cancel_policy_desc>
<cancel_policy_desc_long>入住当前12点前取消免费</cancel_policy_desc_long>
<cancel_policy_desc_middle>限时免费取消</cancel_policy_desc_middle>
<cancel_type>3</cancel_type>
<guarantee_start_time>14:00</guarantee_start_time>
<guarantee_type>1</guarantee_type>
<h5_buy_url>http: //h5.m.taobao.net/trip/hotel/order/order-confirm.html?id=10909001075&iid=2100521217078&rpid=2438001075&paymenttype=1&shid=10005252&hid=0&allbseller=1&sellerId=-1&ttid=12gao0000004</h5_buy_url>
<hourage>3.5</hourage>
<instant_confirm>true</instant_confirm>
<inventory_price>23400</inventory_price>
<member_level>1</member_level>
<member_level_name>金牌</member_level_name>
<payment_type_byte>1</payment_type_byte>
<pc_buy_url>http: //kezhan.trip.taobao.com/order/auction/buy_now.htm?city=110100&id=2100521217078&rpId=2438001075</pc_buy_url>
<rate_id>11</rate_id>
<rate_plan_name>大床房-双早</rate_plan_name>
<register_status>true</register_status>
<rp_id>1122</rp_id>
<subtract>1200</subtract>
<hour_rate>false</hour_rate>
<rid>22221111</rid>
<seller_id>2345243646</seller_id>
<srid>22222222</srid>
<can_check_out_end>20:00</can_check_out_end>
<later_pay>true</later_pay>
<member_price>true</member_price>
<supplier>hello</supplier>
</rate>
</rates>
<rid>22221111</rid>
<srid>22222222</srid>
<window_type>有窗</window_type>
</room_type_daily_price>
</room_type_daily_price_list>
<shid>11111111</shid>
<srid>22222222</srid>
<start>2020-02-27</start>
<bed_type_string>大床 1.8米</bed_type_string>
<name>标准大床房</name>
<window_type>0</window_type>
</s_room_type_daily_price>
</sroom_type_daily_price_list>
<start>2020-02-27</start>
</s_hotel_daily_price>
</daily_price_list>
<shid>11111111</shid>
</s_hotel_price>
</results>
<success>true</success>
<total_results>23</total_results>
<version>2</version>
<bind_member_infos>
<seller_supplier_partner_member_info_vo>
<card_name>金卡</card_name>
<detail_memo>金卡专项</detail_memo>
<has_binded>true</has_binded>
<member_level>1</member_level>
<seller_id>123456</seller_id>
<supplier>fliggy</supplier>
</seller_supplier_partner_member_info_vo>
</bind_member_infos>
</result>
</xhotel_price_get_for_hello_response>
<error_response>
<code>50</code>
<msg>Remote service error</msg>
<sub_code>isv.invalid-parameter</sub_code>
<sub_msg>非法参数</sub_msg>
</error_response>
| 错误码 | 错误描述 | 解决方案 |
|---|