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

alitrip.futurehotel.query.hotel.info (查询酒店信息-原数据返回)

查询酒店信息-原数据返回

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param_query_hotel_info_r_q QueryHotelInfoRq 可选 param_query_hotel_info_r_q
  • └ id
  • Number
  • 可选
  • 1
  • 酒店ID
  • └ login_user_id
  • String
  • 可选
  • 1
  • login_user_id
  • └ name
  • String
  • 可选
  • 1
  • 名称
  • └ taobao_id
  • String
  • 可选
  • 1
  • 淘宝ID

响应参数

名称 类型 示例值 描述
result QueryHotelInfoRs result
  • └ address
  • String
  • 地址
  • └ ahid
  • Number
  • 菲住联盟在飞猪酒店店铺下的酒店ID
  • └ brand_id
  • Number
  • 品牌ID
  • └ city_code
  • Number
  • 城市code
  • └ city_name
  • String
  • 城市名称
  • └ contact_man
  • String
  • 联系人
  • └ contact_phone
  • String
  • 联系人手机号
  • └ decorate_time
  • String
  • 装修时间
  • └ description
  • String
  • 描述
  • └ district_code
  • Number
  • 地区code
  • └ district_name
  • String
  • 行政区名称
  • └ extend
  • String
  • 扩展字段
  • └ fh_code
  • String
  • fhCode
  • └ fh_msg
  • String
  • fhMsg
  • └ fh_success
  • Boolean
  • fhSuccess
  • └ group_id
  • Number
  • 关联集团ID
  • └ id
  • Number
  • id
  • └ latitude
  • String
  • 纬度
  • └ longitude
  • String
  • 经度
  • └ name
  • String
  • 酒店名称
  • └ opening_time
  • String
  • 开业时间
  • └ outer_hotel_id
  • String
  • 外部酒店Id
  • └ province_code
  • Number
  • 省份code
  • └ province_name
  • String
  • 省份名称
  • └ rooms
  • Number
  • 房间数
  • └ score
  • String
  • 评分
  • └ shid
  • Number
  • 飞猪标准酒店ID
  • └ storeys
  • String
  • 楼层数
  • └ tel
  • String
  • 电话
  • └ vendor
  • Number
  • 渠道

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlitripFuturehotelQueryHotelInfoRequest req = new AlitripFuturehotelQueryHotelInfoRequest();
AlitripFuturehotelQueryHotelInfoRequest.QueryHotelInfoRq obj1 = new AlitripFuturehotelQueryHotelInfoRequest.QueryHotelInfoRq();
obj1.setId(1L);
obj1.setLoginUserId("1");
obj1.setName("1");
obj1.setTaobaoId("1");
req.setParamQueryHotelInfoRQ(obj1);
AlitripFuturehotelQueryHotelInfoResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alitrip_futurehotel_query_hotel_info_response>
    <result>
        <address></address>
        <ahid></ahid>
        <brand_id></brand_id>
        <city_code></city_code>
        <city_name></city_name>
        <contact_man></contact_man>
        <contact_phone></contact_phone>
        <decorate_time></decorate_time>
        <description></description>
        <district_code></district_code>
        <district_name></district_name>
        <extend></extend>
        <fh_code></fh_code>
        <fh_msg></fh_msg>
        <fh_success></fh_success>
        <group_id></group_id>
        <id></id>
        <latitude></latitude>
        <longitude></longitude>
        <name></name>
        <opening_time></opening_time>
        <outer_hotel_id></outer_hotel_id>
        <province_code></province_code>
        <province_name></province_name>
        <rooms></rooms>
        <score></score>
        <shid></shid>
        <storeys></storeys>
        <tel></tel>
        <vendor></vendor>
    </result>
</alitrip_futurehotel_query_hotel_info_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

返回
顶部