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

      创单前校验

      POST
      /a/commoninterface/commonInterface/order

      请求参数

      Body 参数application/json
      userName
      string 
      用户名
      必需
      passWord
      string 
      密码
      必需
      hotelId
      string 
      酒店id
      必需
      checkInDate
      string 
      开始时间
      必需
      checkOutDate
      string 
      结束时间
      必需
      roomtypeId
      string 
      房型id
      必需
      rateTypeId
      string 
      价格类型id
      必需
      orderType
      string 
      类型
      必需
      roomNun
      integer 
      房间数量
      必需
      totalPrice
      string 
      总价
      必需
      示例
      {
        "userName": "87",
        "passWord": "thcstourtest",
        "orderType": "orderCheck",
        "hotelId": "549901",
        "checkInDate": "2023-08-10",
        "checkOutDate": "2023-08-11",
        "roomtypeId": "2271466",
        "rateTypeId": "17",
        "roomNun":1,
        "totalPrice":"12312"
      }

      示例代码

      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/order' \
      --header 'Content-Type: application/json' \
      --data-raw '{
        "userName": "87",
        "passWord": "thcstourtest",
        "orderType": "orderCheck",
        "hotelId": "549901",
        "checkInDate": "2023-08-10",
        "checkOutDate": "2023-08-11",
        "roomtypeId": "2271466",
        "rateTypeId": "17",
        "roomNun":1,
        "totalPrice":"12312"
      }'

      返回响应

      🟢200成功
      application/json
      Body
      dailyList
      array [object {4}] 
      必需
      date
      string 
      日期
      可选
      price
      string 
      价格
      可选
      qty
      string 
      库存
      可选
      breakfastQty
      string 
      早餐份数
      必需
      msg
      string 
      原因
      必需
      success
      string 
      1 成功 8失败
      必需
      示例
      {
          "dailyList": [
              {
                  "date": "2024-05-17",
                  "price": "215.0",
                  "qty": "3"
              }
          ],
          "msg": "成功",
          "success": "1"
      }
      🟢200变价
      🟢200满房
      修改于 2024-08-28 01:08:32
      上一页
      查询变价的酒店ID
      下一页
      新增订单
      Built with