接出接口
    接出接口
    • 文档更新说明
    • 早餐说明
    • 城市
    • 错误代码说明
    • 测试地址 测试酒店
    • 床型 、窗型 、酒店星级
    • 订单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 
      密码
      必需
      orderType
      string 
      下单类型
      必需
      orderCreate
      seachType
      string 
      实时查询价格模式下必填
      可选
      searchPrice
      checkIn
      string 
      入住日期
      必需
      checkOut
      string 
      离店日期
      必需
      contactName
      string 
      联系人
      必需
      contactTel
      string 
      联系人电话
      必需
      currency
      string 
      币种
      可选
      默认:RMB
      customerOrderCd
      string 
      客户订单号
      必需
      dailyInfos
      array [object {2}] 
      价格日历
      必需
      day
      string 
      日期
      可选
      price
      string 
      单间每晚价格
      可选
      earliestArriveTime
      string 
      最早到店时间
      可选
      18:00
      hotelId
      string 
      酒店ID
      必需
      latestArriveTime
      string 
      最晚到店时间
      可选
      orderGuests
      string 
      入住人
      必需
      姓和名用/分开,不同人名必须用英文逗号,隔开。
      rateTypeId
      string 
      价格类型
      必需
      remark
      string 
      备注
      必需
      roomNum
      integer 
      房间数量
      必需
      roomTypeId
      string 
      房型ID
      必需
      totalPrice
      string 
      总价,单位元
      必需
      示例
      {
          	"checkIn": "2017-03-28",
          	"checkOut": "2017-03-29",
          	"contactName": "联系人",
          	"contactTel": "联系电话1522017",
          	"currency": "RMB",
          	"customerOrderCd": "20170328103000",
          	"dailyInfos": [
              	{
                  "day": "2017-03-28",
                  "price": 1888
              	}
          	],
          	"earliestArriveTime": "12:00",
          	"hotelId": "182",
          	"latestArriveTime": "18:00",
          	"orderGuests": "入住/人,姓/名",
          	"orderType": "orderCreate",
          	"passWord": "thcstourtest",
          	"rateTypeId": "16",
          	"remark": "备注信息",
          	"roomNum": 1,
          	"roomTypeId": "377179",
          	"totalPrice": 1888,
          	"userName": "87"
      	}
      

      示例代码

      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 '{
          	"checkIn": "2017-03-28",
          	"checkOut": "2017-03-29",
          	"contactName": "联系人",
          	"contactTel": "联系电话1522017",
          	"currency": "RMB",
          	"customerOrderCd": "20170328103000",
          	"dailyInfos": [
              	{
                  "day": "2017-03-28",
                  "price": 1888
              	}
          	],
          	"earliestArriveTime": "12:00",
          	"hotelId": "182",
          	"latestArriveTime": "18:00",
          	"orderGuests": "入住/人,姓/名",
          	"orderType": "orderCreate",
          	"passWord": "thcstourtest",
          	"rateTypeId": "16",
          	"remark": "备注信息",
          	"roomNum": 1,
          	"roomTypeId": "377179",
          	"totalPrice": 1888,
          	"userName": "87"
      	}'

      返回响应

      🟢200成功
      application/json
      Body
      checkIn
      string 
      入住日期
      必需
      checkOut
      string 
      离店日期
      必需
      customerOrderCd
      string 
      客户订单号
      必需
      orderCd
      string 
      订单号
      必需
      orderId
      string 
      订单ID
      必需
      roomNum
      integer 
      房间数量
      必需
      totalPrice
      string 
      订单金额
      必需
      msg
      string 
      返回信息
      必需
      success
      string 
      成功标识
      必需
      示例
      {
          "checkIn": "2017-03-28",
          "checkOut": "2017-03-29",
          "customerOrderCd": "20170328103001",
          "msg": "成功",
          "orderCd": "17032800002",
          "orderId": "27522",
          "roomNum": 1,
          "success": "1",
          "totalPrice": 1888
      }
      修改于 2024-09-03 06:26:23
      上一页
      创单前校验
      下一页
      申请取消订单
      Built with