文档中心 > API类目 > 酒店团购套餐API

alitrip.hotel.tuan.history.hotels.get (获取历史酒店)

获取历史酒店

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
page_no Number 必须 1 pageNo
page_size Number 可选 10
  • 默认值:0
  • pageSize
    store_seller_id Number 可选 2 storeSellerId
    store_seller_nick String 可选 hotel12345 storeSellerNick

    响应参数

    名称 类型 示例值 描述
    result TuanResultVo result
    • └ code
    • String
    • 500
    • code
    • └ message
    • String
    • 出错啦
    • message
    • result
    • TuanHistoryHotelPageVo
    • result
    • list
    • TuanHotelInfoVo []
    • list
    • └ address
    • String
    • 酒店地址
    • address
    • └ appoint_phones
    • String
    • 电话json
    • appointPhones
    • └ bill_descs
    • String
    • 用户-97.5%
    • billDescs
    • └ bill_infos
    • String
    • 用户:97.5:1
    • billInfos
    • └ default_bill_ratio
    • String
    • 97.5
    • defaultBillRatio
    • └ hid
    • Number
    • 111
    • hid
    • └ lock_bill_infos
    • Boolean
    • false
    • lockBillInfos
    • └ name
    • String
    • 杭州大酒店
    • name
    • room_types
    • TuanRoomTypeVo []
    • roomTypes
    • └ area
    • String
    • 地区
    • area
    • └ bed
    • String
    • 床位
    • bed
    • └ facility
    • String
    • 设备
    • facility
    • └ floor
    • String
    • 2楼
    • floor
    • └ max_occupancy
    • String
    • 3人
    • maxOccupancy
    • └ name
    • String
    • 大床房
    • name
    • └ network_service
    • String
    • WIFI
    • networkService
    • └ rid
    • String
    • 1111
    • rid
    • └ standard
    • Boolean
    • true
    • standard
    • └ shid
    • Number
    • 1111
    • shid
    • └ store_id
    • Number
    • 1111
    • storeId
    • └ write_off_accounts
    • String
    • 核销账号
    • writeOffAccounts
    • └ page_no
    • Number
    • 1
    • pageNo
    • └ page_size
    • Number
    • 10
    • pageSize
    • └ total_count
    • Number
    • 3000
    • totalCount
    • └ total_page_num
    • Number
    • 10
    • totalPageNum
    • └ success
    • Boolean
    • true
    • success

    请求示例

    • JAVA
    • .NET
    • PHP
    • CURL
    • Python
    • C/C++
    • NodeJS
    TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
    AlitripHotelTuanHistoryHotelsGetRequest req = new AlitripHotelTuanHistoryHotelsGetRequest();
    req.setPageNo(1L);
    req.setPageSize(10L);
    req.setStoreSellerId(2L);
    req.setStoreSellerNick("hotel12345");
    AlitripHotelTuanHistoryHotelsGetResponse rsp = client.execute(req, sessionKey);
    System.out.println(rsp.getBody());

    响应示例

    • XML示例
    • JSON示例
    <alitrip_hotel_tuan_history_hotels_get_response>
        <result>
            <code>500</code>
            <message>出错啦</message>
            <result>
                <list>
                    <tuan_hotel_info_vo>
                        <address>酒店地址</address>
                        <appoint_phones>电话json</appoint_phones>
                        <bill_descs>用户-97.5%</bill_descs>
                        <bill_infos>用户:97.5:1</bill_infos>
                        <default_bill_ratio>97.5</default_bill_ratio>
                        <hid>111</hid>
                        <lock_bill_infos>false</lock_bill_infos>
                        <name>杭州大酒店</name>
                        <room_types>
                            <tuan_room_type_vo>
                                <area>地区</area>
                                <bed>床位</bed>
                                <facility>设备</facility>
                                <floor>2楼</floor>
                                <max_occupancy>3人</max_occupancy>
                                <name>大床房</name>
                                <network_service>WIFI</network_service>
                                <rid>1111</rid>
                                <standard>true</standard>
                            </tuan_room_type_vo>
                        </room_types>
                        <shid>1111</shid>
                        <store_id>1111</store_id>
                        <write_off_accounts>核销账号</write_off_accounts>
                    </tuan_hotel_info_vo>
                </list>
                <page_no>1</page_no>
                <page_size>10</page_size>
                <total_count>3000</total_count>
                <total_page_num>10</total_page_num>
            </result>
            <success>true</success>
        </result>
    </alitrip_hotel_tuan_history_hotels_get_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

    返回
    顶部