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

Gets all RateCategories 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

List of RateCategory

Collection of RateCategory
NameDescriptionTypeAdditional information
RateCategoryId

Category - ID, Unique per property

integer

None.

Name

Name of the Category, max 50 characters

string

None.

Description

Description of the Category, max 1000 characters

string

None.

SortOrder

Used to sort the Categories when showing them to users

integer

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "RateCategoryId": 1,
    "Name": "sample string 2",
    "Description": "sample string 3",
    "SortOrder": 4
  },
  {
    "RateCategoryId": 1,
    "Name": "sample string 2",
    "Description": "sample string 3",
    "SortOrder": 4
  }
]

application/xml, text/xml

Sample:
<ArrayOfRateCategory xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RoomKeyAPI.Models">
  <RateCategory>
    <Description>sample string 3</Description>
    <Name>sample string 2</Name>
    <RateCategoryId>1</RateCategoryId>
    <SortOrder>4</SortOrder>
  </RateCategory>
  <RateCategory>
    <Description>sample string 3</Description>
    <Name>sample string 2</Name>
    <RateCategoryId>1</RateCategoryId>
    <SortOrder>4</SortOrder>
  </RateCategory>
</ArrayOfRateCategory>