POST api/hotel/techson/hotel/room/info/{lang}

查询酒店房间信息

Request Information

URI Parameters

NameDescriptionTypeAdditional information
lang

语言(en-us,zh-hk,zh-cn)

string

Required

Body Parameters

请求数据

HotelRoomRQContract
NameDescriptionTypeAdditional information
citycode

城市编号

string

None.

areacode

周边区域

string

None.

countrycode

国家编号

string

None.

platformSource

平台来源

string

None.

nationality

国籍

string

None.

checkintime

开始时间

date

None.

checkouttime

结束时间

date

None.

sessiontoken

酒店唯一表示

string

None.

roomorders

房间预定列表

Collection of RoomOrderContract

None.

markupby

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

string

None.

markupamt

Markup数值

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "citycode": "sample string 1",
  "areacode": "sample string 2",
  "countrycode": "sample string 3",
  "platformSource": "sample string 4",
  "nationality": "sample string 5",
  "checkintime": "2024-12-23T19:23:22.6660303+08:00",
  "checkouttime": "2024-12-23T19:23:22.6660303+08:00",
  "sessiontoken": "sample string 8",
  "roomorders": [
    {
      "adultcount": 1,
      "childcount": 2,
      "roomcount": 3,
      "roomtypecode": "sample string 4",
      "childagelist": [
        1,
        2
      ]
    },
    {
      "adultcount": 1,
      "childcount": 2,
      "roomcount": 3,
      "roomtypecode": "sample string 4",
      "childagelist": [
        1,
        2
      ]
    }
  ],
  "markupby": "sample string 9",
  "markupamt": 10.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 'HotelRoomRQContract'.

Response Information

Resource Description

查询酒店房间信息

ReturnResultOfHotelRoomRSContract
NameDescriptionTypeAdditional information
data

HotelRoomRSContract

None.

code

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

integer

None.

message

提示消息

string

None.

Response Formats

application/json, text/json

Sample:
{
  "data": {
    "hotelcode": "sample string 1",
    "hotelname": "sample string 2",
    "address": "sample string 3",
    "locationdescript": "sample string 4",
    "star": 5,
    "tel": "sample string 6",
    "iswifi": true,
    "longitude": 8.1,
    "latitude": 9.1,
    "paytotal": 10.1,
    "orgpaytotal": 11.1,
    "currency": "sample string 12",
    "categorycode": "sample string 13",
    "categoryname": "sample string 14",
    "meal": {
      "mealcode": "sample string 1",
      "mealname": "sample string 2",
      "includemeal": true
    },
    "dailypricelist": [
      {
        "staydate": "sample string 1",
        "price": {
          "costcurrency": "sample string 1",
          "sellcurrency": "sample string 2",
          "costprice": 3.1,
          "sellprice": 4.1
        },
        "paxroomtypeprice": [
          {
            "price": {
              "costcurrency": "sample string 1",
              "sellcurrency": "sample string 2",
              "costprice": 3.1,
              "sellprice": 4.1
            },
            "orgsellprice": 1.1,
            "markupprice": 2.1,
            "markupdescript": "sample string 3",
            "categorycode": "sample string 4",
            "categoryname": "sample string 5",
            "meal": {
              "mealcount": 1,
              "mealcode": "sample string 2",
              "mealname": "sample string 3",
              "includemeal": true
            },
            "paxroomtype": {
              "adultcount": 1,
              "childcount": 2,
              "roomcount": 3,
              "roomtypecode": "sample string 4",
              "agelist": [
                1,
                2
              ]
            },
            "roomavailablecount": 6
          },
          {
            "price": {
              "costcurrency": "sample string 1",
              "sellcurrency": "sample string 2",
              "costprice": 3.1,
              "sellprice": 4.1
            },
            "orgsellprice": 1.1,
            "markupprice": 2.1,
            "markupdescript": "sample string 3",
            "categorycode": "sample string 4",
            "categoryname": "sample string 5",
            "meal": {
              "mealcount": 1,
              "mealcode": "sample string 2",
              "mealname": "sample string 3",
              "includemeal": true
            },
            "paxroomtype": {
              "adultcount": 1,
              "childcount": 2,
              "roomcount": 3,
              "roomtypecode": "sample string 4",
              "agelist": [
                1,
                2
              ]
            },
            "roomavailablecount": 6
          }
        ]
      },
      {
        "staydate": "sample string 1",
        "price": {
          "costcurrency": "sample string 1",
          "sellcurrency": "sample string 2",
          "costprice": 3.1,
          "sellprice": 4.1
        },
        "paxroomtypeprice": [
          {
            "price": {
              "costcurrency": "sample string 1",
              "sellcurrency": "sample string 2",
              "costprice": 3.1,
              "sellprice": 4.1
            },
            "orgsellprice": 1.1,
            "markupprice": 2.1,
            "markupdescript": "sample string 3",
            "categorycode": "sample string 4",
            "categoryname": "sample string 5",
            "meal": {
              "mealcount": 1,
              "mealcode": "sample string 2",
              "mealname": "sample string 3",
              "includemeal": true
            },
            "paxroomtype": {
              "adultcount": 1,
              "childcount": 2,
              "roomcount": 3,
              "roomtypecode": "sample string 4",
              "agelist": [
                1,
                2
              ]
            },
            "roomavailablecount": 6
          },
          {
            "price": {
              "costcurrency": "sample string 1",
              "sellcurrency": "sample string 2",
              "costprice": 3.1,
              "sellprice": 4.1
            },
            "orgsellprice": 1.1,
            "markupprice": 2.1,
            "markupdescript": "sample string 3",
            "categorycode": "sample string 4",
            "categoryname": "sample string 5",
            "meal": {
              "mealcount": 1,
              "mealcode": "sample string 2",
              "mealname": "sample string 3",
              "includemeal": true
            },
            "paxroomtype": {
              "adultcount": 1,
              "childcount": 2,
              "roomcount": 3,
              "roomtypecode": "sample string 4",
              "agelist": [
                1,
                2
              ]
            },
            "roomavailablecount": 6
          }
        ]
      }
    ],
    "cancellationpolicylist": [
      {
        "canceldeadlinedate": "sample string 1",
        "cancelbeforeday": 2.0,
        "nightnum": 3.0,
        "percent": 4.1,
        "price": {
          "costcurrency": "sample string 1",
          "sellcurrency": "sample string 2",
          "costprice": 3.1,
          "sellprice": 4.1
        },
        "descript": "sample string 5",
        "datetype": 6
      },
      {
        "canceldeadlinedate": "sample string 1",
        "cancelbeforeday": 2.0,
        "nightnum": 3.0,
        "percent": 4.1,
        "price": {
          "costcurrency": "sample string 1",
          "sellcurrency": "sample string 2",
          "costprice": 3.1,
          "sellprice": 4.1
        },
        "descript": "sample string 5",
        "datetype": 6
      }
    ],
    "imagelist": [
      {
        "type": "sample string 1",
        "orgimageurl": "sample string 2",
        "thumbnailurl": "sample string 3",
        "description": "sample string 4"
      },
      {
        "type": "sample string 1",
        "orgimageurl": "sample string 2",
        "thumbnailurl": "sample string 3",
        "description": "sample string 4"
      }
    ],
    "descripts": [
      "sample string 1",
      "sample string 2"
    ],
    "isrefundable": true
  },
  "code": 1,
  "message": "sample string 2"
}