For rooms (mandatory): The following request will be sent to the OTA by Smarthotel to retrieve room information:
<?xml version="1.0" encoding="utf-8"?>
<OTA_HotelDescriptiveInfoRQ EchoToken="Example123" PrimaryLangID="eng" Target="Production" TimeStamp="2018-07-29T07:38:54.729Z" Version="1.0">
<POS>
<Source>
<RequestorID ID="APIKEY" MessagePassword="APIPASSWORD"/>
</Source>
</POS>
<HotelDescriptiveInfos>
<HotelDescriptiveInfo HotelCode="12345">
<FacilityInfo SendGuestRooms="True" />
</HotelDescriptiveInfo>
</HotelDescriptiveInfos>
</OTA_HotelDescriptiveInfoRQ>
For services (optional): The following request will be sent to the OTA by Smarthotel to retrieve services information:
<?xml version="1.0" encoding="utf-8"?>
<OTA_HotelDescriptiveInfoRQ EchoToken="Example123" PrimaryLangID="eng" Target="Production" TimeStamp="2018-07-29T07:38:54.729Z" Version="1.0">
<POS>
<Source>
<RequestorID ID="APIKEY" MessagePassword="APIPASSWORD"/>
</Source>
</POS>
<HotelDescriptiveInfos>
<HotelDescriptiveInfo HotelCode="12345">
<HotelInfo SendData="True"/>
</HotelDescriptiveInfo>
</HotelDescriptiveInfos>
</OTA_HotelDescriptiveInfoRQ>
Element / @Attribute | Parent | Info | Values | Occurrence |
---|---|---|---|---|
HotelDescriptiveInfos | OTA_HotelDescriptiveInfoRQ | Collection of items for data from multiple hotels. | 1 | |
HotelDescriptiveInfo | HotelDescriptiveInfos | This allows the requestor to indicate which specific information is requested if complete hotel details are not required. | 1 | |
@HotelCode | HotelDescriptiveInfo | The ID of the hotel. | [integer] | 1 |
FacilityInfo | HotelDescriptiveInfo | Is used to the indicate the specific facility information being requested. | 0..1 | |
@SendGuestRooms | FacilityInfo | Send this data. True means send the data. |
True False |
1 |
HotelInfo | HotelDescriptiveInfo | Is used to indicate whether hotel information is being requested. | 0..1 | |
@SendData | HotelInfo | Send this data. True means send the data. |
True False |
1 |
For rooms: The response Smarthotel expects should include the IDs and names of the available rooms. The response should look like this:
<?xml version="1.0" encoding="utf-8"?>
<OTA_HotelDescriptiveInfoRS EchoToken="Example123" PrimaryLangID="eng" Target="Production" TimeStamp="2018-07-29T07:38:54.729Z" Version="1.0">
<Success />
<HotelDescriptiveContents>
<HotelDescriptiveContent>
<FacilityInfo>
<GuestRooms>
<GuestRoom Code="1">
<TypeRoom Name="Standard Room"/>
</GuestRoom>
<GuestRoom Code="2">
<TypeRoom Name="Comfort Room"/>
</GuestRoom>
<GuestRoom Code="3">
<TypeRoom Name="Executive Room"/>
</GuestRoom>
</GuestRooms>
</FacilityInfo>
</HotelDescriptiveContent>
</HotelDescriptiveContents>
</OTA_HotelDescriptiveInfoRS>
For services: The response Smarthotel expects should include the IDs and description of the available services. The response should look like this:
<?xml version="1.0" encoding="utf-8"?>
<OTA_HotelDescriptiveInfoRS EchoToken="Example123" PrimaryLangID="eng" Target="Production" TimeStamp="2018-07-29T07:38:54.729Z" Version="1.0">
<Success />
<HotelDescriptiveContents>
<HotelDescriptiveContent>
<TPA_Extensions>
<HotelInfo>
<HotelServices>
<Service ID="234567">
<ServiceDetails>
<ServiceDescription>
<Text>Champagne</Text>
</ServiceDescription>
</ServiceDetails>
</Service>
</HotelServices>
</HotelInfo>
</TPA_Extensions>
</HotelDescriptiveContent>
</HotelDescriptiveContents>
</OTA_HotelDescriptiveInfoRS>
Element / @Attribute | Parent | Info | Values | Occurrence |
---|---|---|---|---|
HotelDescriptiveContents | OTA_HotelDescriptiveInfoRS | A collection of hotel descriptive information. | 1 | |
HotelDescriptiveContent | HotelDescriptiveContents | Hotel descriptive information. | 0..n | |
FacilityInfo | HotelDescriptiveContent | Provides information pertaining to the hotel facility itself. The FacilityInfo class that describes the facilities provided at the hotel, including rooms. | 0..1 | |
GuestRooms | FacilityInfo | Collection of guest room types that are comprised within the hotel. | 1 | |
GuestRoom | GuestRooms | The accommodation occupied by a guest. | 1..n | |
Code | GuestRoom | The ID of the room. | [integer] | 1 |
TypeRoom | GuestRoom | Describes the guest room type; in composite types there can be multiple occurrences. | 1 | |
@Name | TypeRoom | Text name of the type of room such as "Two Bedroom Villas". | [string] | 1 |
TPA_Extensions | HotelDescriptiveContent | A placeholder in the schema to allow for additional elements and attributes to be included per Trading Partner Agreement (TPA). | 0..1 | |
HotelInfo | TPA_Extensions | Contains descriptive information about a hotel. The HotelInfo class that describes general information about the hotel. | 1 | |
HotelServices | HotelInfo | A collection of services. | 1 | |
Service | HotelServices | A Service object represents a non-room product provided to guests. | 1..n | |
@ID | Service | A unique identifying value assigned by the creating system. | [integer] | 1 |
ServiceDetails | Service | Details on the Service. | 1 | |
ServiceDescription | ServiceDetails | Description of the service. | 1 | |
Text | ServiceDescription | Text content. | [string] | 1 |