注意:以下文档只适用于TOP接口,请谨慎使用!

文档中心 > API类目 > 飞猪酒店标准库

alitrip.hotel.hstdf.shotel.roomtype.mappings.list (根据HID获取所有卖家房型匹配关系)

根据HID获取所有卖家房型匹配关系

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
hid Number 必须 1234 HID

响应参数

名称 类型 示例值 描述
result TopResultSet top返回结果
  • results
  • Results []
  • Results
  • 返回列表
  • room_type
  • RoomTypePo
  • {}
  • 卖家房型
  • └ rid
  • Number
  • 123456
  • rid
  • └ name
  • String
  • 大床房
  • 房型名称
  • └ name_e
  • String
  • double room
  • 房型英文名称
  • └ bed_type
  • String
  • 大床
  • 床型
  • └ area
  • String
  • 30
  • 面积
  • └ outer_id
  • String
  • 123456
  • outer_id
  • └ window_type
  • Number
  • 1
  • 窗型
  • std_room_type
  • SroomTypePo
  • {}
  • 标准房型
  • └ srid
  • Number
  • 123455
  • srid
  • └ name
  • String
  • 大床房型
  • 房型名称
  • └ name_e
  • String
  • double room
  • 房型英文名称
  • └ bed_type
  • String
  • 大床
  • 床型
  • └ area
  • String
  • 30
  • 面积
  • └ window_type
  • Number
  • 1
  • 窗型,0:无窗,1:有窗,2:部分有窗,3:暗窗,4:部分暗窗
  • └ matched
  • Boolean
  • true
  • 是否匹配
  • └ error_code
  • String
  • 500
  • 异常码
  • └ error_msg
  • String
  • 系统异常
  • 异常信息
  • └ success
  • Boolean
  • false
  • 是否成功

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlitripHotelHstdfShotelRoomtypeMappingsListRequest req = new AlitripHotelHstdfShotelRoomtypeMappingsListRequest();
req.setHid(1234L);
AlitripHotelHstdfShotelRoomtypeMappingsListResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alitrip_hotel_hstdf_shotel_roomtype_mappings_list_response>
    <result>
        <results>
            <results>
                <room_type>
                    <rid>123456</rid>
                    <name>大床房</name>
                    <name_e>double room</name_e>
                    <bed_type>大床</bed_type>
                    <area>30</area>
                    <outer_id>123456</outer_id>
                    <window_type>1</window_type>
                </room_type>
                <std_room_type>
                    <srid>123455</srid>
                    <name>大床房型</name>
                    <name_e>double room</name_e>
                    <bed_type>大床</bed_type>
                    <area>30</area>
                    <window_type>1</window_type>
                </std_room_type>
                <matched>true</matched>
            </results>
        </results>
        <error_code>500</error_code>
        <error_msg>系统异常</error_msg>
        <success>false</success>
    </result>
</alitrip_hotel_hstdf_shotel_roomtype_mappings_list_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

返回
顶部