Search Room Type

This module has now been phased out and will no longer be supported. 

The Search Room Types provides the client with static data relating to room types held within the GTA system. The API will provide a room type name along with the unique code used by GTA to identify the room type.

Example XML Search Room Type request

The XML message below gives a sample of the expected elements needed by the API to execute a Search Room Type Request.

 

<?xml version="1.0" encoding="UTF-8"?>
<Request>
  <Source>
<RequestorID Client="123456" EMailAddress="clientName@client.co.uk" Password="clientPassword" />
    <RequestorPreferences Language="en">
		  <RequestMode>SYNCHRONOUS</RequestMode> 
    </RequestorPreferences>
  </Source>
	<RequestDetails>
		<SearchRoomTypeRequest />
	</RequestDetails>
</Request>

Source parameters

Please refer to the API Architecture document.

Search Room Type parameters

A Search Room Type request can contain optional parameters to filter the countries returned.  The following lists the parameters that can be specified: 

Parameters

Description

RoomTypeName

Optional. If specified all room types containing the given characters will be returned.

Note: Room Type Names are not case sensitive.

RoomTypeCode

Optional. If specified the room type details for the single code will be returned.

Example XML Search Room Type response

The XML message below gives a sample of that given by the API in response to a Search Room Type Request.

 

<?xml version="1.0" encoding="UTF-8"?>
<Response ResponseReference="200002">
	<ResponseDetails Language="en">
		<SearchRoomTypeResponse>
			<RoomTypeDetails>
				<RoomType Code="DB"><![CDATA[Double]]></RoomType>
				<RoomType Code="Q"><![CDATA[Quad]]></RoomType>
				<RoomType Code="SB"><![CDATA[Single]]></RoomType>
				<RoomType Code="TR"><![CDATA[Triple]]></RoomType>
				<RoomType Code="TS"><![CDATA[Twin for sole use]]></RoomType>
				<RoomType Code="TB"><![CDATA[Twin]]></RoomType>
			</RoomTypeDetails>
		</SearchRoomTypeResponse>
	</ResponseDetails>
</Response>

 

Search Room Type response parameters

A Search Room Type response will return the following for each room type found for the request parameters: 

Parameter

Description

RoomType

The room type name.

In the language requested (if available).

 

Attribute

Description

 

Code

The unique room type code held by GTA

Docs Navigation