POST api/hotel/searchhotellist/{citycode}/{languageId}/v1?iscache={iscache}

搜索酒店列表(暂停使用)

Request Information

URI Parameters

NameDescriptionTypeAdditional information
citycode

城市编号

string

Required

languageId

语言(zh-cn中文 zh-hk,zh-tw繁体 en-us英文)

string

Required

iscache

是否缓存

boolean

Default value is True

Body Parameters

搜索条件

HotelAvailRQContract
NameDescriptionTypeAdditional information
hotelcode

酒店编码

string

None.

hotelname

酒店名称

string

None.

starttime

开始时间

date

None.

endtime

结束时间

date

None.

nationallity

国籍(预留暂无用)

string

None.

rateplanid

搜索PlanId(预留暂无用)

Collection of string

None.

roomcount

预订酒店数量

integer

None.

guestslist

Collection of Guest

None.

roomtypecode

房间类型code

string

None.

pageindex

当前页

integer

None.

pagesize

每页记录条数

integer

None.

loadModules

加载模块(酒店为固定,1.概要总计,2.房间,3.酒店地址汇总)

Collection of integer

None.

star

星级(筛选)

string

None.

facility

设施(筛选)

string

None.

price

价格(筛选)

string

None.

orderby

排序

string

None.

platformSource

平台来源

string

None.

cdnplatformSource

加速平台

string

None.

clientguid

客户端guid

string

None.

markupby

Source MarkUpBy(A.金额, R.百分比)

string

None.

markupamt

Markup数值

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "hotelcode": "sample string 1",
  "hotelname": "sample string 2",
  "starttime": "2024-12-23T19:38:32.7284552+08:00",
  "endtime": "2024-12-23T19:38:32.7284552+08:00",
  "nationallity": "sample string 5",
  "rateplanid": [
    "sample string 1",
    "sample string 2"
  ],
  "roomcount": 6,
  "guestslist": [
    {
      "audultcount": 1,
      "childagelist": [
        1,
        2
      ]
    },
    {
      "audultcount": 1,
      "childagelist": [
        1,
        2
      ]
    }
  ],
  "roomtypecode": "sample string 7",
  "pageindex": 8,
  "pagesize": 9,
  "loadModules": [
    1,
    2
  ],
  "star": "sample string 10",
  "facility": "sample string 11",
  "price": "sample string 12",
  "orderby": "sample string 13",
  "platformSource": "sample string 14",
  "cdnplatformSource": "sample string 15",
  "clientguid": "sample string 16",
  "markupby": "sample string 17",
  "markupamt": 18.0
}

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'HotelAvailRQContract'.

Response Information

Resource Description

搜索酒店列表(暂停使用)

ReturnResultOfHotelSearchPageContract
NameDescriptionTypeAdditional information
data

HotelSearchPageContract

None.

code

状态码:100成功,其他自定义

integer

None.

message

提示消息

string

None.

Response Formats

application/json, text/json

Sample:
{
  "data": {
    "pagehotellist": {
      "total_count": 1,
      "page": 2,
      "page_size": 3,
      "data_list": [
        {
          "hotelcode": "sample string 1",
          "hotelname": "sample string 2",
          "hotelcodecontext": "sample string 3",
          "citycode": "sample string 4",
          "address": "sample string 5",
          "phones": [
            "sample string 1",
            "sample string 2"
          ],
          "piclist": [
            {
              "title": "sample string 1",
              "picurl": "sample string 2",
              "picsource": 3
            },
            {
              "title": "sample string 1",
              "picurl": "sample string 2",
              "picsource": 3
            }
          ],
          "paytotal": 6.0,
          "currencies": "sample string 7",
          "roomtypename": "sample string 8",
          "roomtype": "sample string 9",
          "lng": 10.1,
          "Lat": 11.1,
          "grade": 12,
          "gradename": "sample string 13",
          "hotelamenities": {
            "sample string 1": "sample string 2",
            "sample string 3": "sample string 4"
          },
          "roomamenities": {
            "sample string 1": "sample string 2",
            "sample string 3": "sample string 4"
          },
          "otherdescript": [
            {
              "title": "sample string 1",
              "descript": "sample string 2"
            },
            {
              "title": "sample string 1",
              "descript": "sample string 2"
            }
          ],
          "locationdescript": "sample string 14",
          "hoteldescript": "sample string 15"
        },
        {
          "hotelcode": "sample string 1",
          "hotelname": "sample string 2",
          "hotelcodecontext": "sample string 3",
          "citycode": "sample string 4",
          "address": "sample string 5",
          "phones": [
            "sample string 1",
            "sample string 2"
          ],
          "piclist": [
            {
              "title": "sample string 1",
              "picurl": "sample string 2",
              "picsource": 3
            },
            {
              "title": "sample string 1",
              "picurl": "sample string 2",
              "picsource": 3
            }
          ],
          "paytotal": 6.0,
          "currencies": "sample string 7",
          "roomtypename": "sample string 8",
          "roomtype": "sample string 9",
          "lng": 10.1,
          "Lat": 11.1,
          "grade": 12,
          "gradename": "sample string 13",
          "hotelamenities": {
            "sample string 1": "sample string 2",
            "sample string 3": "sample string 4"
          },
          "roomamenities": {
            "sample string 1": "sample string 2",
            "sample string 3": "sample string 4"
          },
          "otherdescript": [
            {
              "title": "sample string 1",
              "descript": "sample string 2"
            },
            {
              "title": "sample string 1",
              "descript": "sample string 2"
            }
          ],
          "locationdescript": "sample string 14",
          "hoteldescript": "sample string 15"
        }
      ],
      "page_count": 1,
      "skip": 4
    },
    "hotelsummary": {
      "starlist": [
        {
          "summaryitemid": "sample string 1",
          "summaryitemcount": 2,
          "summaryitemname": "sample string 3"
        },
        {
          "summaryitemid": "sample string 1",
          "summaryitemcount": 2,
          "summaryitemname": "sample string 3"
        }
      ],
      "facilitylist": [
        {
          "summaryitemid": "sample string 1",
          "summaryitemcount": 2,
          "summaryitemname": "sample string 3"
        },
        {
          "summaryitemid": "sample string 1",
          "summaryitemcount": 2,
          "summaryitemname": "sample string 3"
        }
      ],
      "maxprice": 1.0
    },
    "hotelroomstaylist": [
      {
        "roomtypecode": "sample string 1",
        "roomtypename": "sample string 2",
        "rateplanid": "sample string 3",
        "breakfast": "sample string 4",
        "additionaldetails": "sample string 5",
        "mealplancode": "sample string 6",
        "status": "sample string 7",
        "amountbeforetax": 8.0,
        "markupprice": 9.0,
        "origprice": 10.0,
        "descript": "sample string 11",
        "currencycode": "sample string 12",
        "hotelcode": "sample string 13",
        "absolutedeadline": "sample string 14",
        "deadamountpercent": 15.0,
        "guestcount": {
          "adultcount": 1,
          "childcount": 2,
          "childage": [
            1,
            2
          ]
        },
        "roomratePerlist": [
          {
            "orderperdate": "sample string 1",
            "orderperprice": 2.0,
            "markupprice": 3.0,
            "origprice": 4.0,
            "descript": "sample string 5"
          },
          {
            "orderperdate": "sample string 1",
            "orderperprice": 2.0,
            "markupprice": 3.0,
            "origprice": 4.0,
            "descript": "sample string 5"
          }
        ]
      },
      {
        "roomtypecode": "sample string 1",
        "roomtypename": "sample string 2",
        "rateplanid": "sample string 3",
        "breakfast": "sample string 4",
        "additionaldetails": "sample string 5",
        "mealplancode": "sample string 6",
        "status": "sample string 7",
        "amountbeforetax": 8.0,
        "markupprice": 9.0,
        "origprice": 10.0,
        "descript": "sample string 11",
        "currencycode": "sample string 12",
        "hotelcode": "sample string 13",
        "absolutedeadline": "sample string 14",
        "deadamountpercent": 15.0,
        "guestcount": {
          "adultcount": 1,
          "childcount": 2,
          "childage": [
            1,
            2
          ]
        },
        "roomratePerlist": [
          {
            "orderperdate": "sample string 1",
            "orderperprice": 2.0,
            "markupprice": 3.0,
            "origprice": 4.0,
            "descript": "sample string 5"
          },
          {
            "orderperdate": "sample string 1",
            "orderperprice": 2.0,
            "markupprice": 3.0,
            "origprice": 4.0,
            "descript": "sample string 5"
          }
        ]
      }
    ],
    "hotellocations": [
      {
        "HotelName": "sample string 1",
        "HotelLng": 2.1,
        "HotelLat": 3.1,
        "HotelCode": "sample string 4"
      },
      {
        "HotelName": "sample string 1",
        "HotelLng": 2.1,
        "HotelLat": 3.1,
        "HotelCode": "sample string 4"
      }
    ]
  },
  "code": 1,
  "message": "sample string 2"
}