感谢您的反馈!
哈罗合作项目,供哈罗合作方批量和增量两种场景下查询已开通城市下的标准酒店及房型信息,不涉及用户登录信息
| 名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
|---|---|---|---|---|---|
| hotel_info_param | HotelInfoParam | 可选 | 参数封装模型 | ||
|
| 名称 | 类型 | 示例值 | 描述 |
|---|---|---|---|
| result | ResultSet | 查询结果集 | |
|
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
XhotelInfoListGetForHelloRequest req = new XhotelInfoListGetForHelloRequest();
XhotelInfoListGetForHelloRequest.HotelInfoParam obj1 = new XhotelInfoListGetForHelloRequest.HotelInfoParam();
obj1.setCityCode(110100L);
obj1.setLastShid(654543L);
obj1.setPageSize(20L);
obj1.setPid("452346");
obj1.setShid(645643L);
obj1.setOpenId("ferg3452t");
req.setHotelInfoParam(obj1);
XhotelInfoListGetForHelloResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
<xhotel_info_list_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.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_list_url>
<has_next>true</has_next>
<hotel_list_url>http: //kezhan.trip.taobao.com/order/auction/buy_now.htm?city=110100&id=2100521217078&rpId=2438001075</hotel_list_url>
<request_id>3242432f3f23</request_id>
<results>
<s_hotel_vo>
<address>杭州市西湖断桥</address>
<bnb_hotel>false</bnb_hotel>
<brand>2</brand>
<check_in_time>14:00</check_in_time>
<check_out_time>12:00</check_out_time>
<city>310100</city>
<decorate_time>2009</decorate_time>
<desc>酒店特色鲜明,欢迎入住!</desc>
<distance></distance>
<district>310101</district>
<gmt_modified>2020-01-15 00:00:00</gmt_modified>
<h5_detail_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_detail_url>
<hotel_detail_url>http://kezhan.trip.taobao.com/hotel_detail2.htm?shid=10004405&searchBy=yisou&requestId=1232322313</hotel_detail_url>
<hotel_facilities>收费停车场</hotel_facilities>
<lat>23.04050</lat>
<level>
<code>0</code>
<name>无档次</name>
</level>
<lng>123.004243</lng>
<name>测试酒店</name>
<opening_time>2010</opening_time>
<pet_info>禁止携带宠物</pet_info>
<pic_urls>http://img08.taobaocdn.com/bao/uploaded/i8/T1v5JOFptbXXaAGmMT_013104.jpg,http://img04.taobaocdn.com/bao/uploaded/i4/T1TPVNFwFcXXaAGmMT_013104.jpg</pic_urls>
<price>23400</price>
<province>310000</province>
<rate_number>23</rate_number>
<rate_score>4.5</rate_score>
<sell>1231</sell>
<shid>3455666</shid>
<shotel_properties_vo>
<shotel_booking_notics>
<shotel_properties_vo>
<id>4234</id>
<order_num>1</order_num>
<shid>3455666</shid>
<srid></srid>
<sub_type>-1</sub_type>
<type>10</type>
<type_id>10001</type_id>
<value>14:00</value>
</shotel_properties_vo>
</shotel_booking_notics>
<shotel_fun_facilities>
<shotel_properties_vo>
<id>545345</id>
<order_num>1</order_num>
<shid>3455666</shid>
<srid></srid>
<sub_type>-1</sub_type>
<type>50</type>
<type_id>24167</type_id>
<value>私人海滩</value>
</shotel_properties_vo>
</shotel_fun_facilities>
<shotel_hotel_facilities>
<shotel_properties_vo>
<id>75675</id>
<order_num>1</order_num>
<shid>3455666</shid>
<srid></srid>
<sub_type>1</sub_type>
<type>20</type>
<type_id>24001</type_id>
<value>收费停车场</value>
</shotel_properties_vo>
</shotel_hotel_facilities>
<shotel_hotel_services>
<shotel_properties_vo>
<id>876</id>
<order_num>1</order_num>
<shid>3455666</shid>
<srid></srid>
<sub_type>1</sub_type>
<type>30</type>
<type_id>24058</type_id>
<value>可接待外宾</value>
</shotel_properties_vo>
</shotel_hotel_services>
<shotel_nomal_pictures>
<shotel_properties_vo>
<id>3056725</id>
<order_num>1</order_num>
<shid>3455666</shid>
<srid></srid>
<sub_type>外观</sub_type>
<type>1</type>
<type_id></type_id>
<value>//img08.taobaocdn.com/bao/uploaded/i8/T1v5JOFptbXXaAGmMT_013104.jpg</value>
</shotel_properties_vo>
</shotel_nomal_pictures>
<shotel_room_facilities>
<shotel_properties_vo>
<id>456573</id>
<order_num>1</order_num>
<shid>3455666</shid>
<srid></srid>
<sub_type>3</sub_type>
<type>40</type>
<type_id>24100</type_id>
<value>公共卫浴</value>
</shotel_properties_vo>
</shotel_room_facilities>
</shotel_properties_vo>
<sroom_types>
<s_room_type_vo>
<add_bed>0</add_bed>
<area>34</area>
<facility>独立卫浴</facility>
<floor>3-6</floor>
<gmt_create>2020-02-14 00:00:00</gmt_create>
<gmt_modified>2020-02-15 00:00:00</gmt_modified>
<max_occupancy>2</max_occupancy>
<name>大床房</name>
<name_e>StandardRoom</name_e>
<room_type_bed_info>
<bed_info_groups>
<bed_info_group_vo>
<bed_infos>
<bed_info_vo>
<bed_num>1</bed_num>
<bed_type>2</bed_type>
<desc>双人床</desc>
<length>2.0</length>
<width>1.8</width>
</bed_info_vo>
</bed_infos>
<bed_num>1</bed_num>
<brief_desc>大床</brief_desc>
<classification>1</classification>
<classification_desc>大床</classification_desc>
<desc>大床</desc>
<fuzzy_desc>大床</fuzzy_desc>
<simple_desc>大床</simple_desc>
</bed_info_group_vo>
</bed_info_groups>
<brief_desc>大床</brief_desc>
<classifications>
<string>1</string>
</classifications>
<classification_desc>大床</classification_desc>
<desc>一张大床1.8米</desc>
<fuzzy_desc>大床</fuzzy_desc>
<simple_desc>大床</simple_desc>
</room_type_bed_info>
<shid>3455666</shid>
<srid>222</srid>
<status>0</status>
<window_type>1</window_type>
<pic_urls>//img.alicdn.com/bao/uploaded/i1/TB1CJfPNXXXXXaUapXX0o0u.pXX_102405.jpg,//img.alicdn.com/bao/uploaded/i8/TB1k0oqNXXXXXcRXXXX0o0u.pXX_102405.jpg</pic_urls>
<sroom_type_properties>
<sroom_type_nomal_pictures>
<shotel_properties_vo>
<id>2424</id>
<order_num>1</order_num>
<shid>3455666</shid>
<srid>222</srid>
<sub_type>客房</sub_type>
<type>1</type>
<type_id>345</type_id>
<value>//img.alicdn.com/bao/uploaded/i3/TB1dYq2PpXXXXXBXFXXEYRw9FXX_042838.jpg</value>
</shotel_properties_vo>
</sroom_type_nomal_pictures>
<sroom_type_room_facilities>
<shotel_properties_vo>
<id>34</id>
<order_num>1</order_num>
<shid>3455666</shid>
<srid>222</srid>
<sub_type>1</sub_type>
<type>40</type>
<type_id>24088</type_id>
<value>国内长途(收费)</value>
</shotel_properties_vo>
</sroom_type_room_facilities>
</sroom_type_properties>
</s_room_type_vo>
</sroom_types>
<star>0</star>
<status>0</status>
<tel>0086-0571-12345</tel>
<type>1,2</type>
<rooms>23</rooms>
</s_hotel_vo>
</results>
<success>false</success>
<success_flag>0</success_flag>
<total_results>12</total_results>
<version>2.3</version>
<last_id>3455667</last_id>
</result>
</xhotel_info_list_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>
| 错误码 | 错误描述 | 解决方案 |
|---|