GET hotels/{hotelId}?key={key}

Gets the Hotel specified by the HotelId parameter. Returns 404 (not found) if the hotel doesn't exist.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
hotelId

Id of the Hotel to be returned

string

Required

key

API - Key identifying the caller

string

Required

Body Parameters

None.

Response Information

Resource Description

One Hotel

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-03-28T06:59:34.7788059-07:00",
  "CheckOut": "2024-03-28T06:59:34.7788059-07:00",
  "CreationDate": "2024-03-28T06:59:34.7788059-07:00",
  "UniqueId": "sample string 7"
}

application/xml, text/xml

Sample:
<Hotel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RoomKeyAPI.Models">
  <CheckIn>2024-03-28T06:59:34.7788059-07:00</CheckIn>
  <CheckOut>2024-03-28T06:59:34.7788059-07:00</CheckOut>
  <CreationDate>2024-03-28T06:59:34.7788059-07:00</CreationDate>
  <HotelId>sample string 1</HotelId>
  <Name>sample string 2</Name>
  <RoomTypes />
  <TimeZone>sample string 3</TimeZone>
  <UniqueId>sample string 7</UniqueId>
</Hotel>