悦想家
首页
V1版本
数据字典
数据字典
  • 省市
  • 酒店服务设施
  • 房型服务设施
  • 酒店品牌
首页
V1版本
数据字典
数据字典
  • 省市
  • 酒店服务设施
  • 房型服务设施
  • 酒店品牌
  1. 三、价格类接口
  • Release Notes
  • 签名认证
  • 错误码
  • 一、分销商对接流程图
  • 二、酒店静态信息类接口
    • 2.0说明
    • 2.1城市code获取酒店ID
      POST
    • 2.2酒店分页查询
      POST
    • 2.3获取酒店详情
      POST
    • 2.4获取酒店房型
      POST
  • 三、价格类接口
    • 3.1按照区/县获取酒店起售价
      POST
    • 3.2获取酒店产品列表
      POST
    • 3.4获取酒店实时可订产品列表
      POST
    • 3.5可预订产品房态
      POST
    • 3.6条件搜索酒店接口
      POST
  • 四、订单类接口
    • 4.1预下单校验
      POST
    • 4.2下单接口
      POST
    • 4.3确认订单支付
      POST
    • 4.4查询订单详情
      POST
    • 4.5取消订单
      POST
    • 4.6建售后单
      POST
    • 4.7查售后单
      POST
  • 五、监测类接口
    • 5.1检测酒店房型变更
      POST
    • 5.2监测订单状态
      POST
  • 六、推送类接口
  1. 三、价格类接口

3.4获取酒店实时可订产品列表

POST
/open/corp/hotel/book/roomList
最后修改时间:2026-02-26 09:39:49
获取实时可预定酒店的产品列表,此接口房态和产品较listByHotelId较为准确。使用建议:酒店详情页时传入hotelID查询所有可预订产品,用户点击预订单个产品进入订单填写页面时传入productRoomId来查询获取最新价格。
频率限制:10次/S

请求参数

Body 参数application/json

示例
{
    "hotelId": "1805940519466315778",
    "productRoomId":"",
    "checkinDate":"2025-01-08",
    "checkoutDate":"2025-01-09",
    "num":1
}

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://api.test.yxjtrip.com/core/open/corp/hotel/book/roomList' \
--header 'Content-Type: application/json' \
--data-raw '{
    "hotelId": "1805940519466315778",
    "productRoomId":"",
    "checkinDate":"2025-01-08",
    "checkoutDate":"2025-01-09",
    "num":1
}'

返回响应

🟢200成功
application/json
Body

示例
{
    "code": 0,
    "msg": "string",
    "data": [
        {
            "id": "string",
            "hotelId": "string",
            "roomName": "string",
            "roomSize": "string",
            "roomTypeId": "string",
            "roomTypeName": "string",
            "tags": "string",
            "bedAdd": "string",
            "windows": "string",
            "breakfast": "string",
            "invoiceMode": "string",
            "invoiceType": "string",
            "bookEarliestDay": 0,
            "bookTodayTime": "string",
            "bookLatestDay": 0,
            "bookPrice": 0,
            "status": "string",
            "cancelType": "string",
            "cancelTime": "string",
            "confirmType": 0,
            "saleStatus": "string",
            "peopleNum": 0,
            "minSerialStay": 0,
            "maxSerialStay": 0,
            "minRoomCount": 0,
            "maxRoomCount": 0,
            "origin": "string",
            "roomCancelRuleList": [
                {
                    "cancelFeeBaseType": "string",
                    "cancelType": "string",
                    "cancelDay": "string",
                    "cancelTime": "string",
                    "cancelAllRate": "string",
                    "cancelAmount": "string",
                    "night": "string"
                }
            ],
            "roomSaleStatusList": [
                {
                    "date": "string",
                    "salesPrice": 0,
                    "saleStatus": "string",
                    "price": 0,
                    "breakfast": 0,
                    "roomProductId": "string"
                }
            ]
        }
    ]
}
修改于 2026-02-26 09:39:49
上一页
3.2获取酒店产品列表
下一页
3.5可预订产品房态
Built with