飞猪酒店分销-标准酒店信息-查询
| 名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
|---|---|---|---|---|---|
| hotel_static_info_top_param | HotelStaticInfoTopParam | 必须 | 请求入参 | ||
|
| 名称 | 类型 | 示例值 | 描述 |
|---|---|---|---|
| result | Result | 请求结果 | |
|
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
XhotelDistributionFoundationHotelQueryRequest req = new XhotelDistributionFoundationHotelQueryRequest();
XhotelDistributionFoundationHotelQueryRequest.HotelStaticInfoTopParam obj1 = new XhotelDistributionFoundationHotelQueryRequest.HotelStaticInfoTopParam();
obj1.setLanguage("zh_CN");
obj1.setShidList(new Long[] { 80748001 };
);
req.setHotelStaticInfoTopParam(obj1);
XhotelDistributionFoundationHotelQueryResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
<xhotel_distribution_foundation_hotel_query_response>
<result>
<trace_id>21365c1f17763048795651540e03b2</trace_id>
<data>
<language>zh_CN</language>
<missing_shids>
<number>查询无结果的shid</number>
</missing_shids>
<list>
<hotel>
<shid>2131331</shid>
<name>酒店名称</name>
<name_e>酒店英文名称</name_e>
<policy_groups>酒店政策</policy_groups>
<image_show>图文秀</image_show>
<status_reason_desc>状态原因</status_reason_desc>
<telephones>电话信息</telephones>
<phone_map>电话信息</phone_map>
<used_name>曾用名</used_name>
<domestic>国内/国际</domestic>
<country>国际</country>
<country_code>7000001</country_code>
<province_code>12</province_code>
<province>浙江</province>
<city_code>城市编码</city_code>
<city>城市</city>
<district_code>区县编码</district_code>
<district>区县</district>
<business>商圈</business>
<address>地址</address>
<en_addr>英文地址</en_addr>
<position_type>坐标类型</position_type>
<longitude>经度</longitude>
<latitude>纬度</latitude>
<email>1@gmail.com</email>
<hotel_type>酒店类型</hotel_type>
<type>类型</type>
<star>星级</star>
<star_rate>星级评定</star_rate>
<brand>品牌</brand>
<description>描述</description>
<en_description>英文描述</en_description>
<opening_hours>营业时间</opening_hours>
<decoration_time>装修时间</decoration_time>
<floors>楼层</floors>
<rooms>12</rooms>
<tags>tags</tags>
<status>状态</status>
<refuse_type>拒绝类型</refuse_type>
<refuse_reason>拒绝原因</refuse_reason>
<status_reason>状态原因</status_reason>
<facility_groups>设施</facility_groups>
<room_list>
<room_static_info_d_t_o>
<srid>房型id</srid>
<name>房型名称</name>
<name_e>房型英文名称</name_e>
<floor>楼层</floor>
<room_num>房间数</room_num>
<area>面积</area>
<window_type>窗户类型</window_type>
<window_type_defect>窗户类型缺陷</window_type_defect>
<window_type_special>窗户类型缺陷</window_type_special>
<dorm_room>是否宿舍房</dorm_room>
<shared_room>是否合住房</shared_room>
<bed_info_json>床型信息</bed_info_json>
<room_type_bed_info>床型信息</room_type_bed_info>
<add_bed>是否可加床</add_bed>
<add_child_bed>是否可加婴儿床</add_child_bed>
<max_occupancy>最大入住人数</max_occupancy>
<max_adults>最大成人数</max_adults>
<max_children>最大儿童数</max_children>
<status>状态</status>
<basic_room_type>是否基础房型</basic_room_type>
<lowest_price_room_type>是否最低价房型</lowest_price_room_type>
<status_reason>正常</status_reason>
<status_reason_desc>状态原因描述</status_reason_desc>
<add_bed_charge>加床是否收费</add_bed_charge>
<add_bed_policy>加床政策</add_bed_policy>
<facility_groups>设施分组</facility_groups>
<pictures>房型图片信息</pictures>
<videos>房型视频信息</videos>
</room_static_info_d_t_o>
</room_list>
<pictures>图片信息</pictures>
<videos>视频信息</videos>
</hotel>
</list>
</data>
<success>true</success>
<message>请求异常</message>
<status>SUCCESS</status>
</result>
</xhotel_distribution_foundation_hotel_query_response>
<error_response>
<code>50</code>
<msg>Remote service error</msg>
<sub_code>isv.invalid-parameter</sub_code>
<sub_msg>非法参数</sub_msg>
</error_response>
| 错误码 | 错误描述 | 解决方案 |
|---|