文档中心 > API类目 > EBK上云API

taobao.xhotel.batch.get (卖家酒店列表查询)

批量查询卖家酒店信息,返回多个卖家酒店对象,但是不包含标准酒店信息。 参数中,如果传了 hid list ,那么以这个为准;如果没有,那么就返回其他条件查询的分页查询结果

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
outer_hid String 可选 32432 酒店外部ID
vendor String 可选 taobao wendor
start_row Number 可选 0 分页参数
hid_list String 可选 123123,123123 酒店Hid list
page_size Number 可选 13 分页参数
city_code Number 可选 122112 城市Code
shid Number 可选 111 标准酒店ID
data_confirm Number 可选 5 匹配状态
use_open_search Boolean 可选 false
  • 默认值:false
  • 是否使用opensearch 查询卖家酒店
    hotel_name String 可选 hotel name 酒店名的模糊查询,仅支持在open search 的查询场景中

    响应参数

    名称 类型 示例值 描述
    result ResultSet result
    • first_result
    • XHotelListInfo
    • firstResult
    • └ total_count
    • Number
    • 0
    • 查询总数
    • hotel_list
    • Hotel []
    • 酒店DO集合
    • └ hid
    • Number
    • 1234342
    • 酒店hid
    • └ remark
    • String
    • 备注
    • 酒店修改备注,不入库,记录日志
    • └ tel
    • String
    • 086123838
    • 酒店电话。格式:国家代码(最长6位)#区号(最长4位)#电话(最长20位)。国家代码提示:中国大陆0086、香港00852、澳门00853、台湾00886
    • └ hotel_facilities
    • String
    • 0
    • 酒店设施。json格式{设施英文名:true|false,}
    • └ type
    • String
    • 0
    • 酒店类型。多个code逗号分隔
    • └ ext
    • String
    • 0
    • 扩展信息
    • └ city
    • Number
    • 101100
    • 城市编码
    • └ postal_code
    • String
    • 311400
    • 邮编
    • └ floors
    • String
    • 0
    • 楼层信息。4-6层
    • └ seller_nick
    • String
    • 0
    • 卖家昵称
    • └ description
    • String
    • 万豪酒店
    • 酒店中文描述
    • └ province
    • Number
    • 0
    • 省份编码
    • └ longitude
    • Number
    • 0
    • 经度
    • └ data_confirm
    • Number
    • 0
    • 匹配是否人工确认
    • └ rooms
    • Number
    • 0
    • 房间数
    • └ currency_code_name
    • String
    • 0
    • 货币类型(编码,字母编码)
    • └ status
    • Number
    • 0
    • 酒店状态。
    • └ en_desc
    • String
    • 0
    • 英文描述
    • └ country
    • String
    • 0
    • domestic=0时,固定China;否则是海外国家编码值
    • └ hotel_policies
    • String
    • 0
    • 酒店入住政策
    • └ latitude
    • Number
    • 0
    • 纬度
    • └ oper_xiaoer_name
    • String
    • 0
    • 操作人信息
    • └ comment
    • String
    • 0
    • 备注
    • └ outer_id
    • String
    • 0
    • 外部酒店ID
    • └ down_shelf_type
    • Number
    • 0
    • 下架类型
    • └ en_addr
    • String
    • 0
    • 英文地址
    • └ shid
    • Number
    • 0
    • 标准酒店ID
    • └ business
    • String
    • 0
    • 商圈
    • └ used_name
    • String
    • 0
    • 曾用名
    • └ pics
    • String
    • 0
    • 图片url链接集合,json 格式
    • └ room_facilities
    • String
    • 0
    • 房间设施
    • └ name
    • String
    • 0
    • 酒店名称
    • └ position_type
    • String
    • 0
    • 坐标类型,现在支持:G : Google:B : 百度;A : 高德;M : Mapbar;L : 灵图
    • └ billing_process_type
    • Number
    • 0
    • 标识该酒店所走的 结算流程
    • └ district
    • Number
    • 0
    • 地区编码
    • └ name_e
    • String
    • 0
    • 酒店名称(英文)
    • └ vendor
    • String
    • 0
    • 酒店的销售渠道
    • └ extend
    • String
    • 0
    • 扩展信息的JSON
    • └ star
    • String
    • 0
    • 酒店档次
    • └ booking_notice
    • String
    • 0
    • 预订须知
    • └ domestic
    • Number
    • 0
    • 是否国外
    • └ decorate_time
    • String
    • 0
    • 装修时间
    • └ source
    • Number
    • 0
    • 来源
    • └ address
    • String
    • 杭州市
    • 酒店地址
    • └ seller_id
    • Number
    • 0
    • 卖家ID
    • └ match_status
    • Number
    • 0
    • 匹配状态
    • └ service
    • String
    • 0
    • 酒店服务。json格式
    • └ brand
    • String
    • 0
    • 品牌
    • └ kzzy_tag
    • Number
    • 0
    • 判断该酒店是不是对应的卖家直营
    • └ opening_time
    • String
    • 0
    • 开业时间
    • └ ks_room_num
    • Number
    • 0
    • 可售房型数量
    • └ ks_heathy_room_num
    • Number
    • 0
    • 可售健康房型数量
    • tag_json_list
    • TagJsonUnit []
    • 酒店批量查询中, 特殊标签含义的一个集合,集合中 有一个 hid,以及对应的 tagJson
    • └ hid
    • Number
    • 121212
    • 酒店hid
    • └ tag_json
    • String
    • {"pure-direct-hotel":0,"direct-manual-order-hotel":1,"ebk-direct-hotel":0,"non-direct-hotel":1,"allow-dingding-business-travel-hotel":1,"willing-dingding-bussiness-travel-hotel":0,"calendar-room-package-hotel":1,"dijiajiajia-hotel":0,"ebk-number-of-confirm-room-hotel":1}
    • 酒店维度特殊标签含义, json: {"pure-direct-hotel":0,"direct-manual-order-hotel":1,"ebk-direct-hotel":0,"non-direct-hotel":1,"allow-dingding-business-travel-hotel":1,"willing-dingding-bussiness-travel-hotel":0,"calendar-room-package-hotel":1,"dijiajiajia-hotel":0,"ebk-number-of-confirm-room-hotel":1} , key含义: pure-direct-hotel 表示纯直连酒店, direct-manual-order-hotel 和 ebk-direct-hotel 和 non-direct-hotel 这三个key对应value都是0 . direct-manual-order-hotel 表示 人工承接失败订单的酒店标签。如果某个直连酒店打了该标签,那么直连下单失败以后,允许人工承接订单,由人工跟进 . ebk-direct-hotel 表示 ebk直连酒店标。如果某个酒店打了该标签,那么这个酒店下允许通过ebk发布直连rp . non-direct-hotel 表示 卖家非直连酒店标签。如果某个酒店打了该标签,那么该酒店下单不会走直连交易。 allow-dingding-business-travel-hotel 表示 允许进入阿里商旅渠道(钉钉)售卖信用住的单体酒店 willing-dingding-bussiness-travel-hotel 表示 已签协议愿意加入阿里商旅渠道售卖信用住的单体酒店 . calendar-room-package-hotel 表示 酒店可以参加日历房套餐活动包括创建,修改,删除活动信息(高星集团GMV项目) dijiajiajia-hotel 表示 底价加价酒店权限标。只有打了该标的酒店才允许维护底价加价规则和包房rp . ebk-number-of-confirm-room-hotel 表示ebk确认订单,是否要输入外部确认号
    • └ error_code
    • String
    • 0
    • errorCode
    • └ success
    • Boolean
    • false
    • success
    • └ error_msg
    • String
    • 0
    • errorMsg

    请求示例

    • JAVA
    • .NET
    • PHP
    • CURL
    • Python
    • C/C++
    • NodeJS
    TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
    XhotelBatchGetRequest req = new XhotelBatchGetRequest();
    req.setOuterHid("32432");
    req.setVendor("taobao");
    req.setStartRow(0L);
    req.setHidList("123123,123123");
    req.setPageSize(13L);
    req.setCityCode(122112L);
    req.setShid(111L);
    req.setDataConfirm(5L);
    req.setUseOpenSearch(false);
    req.setHotelName("hotel name");
    XhotelBatchGetResponse rsp = client.execute(req, sessionKey);
    System.out.println(rsp.getBody());

    响应示例

    • XML示例
    • JSON示例
    <xhotel_batch_get_response>
        <result>
            <first_result>
                <total_count>0</total_count>
                <hotel_list>
                    <hotel>
                        <hid>1234342</hid>
                        <remark>备注</remark>
                        <tel>086123838</tel>
                        <hotel_facilities>0</hotel_facilities>
                        <type>0</type>
                        <ext>0</ext>
                        <city>101100</city>
                        <postal_code>311400</postal_code>
                        <floors>0</floors>
                        <seller_nick>0</seller_nick>
                        <description>万豪酒店</description>
                        <province>0</province>
                        <longitude>0</longitude>
                        <data_confirm>0</data_confirm>
                        <rooms>0</rooms>
                        <currency_code_name>0</currency_code_name>
                        <status>0</status>
                        <en_desc>0</en_desc>
                        <country>0</country>
                        <hotel_policies>0</hotel_policies>
                        <latitude>0</latitude>
                        <oper_xiaoer_name>0</oper_xiaoer_name>
                        <comment>0</comment>
                        <outer_id>0</outer_id>
                        <down_shelf_type>0</down_shelf_type>
                        <en_addr>0</en_addr>
                        <shid>0</shid>
                        <business>0</business>
                        <used_name>0</used_name>
                        <pics>0</pics>
                        <room_facilities>0</room_facilities>
                        <name>0</name>
                        <position_type>0</position_type>
                        <billing_process_type>0</billing_process_type>
                        <district>0</district>
                        <name_e>0</name_e>
                        <vendor>0</vendor>
                        <extend>0</extend>
                        <star>0</star>
                        <booking_notice>0</booking_notice>
                        <domestic>0</domestic>
                        <decorate_time>0</decorate_time>
                        <source>0</source>
                        <address>杭州市</address>
                        <seller_id>0</seller_id>
                        <match_status>0</match_status>
                        <service>0</service>
                        <brand>0</brand>
                        <kzzy_tag>0</kzzy_tag>
                        <opening_time>0</opening_time>
                        <ks_room_num>0</ks_room_num>
                        <ks_heathy_room_num>0</ks_heathy_room_num>
                    </hotel>
                </hotel_list>
                <tag_json_list>
                    <tag_json_unit>
                        <hid>121212</hid>
                        <tag_json>{&quot;pure-direct-hotel&quot;:0,&quot;direct-manual-order-hotel&quot;:1,&quot;ebk-direct-hotel&quot;:0,&quot;non-direct-hotel&quot;:1,&quot;allow-dingding-business-travel-hotel&quot;:1,&quot;willing-dingding-bussiness-travel-hotel&quot;:0,&quot;calendar-room-package-hotel&quot;:1,&quot;dijiajiajia-hotel&quot;:0,&quot;ebk-number-of-confirm-room-hotel&quot;:1}</tag_json>
                    </tag_json_unit>
                </tag_json_list>
            </first_result>
            <error_code>0</error_code>
            <success>false</success>
            <error_msg>0</error_msg>
        </result>
    </xhotel_batch_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

    返回
    顶部