文档中心 > API类目 > 飞猪-菲住联盟

alitrip.futurehotel.searchservice.queryhotelbyid (搜索#酒店详情#酒店推广)

搜索#酒店详情#酒店推广

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
hid Number 可选 1 hid
login_user_id String 可选 1 用户id

响应参数

名称 类型 示例值 描述
query_hotel_by_id_response QueryHotelByIdResponse queryHotelByIdResponse
  • └ fh_code
  • String
  • fhCode
  • └ fh_msg
  • String
  • fhMsg
  • └ fh_success
  • Boolean
  • fhSuccess
  • hotel
  • Hotel
  • 酒店
  • └ addr_e
  • String
  • 英文地址
  • └ address
  • String
  • 酒店详细地址
  • └ ahid
  • Number
  • 联盟旗舰店hid
  • └ alias
  • String
  • 曾用名
  • amusement_facilities
  • Facility []
  • 娱乐设施
  • └ name
  • String
  • 设施服务名称
  • └ option_list
  • String []
  • 是否提供服务
  • booking_notices
  • BookingNotice []
  • 预订须知
  • └ desc
  • String
  • 预定描述
  • └ name
  • String
  • 预定须知名称
  • └ brand
  • String
  • 品牌
  • └ brand_id
  • Number
  • 品牌ID
  • └ business_id_list
  • Number []
  • 商圈id
  • └ city_id
  • Number
  • city id,对应base_division表中市的级别
  • └ city_name
  • String
  • city名称
  • └ contact_man
  • String
  • 联系人
  • └ contact_phone
  • String
  • 联系人电话
  • └ cooperation_status
  • Number
  • 合作状态
  • └ decorate_time
  • String
  • 装修年份
  • └ desc_e
  • String
  • 英文描述
  • └ description
  • String
  • 酒店介绍
  • └ district_id
  • Number
  • 关联的地区id,对应base_division表中区的级别
  • └ district_name
  • String
  • 关联地区名称,districtId关联
  • └ extend
  • String
  • 扩展信息
  • └ gmt_create
  • String
  • 创建时间
  • └ gmt_modified
  • String
  • 更新时间
  • └ group_id
  • Number
  • 关联集团ID
  • hotel_facilities
  • Facility []
  • 酒店设施
  • └ name
  • String
  • 设施服务名称
  • └ option_list
  • String []
  • 是否提供服务
  • └ hotel_tags
  • Number []
  • 酒店标签列表,只返回有效的标签
  • └ id
  • Number
  • 酒店ID
  • └ latitude
  • String
  • 维度
  • └ level
  • String
  • 酒店级别
  • └ longitude
  • String
  • 精度
  • └ name
  • String
  • 酒店名称
  • └ name_e
  • String
  • 酒店英文名称
  • └ opening_time
  • String
  • 开业年份
  • └ outer_hotel_id
  • String
  • 外部酒店ID
  • pics
  • Pic []
  • 酒店图片
  • └ head_image
  • Number
  • 头图 1:是 0:否
  • └ image_id
  • Number
  • 图片id
  • └ room_id
  • Number
  • 房型id
  • └ room_name
  • String
  • 房型名称
  • └ status
  • byte
  • 状态,-1:删除,1:已上线 图片没有关闭状态
  • └ tag
  • Number
  • 图片标签
  • └ upload_time
  • String
  • 图片上传时间
  • └ url
  • String
  • 图片url
  • └ poi_id_list
  • Number []
  • poi热点信息
  • └ postal_code
  • String
  • 邮编
  • └ province_id
  • Number
  • 省 id
  • └ reviews
  • Number
  • 评论
  • room_facilities
  • Facility []
  • 房间设施
  • └ name
  • String
  • 设施服务名称
  • └ option_list
  • String []
  • 是否提供服务
  • └ rooms
  • Number
  • 房间数
  • └ sales
  • Number
  • 销量
  • └ score
  • String
  • 酒店评分
  • service_facilities
  • Facility []
  • 酒店服务
  • └ name
  • String
  • 设施服务名称
  • └ option_list
  • String []
  • 是否提供服务
  • └ shid
  • Number
  • 飞猪标准酒店ID
  • └ status
  • byte
  • 酒店状态 -1:删除, 0:下架,1:上架
  • └ storeys
  • String
  • 楼层信息
  • └ tags
  • String
  • 标签信息
  • └ taobao_outer_id
  • String
  • 飞猪酒店ID
  • └ tel
  • String
  • 酒店电话,只取第一个电话,0086#0123#12345678原样输出,##18888888888需要replace'##'
  • └ type
  • String
  • 酒店类型

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlitripFuturehotelSearchserviceQueryhotelbyidRequest req = new AlitripFuturehotelSearchserviceQueryhotelbyidRequest();
req.setHid(1L);
req.setLoginUserId("1");
AlitripFuturehotelSearchserviceQueryhotelbyidResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alitrip_futurehotel_searchservice_queryhotelbyid_response>
    <query_hotel_by_id_response>
        <fh_code></fh_code>
        <fh_msg></fh_msg>
        <fh_success></fh_success>
        <hotel>
            <addr_e></addr_e>
            <address></address>
            <ahid></ahid>
            <alias></alias>
            <amusement_facilities>
                <facility>
                    <name></name>
                    <option_list>
                        <string></string>
                    </option_list>
                </facility>
            </amusement_facilities>
            <booking_notices>
                <booking_notice>
                    <desc></desc>
                    <name></name>
                </booking_notice>
            </booking_notices>
            <brand></brand>
            <brand_id></brand_id>
            <business_id_list>
                <number></number>
            </business_id_list>
            <city_id></city_id>
            <city_name></city_name>
            <contact_man></contact_man>
            <contact_phone></contact_phone>
            <cooperation_status></cooperation_status>
            <decorate_time></decorate_time>
            <desc_e></desc_e>
            <description></description>
            <district_id></district_id>
            <district_name></district_name>
            <extend></extend>
            <gmt_create></gmt_create>
            <gmt_modified></gmt_modified>
            <group_id></group_id>
            <hotel_facilities>
                <facility>
                    <name></name>
                    <option_list>
                        <string></string>
                    </option_list>
                </facility>
            </hotel_facilities>
            <hotel_tags>
                <number></number>
            </hotel_tags>
            <id></id>
            <latitude></latitude>
            <level></level>
            <longitude></longitude>
            <name></name>
            <name_e></name_e>
            <opening_time></opening_time>
            <outer_hotel_id></outer_hotel_id>
            <pics>
                <pic>
                    <head_image></head_image>
                    <image_id></image_id>
                    <room_id></room_id>
                    <room_name></room_name>
                    <status></status>
                    <tag></tag>
                    <upload_time></upload_time>
                    <url></url>
                </pic>
            </pics>
            <poi_id_list>
                <number></number>
            </poi_id_list>
            <postal_code></postal_code>
            <province_id></province_id>
            <reviews></reviews>
            <room_facilities>
                <facility>
                    <name></name>
                    <option_list>
                        <string></string>
                    </option_list>
                </facility>
            </room_facilities>
            <rooms></rooms>
            <sales></sales>
            <score></score>
            <service_facilities>
                <facility>
                    <name></name>
                    <option_list>
                        <string></string>
                    </option_list>
                </facility>
            </service_facilities>
            <shid></shid>
            <status></status>
            <storeys></storeys>
            <tags></tags>
            <taobao_outer_id></taobao_outer_id>
            <tel></tel>
            <type></type>
        </hotel>
    </query_hotel_by_id_response>
</alitrip_futurehotel_searchservice_queryhotelbyid_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部