GET hotels/{hotelId}/ratetemplates?key={key}
Gets all RateTemplates for the hotel specified
Request Information
URI Parameters
Name | Description | Type | Additional 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 RateTemplate
Collection of RateTemplateName | Description | Type | Additional information |
---|---|---|---|
RateTemplateId |
Internal Id of the Template |
string |
None. |
Name |
Template name |
string |
None. |
Description |
Description of the Template |
string |
None. |
Active |
Whether the Template is currently active or not |
boolean |
None. |
RoomTypes |
List of assigned RoomTypes |
Collection of RateTemplate_RoomType |
None. |
Response Formats
application/json, text/json
Sample:
[ { "RateTemplateId": "sample string 1", "Name": "sample string 2", "Description": "sample string 3", "Active": true, "RoomTypes": [] }, { "RateTemplateId": "sample string 1", "Name": "sample string 2", "Description": "sample string 3", "Active": true, "RoomTypes": [] } ]
application/xml, text/xml
Sample:
<ArrayOfRateTemplate xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RoomKeyAPI.Models"> <RateTemplate> <Active>true</Active> <Description>sample string 3</Description> <Name>sample string 2</Name> <RateTemplateId>sample string 1</RateTemplateId> <RoomTypes /> </RateTemplate> <RateTemplate> <Active>true</Active> <Description>sample string 3</Description> <Name>sample string 2</Name> <RateTemplateId>sample string 1</RateTemplateId> <RoomTypes /> </RateTemplate> </ArrayOfRateTemplate>