酒店基础信息(酒店/房型/房价定义)查询接口, 包括 酒店房型可售, 以及 hid 下 的标准房型列表
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
hid | Number | 可选 | 100000 | 淘宝酒店ID | |
out_hid | String | 可选 | HOTEL123 |
|
推荐使用卖家系统中的酒店ID。 |
vendor | String | 可选 | taobao |
|
用于标示该酒店发布的渠道信息 |
is_need_rate_plan | Boolean | 可选 | true |
|
是否需要房价基本信息(false为不需要),默认为需要 |
is_need_room_type | Boolean | 可选 | true |
|
是否需要房型基本信息(false为不需要),默认为需要 |
need_s_room_type_list | Boolean | 可选 | false |
|
是否需要 根据 hid 查询 标准房型列表 |
need_hotel_dynamic_info | Boolean | 可选 | false |
|
是否需要酒店房型可售详情 |
json_hotel_seller_inv_query | String | 可选 | 0 | 在查询酒店房型可售详情 时的入参JSON , {@link com.taobao.trip.hpc.client.query.HotelSellerInvQuery} |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
result | ResultSet | result | |
|
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); XhotelBaseinfoGetRequest req = new XhotelBaseinfoGetRequest(); req.setHid(100000L); req.setOutHid("HOTEL123"); req.setVendor("taobao"); req.setIsNeedRatePlan(true); req.setIsNeedRoomType(true); req.setNeedSRoomTypeList(false); req.setNeedHotelDynamicInfo(false); req.setJsonHotelSellerInvQuery("0"); XhotelBaseinfoGetResponse rsp = client.execute(req, sessionKey); System.out.println(rsp.getBody());
<xhotel_baseinfo_get_response> <result> <error_code>errorCode</error_code> <error_msg>errorMsg</error_msg> <xhotel_base_info> <room_type_list> <room_type> <name>标准间</name> <rid>123456</rid> <status>0</status> <vendor>taobao</vendor> <outer_id>123123</outer_id> </room_type> </room_type_list> <rate_plan_list> <rate_plan> <vendor>taobao</vendor> <name>abc</name> <rate_plan_code>abc123</rate_plan_code> <rate_plan_id>123456</rate_plan_id> <status>1</status> </rate_plan> </rate_plan_list> <hotel> <hid>11910015271</hid> <remark>0</remark> <tel>0086#010#85636963</tel> <hotel_facilities>0</hotel_facilities> <type>0</type> <ext>0</ext> <city>110100</city> <postal_code>0</postal_code> <floors>0</floors> <seller_nick>1111vvc3</seller_nick> <description>0</description> <province>110000</province> <longitude>116.436851</longitude> <data_confirm>0</data_confirm> <rooms>0</rooms> <currency_code_name>CNY</currency_code_name> <status>0</status> <en_desc>0</en_desc> <country>China</country> <hotel_policies>0</hotel_policies> <latitude>39.91646</latitude> <oper_xiaoer_name>XXX小二</oper_xiaoer_name> <outer_id>11910015272</outer_id> <gmt_modified>1498484382000</gmt_modified> <down_shelf_type>2</down_shelf_type> <en_addr>0</en_addr> <shid>10004368</shid> <business>0</business> <used_name>0</used_name> <pics>0</pics> <room_facilities>0</room_facilities> <name>北京易涛万邦酒店1</name> <position_type>B</position_type> <billing_process_type>1</billing_process_type> <district>110105</district> <name_e>0</name_e> <gmt_create>1409285077000</gmt_create> <vendor>taobao</vendor> <extend>0</extend> <star>0</star> <booking_notice>0</booking_notice> <domestic>0</domestic> <decorate_time>0</decorate_time> <source>1</source> <address>北京市 北京 朝阳区 外交部南街14号</address> <seller_id>2049618271</seller_id> <match_status>5</match_status> <service>0</service> <brand>0</brand> <kzzy_tag>0</kzzy_tag> <opening_time>0</opening_time> </hotel> <s_room_type_list> <sroomtypelist> <window_type>0</window_type> <pics_info>0</pics_info> <network_service>0</network_service> <last_modify>0</last_modify> <include_types>0</include_types> <auditor>0</auditor> <shid>0</shid> <original_pics>0</original_pics> <version>0</version> <srid>0</srid> <pics>0</pics> <pics_ext>0</pics_ext> <area>0</area> <facility>0</facility> <name>0</name> <properties_d_os>0</properties_d_os> <add_bed>0</add_bed> <name_e>0</name_e> <status>0</status> <extend>0</extend> <bed>0</bed> <transfer_pics>0</transfer_pics> <floor>0</floor> <source>0</source> <bed_list>0</bed_list> <max_occupancy>0</max_occupancy> <outer_id>0</outer_id> </sroomtypelist> </s_room_type_list> <total_hotel_dynamic_info>0</total_hotel_dynamic_info> <hotel_dynamic_info_list> <hoteldynamicinfo> <unsale_reason>0</unsale_reason> <hid>0</hid> <status>0</status> <vendor>0</vendor> <ks_heathy_room_num>0</ks_heathy_room_num> <tel>0</tel> <shid>0</shid> <city_str>0</city_str> <city>0</city> <id>0</id> <room_nun>0</room_nun> <seller_nick>0</seller_nick> <address>0</address> <ks_room_num>0</ks_room_num> <seller_id>0</seller_id> <unsale_type>0</unsale_type> <name>0</name> <calculate_date>0</calculate_date> <data_confirm>0</data_confirm> <outer_id>0</outer_id> </hoteldynamicinfo> </hotel_dynamic_info_list> <tag_json>{"pure-direct-hotel":0,"direct-manual-order-hotel":1,"ebk-direct-hotel":0,"non-direct-hotel":1,"allow-dingding-business-travel-hotel":1,"willing-dingding-bussiness-travel-hotel":0,"calendar-room-package-hotel":1,"dijiajiajia-hotel":0,"ebk-number-of-confirm-room-hotel":1}</tag_json> </xhotel_base_info> <success>true</success> </result> </xhotel_baseinfo_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>
错误码 | 错误描述 | 解决方案 |
---|