GET hotels?key={key}

Gets all Hotels available to the calling API Key

Request Information

URI Parameters

NameDescriptionTypeAdditional information
key

API - Key identifying the caller

string

Required

Body Parameters

None.

Response Information

Resource Description

Array of Hotel

Collection of Hotel
NameDescriptionTypeAdditional information
HotelId

Unique Id for this Hotel used in the RoomKey backend

string

None.

Name

Name of the Hotel

string

None.

RoomTypes

List of Roomtypes and the number of rooms available for each roomtype

Collection of RoomType

None.

TimeZone

ISO Name of the Timezone the Hotel is located in

string

None.

CheckIn

Check in time for this hotel, ignore date part, only time is used

date

None.

CheckOut

Check out time for this hotel, ignore date part, only time is used

date

None.

CreationDate

Date the Hotel was created

date

None.

UniqueId

Unique Key to be used with the RoomKey API

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "HotelId": "sample string 1",
    "Name": "sample string 2",
    "RoomTypes": [],
    "TimeZone": "sample string 3",
    "CheckIn": "2024-11-21T11:08:23.6838532-08:00",
    "CheckOut": "2024-11-21T11:08:23.6838532-08:00",
    "CreationDate": "2024-11-21T11:08:23.6838532-08:00",
    "UniqueId": "sample string 7"
  },
  {
    "HotelId": "sample string 1",
    "Name": "sample string 2",
    "RoomTypes": [],
    "TimeZone": "sample string 3",
    "CheckIn": "2024-11-21T11:08:23.6838532-08:00",
    "CheckOut": "2024-11-21T11:08:23.6838532-08:00",
    "CreationDate": "2024-11-21T11:08:23.6838532-08:00",
    "UniqueId": "sample string 7"
  }
]

application/xml, text/xml

Sample:
<ArrayOfHotel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RoomKeyAPI.Models">
  <Hotel>
    <CheckIn>2024-11-21T11:08:23.6838532-08:00</CheckIn>
    <CheckOut>2024-11-21T11:08:23.6838532-08:00</CheckOut>
    <CreationDate>2024-11-21T11:08:23.6838532-08:00</CreationDate>
    <HotelId>sample string 1</HotelId>
    <Name>sample string 2</Name>
    <RoomTypes />
    <TimeZone>sample string 3</TimeZone>
    <UniqueId>sample string 7</UniqueId>
  </Hotel>
  <Hotel>
    <CheckIn>2024-11-21T11:08:23.6838532-08:00</CheckIn>
    <CheckOut>2024-11-21T11:08:23.6838532-08:00</CheckOut>
    <CreationDate>2024-11-21T11:08:23.6838532-08:00</CreationDate>
    <HotelId>sample string 1</HotelId>
    <Name>sample string 2</Name>
    <RoomTypes />
    <TimeZone>sample string 3</TimeZone>
    <UniqueId>sample string 7</UniqueId>
  </Hotel>
</ArrayOfHotel>