接出接口
    接出接口
    • 文档更新说明
    • 早餐说明
    • 城市
    • 错误代码说明
    • 测试地址 测试酒店
    • 床型 、窗型 、酒店星级
    • 订单ordertype
    • 查询酒店ID
      POST
    • 查询酒店房型基本信息
      POST
    • 查询酒店房型价格房态
      POST
    • 查询变价的酒店ID
      POST
    • 创单前校验
      POST
    • 新增订单
      POST
    • 申请取消订单
      POST
    • 查询订单状态
      POST
    • 查询图片信息
      POST
    • 推送房态房价变量
      POST

      查询酒店房型价格房态

      POST
      /a/commoninterface/commonInterface/query

      请求参数

      Body 参数application/json
      userName
      string 
      用户名
      必需
      passWord
      string 
      密码
      必需
      queryType
      string 
      查询类型
      必需
      hotelPriceStatus
      实时查询 searchHotelPrice
      hotelId
      string 
      酒店ID
      必需
      checkInDate
      string 
      入住日期
      必需
      checkOutDate
      string 
      离店日期
      必需
      roomtypeId
      string 
      房型ID
      可选
      rateTypeId
      string 
      价格类型ID
      可选
      示例
      {
        "userName": "87",
        "passWord": "thcstourtest",
        "queryType": "hotelPriceStatus",
        "hotelId": "549901",
        "checkInDate": "2023-08-10",
        "checkOutDate": "2023-08-11",
        "roomtypeId": "2271466",
        "rateTypeId": "17"
      }

      示例代码

      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://test-cn.your-api-server.com/a/commoninterface/commonInterface/query' \
      --header 'Content-Type: application/json' \
      --data-raw '{
          "userName": "87",
          "passWord": "thcstourtest",
          "queryType": "hotelPriceStatus",
          "hotelId": "549901",
          "checkInDate": "2023-08-10",
          "checkOutDate": "2023-08-11",
          "roomtypeId": "2271466",
          "rateTypeId": "17"
      }'

      返回响应

      🟢200成功
      application/json
      Body
      hotelPriceStatusList
      array [object {22}] 
      必需
      advanceDays
      string 
      提前天数
      必需
      advanceTime
      string 
      小时数
      必需
      breakfastQty
      string 
      早餐份数
      必需
      channel
      string 
      售卖渠道
      必需
      商旅 OTA
      city
      string 
      城市ID
      必需
      countDays
      string 
      连住晚数
      必需
      currency
      string 
      币种
      必需
      默认:RMB
      cancelType
      string 
      取消类型
      必需
      13不可取消,14限制取消
      daySelect
      string 
      取消提前天数
      必需
      例如:如果daySelect 是0 ,timeSelect 是6,则表示入住当天18点前可以免费取消
      timeSelect
      string 
      取消提前小时数
      必需
      例如:如果daySelect 是0 ,timeSelect 是6,则表示入住当天18点前可以免费取消
      fineType
      string 
      担保金额类型
      必需
      11首日房费,12全段房费
      hotelId
      integer 
      酒店ID
      必需
      nameChn
      string 
      酒店名称
      必需
      night
      string 
      日期
      必需
      pricingType
      integer 
      定价类型
      必需
      11:现付,12:预付
      qtyAble
      string 
      房间数量
      必需
      ratetypeId
      string 
      价格类型ID
      必需
      ratetypeName
      string 
      价格类型名称
      必需
      roomtypeId
      string 
      房型ID
      必需
      roomtypeName
      string 
      房型名称
      必需
      salePrice
      string 
      卖价/同行价
      必需
      active
      string 
      价格是否有效
      必需
      msg
      string 
      必需
      success
      string 
      必需
      示例
      {
        "hotelPriceStatusList": [
          {
            "active": "1",
            "advanceDays": "0",
            "advanceTime": "23",
            "allotmentType": 12,
            "breakfastQty": "010022",
            "cancelType": "14",
            "city": "425",
            "countDays": "0",
            "currency": "RMB",
            "daySelect": "2",
            "fineType": "12",
            "hotelId": 182,
            "keyid": "20170324182377179121251660371",
            "keyidnodate": "182377179121251660371",
            "nameChn": "香港海景嘉福洲际酒店",
            "night": "2017-03-24 00:00:00",
            "pricingType": 12,
            "qtyAble": "2",
            "ratetypeId": "16",
            "ratetypeName": "含单早",
            "roomtypeId": 377179,
            "roomtypeName": "豪华房超优惠特价(限内宾)",
            "salePrice": "1732.0",
            "supplierId": 5,
            "supplierName": "深圳国际旅行社",
            "channel": "商旅",
            "timeSelect": "7"
          },
          {
            "active": "1",
            "advanceDays": "0",
            "advanceTime": "23",
            "allotmentType": 12,
            "basePrice": "1613.00",
            "breakfastQty": "010022",
            "cancelType": "14",
            "city": "425",
            "countDays": "0",
            "currency": "RMB",
            "daySelect": "3",
            "fineType": "12",
            "hotelId": 182,
            "keyid": "20170325182377179121251660366",
            "keyidnodate": "182377179121251660366",
            "nameChn": "香港海景嘉福洲际酒店",
            "night": "2017-03-25 00:00:00",
            "pricingType": 12,
            "qtyAble": "2",
            "ratetypeId": "16",
            "ratetypeName": "含单早",
            "roomtypeId": 377179,
            "roomtypeName": "豪华房超优惠特价(限内宾)",
            "salePrice": "1732.0",
            "supplierId": 5,
            "supplierName": "深圳国际旅行社",
            "channel": "OTA",
            "timeSelect": "7"
          }
        ],
        "msg": "成功",
        "success": "1"
      }
      上一页
      查询酒店房型基本信息
      下一页
      查询变价的酒店ID
      Built with