飞猪通用分销酒店标准信息查询接口(新)
| 名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
|---|---|---|---|---|---|
| scroll_token | Number | 可选 | 1234 | 滚动查询token | |
| city_code | Number | 可选 | 300100 | 城市cityCode | |
| page_size | Number | 可选 | 5 | 分页大小 | |
| hotel_status | Number | 可选 | null | 根据指定酒店状态查询酒店信息 | |
| hotel_type | Number | 可选 | null | 根据指定类型查询酒店信息 | |
| shids | Number | 可选 | null | 根据shid列表查询酒店信息 多个逗号分隔 |
| 名称 | 类型 | 示例值 | 描述 |
|---|---|---|---|
| result | Result | result | |
|
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); XhotelDistributionStdinfoGetRequest req = new XhotelDistributionStdinfoGetRequest(); req.setScrollToken(1234L); req.setCityCode(300100L); req.setPageSize(5L); req.setHotelStatus(nullL); req.setHotelType(nullL); req.setShids(nullL); XhotelDistributionStdinfoGetResponse rsp = client.execute(req); System.out.println(rsp.getBody());
<xhotel_distribution_stdinfo_get_response>
<result>
<success>true</success>
<module>
<shotel_static_info_list>
<shotel_static_info_list>
<shotel_media_info>
<picture_info_list>
<picture_info_list>
<second_category_code>988002</second_category_code>
<pic_url>xxxx</pic_url>
<first_category_name>外观</first_category_name>
<first_category_code>984001</first_category_code>
<is_head_pic>1</is_head_pic>
<second_category_name>整幢建筑</second_category_name>
<order_num>0</order_num>
</picture_info_list>
</picture_info_list>
<video_info_list>
<video_info_list>
<resources>
<resources>
<src>https://cloud.video.taobao.com/play/u/4004221695/p/1/d/hd/e/6/t/1/431998956617.mp4</src>
<length>5076951</length>
<bitrate>1302</bitrate>
<type>video/mp4</type>
</resources>
</resources>
<title>豪华体验1</title>
<poster>//img.alicdn.com/imgextra/i4/6000000007667/O1CN0126VXWaggrFUBQU2_!!6000000007667-0-hotel.jpg</poster>
</video_info_list>
</video_info_list>
</shotel_media_info>
<comment_info>
<comment_num>1</comment_num>
<comment_score>1.2</comment_score>
</comment_info>
<shid>58831021</shid>
<shotel_facility_info>
<facility_info_list>
<facility_info_list>
<facility_list>
<facility_list>
<facility_instance_list>
<facility_instance_list>
<facility_pictures>
<facility_picture>
<url>xxx</url>
</facility_picture>
</facility_pictures>
<facility_attributes>
<facility_attributes>
<code>51_businessHoursCode</code>
<std_component_code>51_businessHoursCode</std_component_code>
<business_time_list>
<business_time_list>
<week>0</week>
<start_time>06:00</start_time>
<end_time>20:00</end_time>
</business_time_list>
</business_time_list>
<name>营业时间</name>
<business_time_type>0</business_time_type>
<need_subscribe>x</need_subscribe>
<time>30</time>
<time_unit_code>xxx</time_unit_code>
<time_unit_name>xxx</time_unit_name>
<free>true</free>
<charge_info_list>
<charge_info>
<price>1</price>
<price_unit_code>xx</price_unit_code>
<price_unit_name>xx</price_unit_name>
<charge_rule_code>xx</charge_rule_code>
<charge_rule_name>xx</charge_rule_name>
</charge_info>
</charge_info_list>
<start_time>xxx</start_time>
<end_time>xxx</end_time>
<notice>xxx</notice>
<element>xxx</element>
<opening_date_type>xxx</opening_date_type>
<opening_date_list>
<opening_date>
<start_date>xxx</start_date>
<end_date>xxx</end_date>
</opening_date>
</opening_date_list>
<option_list>
<option>
<code>xxx</code>
<text>xxx</text>
</option>
</option_list>
<start>xxx</start>
<end>xxx</end>
<value>xxx</value>
<text>xxx</text>
</facility_attributes>
</facility_attributes>
</facility_instance_list>
</facility_instance_list>
<have>true</have>
<type_name>酒店前台</type_name>
<type>hotel_front_desk</type>
</facility_list>
</facility_list>
<category>hot_facility</category>
<category_name>热门设施</category_name>
</facility_info_list>
</facility_info_list>
</shotel_facility_info>
<sroom_static_info_list>
<sroom_static_info_list>
<sroom_type_basic_info>
<area>20</area>
<special_window>xxx</special_window>
<has_window>2</has_window>
<name>Standard twin bed room</name>
<window_defect>,0,1</window_defect>
<max_occupancy>2</max_occupancy>
<floor>1</floor>
<bed_info>[]</bed_info>
<max_adults>1</max_adults>
<max_children>1</max_children>
<add_child_bed>1</add_child_bed>
<add_bed>1</add_bed>
<shared_room>1</shared_room>
<dorm_room>dormRoom</dorm_room>
<name_e>asdf</name_e>
<room_num>1</room_num>
</sroom_type_basic_info>
<facility_info_list>
<facility_info_list>
<facility_list>
<facility_list>
<facility_instance_list>
<facility_instance_list>
<facility_pictures>
<facility_picture>
<url>xxx</url>
</facility_picture>
</facility_pictures>
<facility_attributes>
<facility_attributes>
<code>302_radioCode</code>
<std_component_code>302_radioCode</std_component_code>
<option_list>
<option_list>
<code>1</code>
<text>禁烟</text>
</option_list>
</option_list>
<name>xxxx</name>
<business_time_type>x</business_time_type>
<business_time_list>
<business_time>
<week>x</week>
<start_time>x</start_time>
<end_time>x</end_time>
</business_time>
</business_time_list>
<free>x</free>
<charge_info_list>
<charge_info>
<price>1</price>
<price_unit_code>x</price_unit_code>
<price_unit_name>x</price_unit_name>
<charge_rule_code>x</charge_rule_code>
<charge_rule_name>x</charge_rule_name>
</charge_info>
</charge_info_list>
<start_time>x</start_time>
<end_time>x</end_time>
<notice>x</notice>
<element>x</element>
<opening_date_type>x</opening_date_type>
<opening_date_list>
<opening_date>
<start_date>x</start_date>
<end_date>x</end_date>
</opening_date>
</opening_date_list>
<start>x</start>
<end>x</end>
<value>x</value>
<need_subscribe>true</need_subscribe>
<time>x</time>
<time_unit_code>x</time_unit_code>
<time_unit_name>x</time_unit_name>
<text>x</text>
</facility_attributes>
</facility_attributes>
</facility_instance_list>
</facility_instance_list>
<have>true</have>
<type_name>吸烟政策</type_name>
<type>smoking_policy</type>
</facility_list>
</facility_list>
<category>hot_facility</category>
<category_name>热门设施</category_name>
</facility_info_list>
</facility_info_list>
<media_info>
<picture_info_list>
<picture_info>
<first_category_code>xxx</first_category_code>
<first_category_name>xxx</first_category_name>
<second_category_code>xxx</second_category_code>
<second_category_name>xxx</second_category_name>
<order_num>xxx</order_num>
<is_head_pic>xxx</is_head_pic>
<pic_url>xxx</pic_url>
</picture_info>
</picture_info_list>
<video_info_list>
<video_info>
<title>xxx</title>
<poster>xxx</poster>
<resources>
<video_resource>
<src>xxx</src>
<type>xxx</type>
<length>xxx</length>
<bitrate>xxx</bitrate>
</video_resource>
</resources>
</video_info>
</video_info_list>
</media_info>
<srid>1234</srid>
<fzroom_id>1234</fzroom_id>
</sroom_static_info_list>
</sroom_static_info_list>
<shotel_policy_info>
<policy_info_list>
<policy_info_list>
<policy_list>
<policy_list>
<policy_instance_list>
<policy_instance_list>
<attribute_list>
<attribute_list>
<code>761_radioCode</code>
<std_component_code>761_radioCode</std_component_code>
<option_list>
<option_list>
<code>3</code>
<text>仅中国大陆地区及港澳台客人</text>
</option_list>
</option_list>
<name>xxx</name>
<business_time_type>x</business_time_type>
<business_time_list>
<business_time>
<week>xx</week>
<start_time>xx</start_time>
<end_time>xx</end_time>
</business_time>
</business_time_list>
<free>true</free>
<charge_info_list>
<charge_info>
<price>1</price>
<price_unit_code>x</price_unit_code>
<price_unit_name>x</price_unit_name>
<charge_rule_code>x</charge_rule_code>
<charge_rule_name>x</charge_rule_name>
</charge_info>
</charge_info_list>
<start_time>x</start_time>
<end_time>x</end_time>
<notice>x</notice>
<element>x</element>
<opening_date_type>x</opening_date_type>
<opening_date_list>
<opening_date>
<start_date>x</start_date>
<end_date>x</end_date>
</opening_date>
</opening_date_list>
<start>x</start>
<end>x</end>
<value>x</value>
<need_subscribe>true</need_subscribe>
<time>20</time>
<time_unit_code>xx</time_unit_code>
<time_unit_name>xx</time_unit_name>
<text>xx</text>
</attribute_list>
</attribute_list>
</policy_instance_list>
</policy_instance_list>
<type_name>可接待人群</type_name>
<type>crowd_type</type>
</policy_list>
</policy_list>
<category>in_out_policy</category>
<category_name>入离政策</category_name>
</policy_info_list>
</policy_info_list>
</shotel_policy_info>
<shotel_basic_info>
<country>China</country>
<rooms>81</rooms>
<district_code>542432</district_code>
<position_type>0</position_type>
<city>那曲市</city>
<city_code>542400</city_code>
<latitude>31.905796</latitude>
<description>小音 疗、芬芳蒸浴、玫瑰浸浴、能量石沐足礼等养心养身
的释放。
5、火山温泉谷。拥有五大洲主题温泉区,建筑及景观元素跟随主题
而变化,让旅客一日邂逅世界不同地区的景象,不同风格的风俗温泉文化。
其天然泉水取自深达 800 米的地下,水质获英国国际水质研究所认证,蕴
含多种具备保健功效的天然矿物成份</description>
<type>6</type>
<domestic>0</domestic>
<floors>11</floors>
<province>西藏自治区</province>
<country_code>1</country_code>
<brand>22</brand>
<longitude>88.126022</longitude>
<name_e>test hotel1111111</name_e>
<address>阿里地区地址</address>
<star>3</star>
<province_code>540000</province_code>
<decoration_time>2024-01-06</decoration_time>
<district>双湖县</district>
<name>选品测试标准酒店</name>
<opening_hours>2024-03-03</opening_hours>
<hotel_type>1</hotel_type>
<en_addr>xxx</en_addr>
<phone_map>xxx</phone_map>
<used_name>1111111</used_name>
<star_rate>xxx</star_rate>
<status>0</status>
</shotel_basic_info>
<fz_id>58831021</fz_id>
</shotel_static_info_list>
</shotel_static_info_list>
<query_token>xxx</query_token>
<hotel_count>100</hotel_count>
</module>
<error_message>xxx</error_message>
<error_code>0</error_code>
<trace_id>asdfg</trace_id>
</result>
</xhotel_distribution_stdinfo_get_response>
<error_response>
<code>50</code>
<msg>Remote service error</msg>
<sub_code>isv.invalid-parameter</sub_code>
<sub_msg>非法参数</sub_msg>
</error_response>
| 错误码 | 错误描述 | 解决方案 |
|---|