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

      查询酒店ID

      POST
      /a/commoninterface/commonInterface/query

      请求参数

      Body 参数application/json
      passWord
      string 
      密码
      必需
      cityId
      string 
      城市ID
      必需
      userName
      string 
      用户名
      必需
      queryType
      string 
      查询类型
      必需
      示例
      {
          "passWord": "thcstourtest",
          "cityId": "236",
          "userName": "87",
          "queryType": "hotelidByCity"
      }

      示例代码

      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 '{
          "passWord": "thcstourtest",
          "cityId": "236",
          "userName": "87",
          "queryType": "hotelidByCity"
      }'

      返回响应

      🟢200成功
      application/json
      Body
      hotelIdList
      array[string]
      酒店IDs
      必需
      msg
      string 
      返回状态
      必需
      success
      string 
      返回状态
      必需
      示例
      {
          "hotelIdList": [
              "string"
          ],
          "msg": "string",
          "success": "string"
      }
      修改于 2024-08-28 01:07:57
      上一页
      订单ordertype
      下一页
      查询酒店房型基本信息
      Built with