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

taobao.xhotel.sroomtype.batch.get (标准房型批量查询)

标准房型批量查询

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
shid Number 必须 123 123

响应参数

名称 类型 示例值 描述
result ResultSet 返回值数据格式
  • └ error_code
  • String
  • 0
  • 错误码
  • result_list
  • XShotel []
  • 数据列表
  • └ window_type
  • String
  • 0
  • 窗型枚举定义
  • └ gmt_modified
  • Date
  • 2018-03-28 00:01:00
  • 最后修改时间
  • └ network_service
  • String
  • 无线上网(免费)
  • 宽带服务,定义在枚举类型
  • └ gmt_create
  • Date
  • 2018-03-28 00:00:00
  • 创建时间
  • └ status
  • Number
  • 0
  • 数据状态,0--正常可售;-4--已失效
  • └ bed
  • String
  • [{bedType:1,bedSize:2},{bedType:2,bedSize:3}]
  • 床型
  • └ extend
  • String
  • {"keyword":”上地”}
  • 扩展信息
  • └ shid
  • Number
  • 85155223
  • 所属标准酒店id
  • └ srid
  • Number
  • 45145645
  • 标准房型id
  • └ pics
  • String
  • //img.alicdn.com/bao/uploaded/i5/TB1JlDmRVXXXXbAXpXXchUS8FXX_030708.jpg,//img.alicdn.com/bao/uploaded/i5/TB1JlDmRVXXXXbAXpXXchUS8FXX_030708.jpg
  • 房型图片列表
  • └ area
  • String
  • 35平
  • 面积
  • └ facility
  • String
  • {}
  • 房型设施
  • └ floor
  • String
  • 8
  • 标准房型楼层
  • └ name
  • String
  • 大床房
  • 标准房型名称
  • └ max_occupancy
  • Number
  • 3
  • 最大入住人数
  • └ add_bed
  • Number
  • 0
  • 是否可加床,0-否;1-是
  • └ name_e
  • String
  • suite room
  • 房型英文名称
  • └ error_msg
  • String
  • 非法参数
  • 错误信息
  • └ success
  • Boolean
  • true
  • 操作是否成功

请求示例

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

响应示例

  • XML示例
  • JSON示例
<xhotel_sroomtype_batch_get_response>
    <result>
        <error_code>0</error_code>
        <result_list>
            <x_shotel>
                <window_type>0</window_type>
                <gmt_modified>2018-03-28 00:01:00</gmt_modified>
                <network_service>无线上网(免费)</network_service>
                <gmt_create>2018-03-28 00:00:00</gmt_create>
                <status>0</status>
                <bed>[{bedType:1,bedSize:2},{bedType:2,bedSize:3}]</bed>
                <extend>{&quot;keyword&quot;:”上地”}</extend>
                <shid>85155223</shid>
                <srid>45145645</srid>
                <pics>//img.alicdn.com/bao/uploaded/i5/TB1JlDmRVXXXXbAXpXXchUS8FXX_030708.jpg,//img.alicdn.com/bao/uploaded/i5/TB1JlDmRVXXXXbAXpXXchUS8FXX_030708.jpg</pics>
                <area>35平</area>
                <facility>{}</facility>
                <floor>8</floor>
                <name>大床房</name>
                <max_occupancy>3</max_occupancy>
                <add_bed>0</add_bed>
                <name_e>suite room</name_e>
            </x_shotel>
        </result_list>
        <error_msg>非法参数</error_msg>
        <success>true</success>
    </result>
</xhotel_sroomtype_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

返回
顶部