Guestrooms information
Request
XSD File : OTA_HotelDescriptiveInfoRQ.xsd
<OTA_HotelDescriptiveInfoRQ xmlns="http://www.opentravel.org/OTA/2003/05" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" PrimaryLangID="en" TimeStamp="2018-01-01T14:57:00" Target="Test" Version="1.000" xsi:schemaLocation="http://www.opentravel.org/OTA/2003/05 OTA_HotelDescriptiveInfoRQ.xsd"> <POS> <Source> <RequestorID ID="YOURUSERNAME" MessagePassword="YOURPASSWORD" Type="13" /> </Source> </POS> <HotelDescriptiveInfos> <HotelDescriptiveInfo HotelCode="YOURHOTELCODE"> <FacilityInfo SendGuestRooms="true" /> </HotelDescriptiveInfo> </HotelDescriptiveInfos> </OTA_HotelDescriptiveInfoRQ>
Response
XSD File : OTA_HotelDescriptiveInfoRS.xsd
<?xml version="1.0" encoding="UTF-8"?> <OTA_HotelDescriptiveInfoRS xmlns="http://www.opentravel.org/OTA/2003/05" PrimaryLangID="fr" AltLangID="de" RetransmissionIndicator="0" TimeStamp="2015-09-09T11:15:17+02:00" Target="Test" Version="1.0" CorrelationID=""> <Success></Success> <HotelDescriptiveContents> <HotelDescriptiveContent HotelName="YOURHOTELNAME"> <FacilityInfo> <GuestRooms> <GuestRoom Language="" MaxAdultOccupancy="" MaxChildOccupancy="" MaxOccupancy="" MinOccupancy="" RoomTypeName="" Quantity="" ID=""> <TypeRoom StandardOccupancy="" Composite="" Quantity="" RoomClassificationCode="" /> <Amenities> <Amenity RoomAmenityCode="" Quantity=""/> <Amenity RoomAmenityCode="" Quantity="" Removal=""/> </Amenities> </GuestRoom> </GuestRooms> </FacilityInfo> </HotelDescriptiveContent> </HotelDescriptiveContents> </OTA_HotelDescriptiveInfoRS>
Details
Node | Attribute | Description | Value type | Always present | Repetitive |
---|---|---|---|---|---|
FacilityInfo | Provides information pertaining to the hotel facitilty itself.The FacilityInfo class that describes the facilities provided at the hotel, including meeting rooms restaurants. | no | no | ||
GuestRooms | Collection of guest room types that are comprised within the hotel. | no | no | ||
GuestRoom | The accommodation occupied by a guest. | yes | yes | ||
Language | Identifies the language in which the guest room information is being sent. | ||||
MaxAdultOccupancy | Maximum number of adults allowed in a room type. | ||||
MaxChildOccupancy | Maximum number of children allowed in a room type. | ||||
MaxOccupancy | Maximum number of guests allowed in a room type. | ||||
MinOccupancy | Minimum number of guests allowed in a room type. | ||||
RoomTypeName | The room type name. | ||||
Quantity | Used to define the quantity for an associated element or attribute. | ||||
ID | A unique identifying value assigned by the creating system. The ID attribute may be used to reference a primary-key value within a database or in a particular implementation. | ||||
MultimediaDescriptions | Multimedia information about the guest room.Contains multimedia item(s). Refer to Multimedia descriptions | no | no | ||
TypeRoom | Describes the guest room type; in composite types there can be multiple occurrences. | yes | no | ||
StandardOccupancy | Indicates the usual number of guests that occupy this room. | ||||
Composite | Indicates that the room (suite) is a composite of smaller units. | ||||
Quantity | Defines the number of the item in question. Used for Numeric values, from 1 to 9999 inclusive. | ||||
RoomClassificationCode | Specifies the room classification (e.g., cabin, apartment). Refer to OpenTravel Code List Guest Room Info (GRI). | OTA_CodeType | |||
Amenities | Collection of room amenity items available to the guest. | no | yes | ||
Amenity | Tangible room item(s) (e.g., newspaper) available to the guest. | yes | yes | ||
RoomAmenityCode | Refer to OpenTravel Code List Room Amenity Type (RMA). | OTA_CodeType | |||
Quantity | Used to define the quantity for an associated element or attribute. | NonNegativeInteger | |||
Removal | If true, this item is obsolete and should be removed from the receiving system. | Boolean | |||
CodeDetail | May be used to give further detail on the code. Information to which list the code refer. | StringLength1to128 |
Use cases
Use case #1: a guestroom with all data
<GuestRoom Language="en" MaxAdultOccupancy="2" MaxChildOccupancy="2" MaxOccupancy="2" MinOccupancy="1" RoomTypeName="Double" Quantity="50" ID="00L550c51048d21e"> <TypeRoom StandardOccupancy="2" Composite="0" Quantity="50"/> <Amenities> <Amenity RoomAmenityCode="007.OTA" CodeDetail="Refer to OpenTravel Code List Hotel Amenity Code (HAC)." Quantity="1"/> <Amenity RoomAmenityCode="058.OTA" CodeDetail="Refer to OpenTravel Code List Hotel Amenity Code (HAC)." Quantity="1"/> <Amenity RoomAmenityCode="002.BKB" CodeDetail="Refer to BookBedder.com Code Table (BKB)." Quantity="1" Removal="1"/> <Amenity RoomAmenityCode="086.OTA" CodeDetail="Refer to OpenTravel Code List Hotel Amenity Code (HAC)." Quantity="1"/> </Amenities> <MultimediaDescriptions> <MultimediaDescription> <ImageItems> <ImageItem ID="00L55eee8ef46e5b" Category="0" CreateDateTime="2015-09-08T15:55:59+02:00" LastModifyDateTime="2015-09-08T15:56:01+02:00"> <ImageFormat RecordID="00L55eee8ef46e5b" Sort="1" IsOriginalIndicator="1" Height="768" Width="1024" Format="5"> <URL>https://.../00L550c50f9db962/00L550c51048d21e/00L55eee8ef46e5b.jpg</URL> </ImageFormat> <ImageFormat RecordID="00L55eee8f2dc247" SourceID="00L55eee8ef46e5b" Height="637" Width="850" Format="5"> <URL>https://.../00L550c50f9db962/00L55eee8f2dc247.jpg</URL> </ImageFormat> <ImageFormat RecordID="00L55eee8f4f09dd" SourceID="00L55eee8ef46e5b" Height="768" Width="1024" Format="5"> <URL>https://.../00L550c50f9db962/00L55eee8f4f09dd.jpg</URL> </ImageFormat> <ImageFormat RecordID="00L55eee8f73f99a" SourceID="00L55eee8ef46e5b" Height="187" Width="250" Format="5"> <URL>https://.../00L550c50f9db962/00L55eee8f73f99a.jpg</URL> </ImageFormat> </ImageItem> <ImageItem ID="00L55eeefc4313c7" Category="0" CreateDateTime="2015-09-08T16:25:08+02:00" LastModifyDateTime="2015-09-08T16:25:10+02:00"> <ImageFormat RecordID="00L55eeefc4313c7" Sort="2" IsOriginalIndicator="1" Height="768" Width="1024" Format="5"> <URL>https://.../00L550c50f9db962/00L550c51048d21e/00L55eeefc4313c7.jpg</URL> </ImageFormat> <ImageFormat RecordID="00L55eeefc8bd81d" SourceID="00L55eeefc4313c7" Height="637" Width="850" Format="5"> <URL>https://.../00L550c50f9db962/00L55eeefc8bd81d.jpg</URL> </ImageFormat> <ImageFormat RecordID="00L55eeefcb99d97" SourceID="00L55eeefc4313c7" Height="768" Width="1024" Format="5"> <URL>https://.../00L550c50f9db962/00L55eeefcb99d97.jpg</URL> </ImageFormat> <ImageFormat RecordID="00L55eeefcdef7a3" SourceID="00L55eeefc4313c7" Height="187" Width="250" Format="5"> <URL>https://.../00L550c50f9db962/00L55eeefcdef7a3.jpg</URL> </ImageFormat> </ImageItem> </ImageItems> </MultimediaDescription> <MultimediaDescription AdditionalDetailCode="4"> <TextItems> <TextItem Language="fr" CreateDateTime="2015-08-13T13:32:33+02:00" LastModifyDateTime="2015-08-14T08:41:09+02:00"> <Description>Spacious, bright and outward facing rooms measuring 19 m2 and totally refurbished. The room comes with Dreamax bed (manufactured and designed exclusively by Flex for Meliá Hotels International), a modern, fully equipped bathroom finished in top quality bronze coloured ceramics and an independent entrance. It also has a home automation system which automatically regulates the temperature of the room based on guest presence or absence from the room.</Description> </TextItem> </TextItems> </MultimediaDescription> </MultimediaDescriptions> </GuestRoom>
Use case #2: a room without any description except its name
<GuestRoom Language="en" MaxAdultOccupancy="2" MaxChildOccupancy="2" MaxOccupancy="2" MinOccupancy="1" RoomTypeName="Standard Double Room" Quantity="50" ID="00L550c51048d21e"> <TypeRoom StandardOccupancy="2" Composite="0" Quantity="50"/> </GuestRoom>