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

Gets all active Rates and their Roomtypes for the hotel specified

Request Information

URI Parameters

NameDescriptionTypeAdditional information
hotelId

Hotel-Id => checked against the calling applications permissions

string

Required

key

API - Key identifying the caller

string

Required

Body Parameters

None.

Response Information

Resource Description

Array of RateAndRoomType

Collection of RateAndRoomType
NameDescriptionTypeAdditional information
RoomTypeId

integer

None.

RoomTypeName

string

None.

RateId

integer

None.

RateName

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "RoomTypeId": 1,
    "RoomTypeName": "sample string 2",
    "RateId": 3,
    "RateName": "sample string 4"
  },
  {
    "RoomTypeId": 1,
    "RoomTypeName": "sample string 2",
    "RateId": 3,
    "RateName": "sample string 4"
  }
]

application/xml, text/xml

Sample:
<ArrayOfRateAndRoomType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RoomKeyAPI.Models">
  <RateAndRoomType>
    <RateId>3</RateId>
    <RateName>sample string 4</RateName>
    <RoomTypeId>1</RoomTypeId>
    <RoomTypeName>sample string 2</RoomTypeName>
  </RateAndRoomType>
  <RateAndRoomType>
    <RateId>3</RateId>
    <RateName>sample string 4</RateName>
    <RoomTypeId>1</RoomTypeId>
    <RoomTypeName>sample string 2</RoomTypeName>
  </RateAndRoomType>
</ArrayOfRateAndRoomType>