Skip to main content

Rooms

Overview

The Rooms operation allows clients to retrieve comprehensive room list from a supplier's access that may include translations to other languages, granting you access to all the rooms configured by the Seller for a given set of credentials. The returned fields include: code, name, views, medias, etc.

Request

The Request is structured to accommodate access information for the content retrieval.

Overview

The request that receives the Connector is a Task with essential information that allows it to execute the operation properly:

  • Access: Represents access credentials and related information required for a connection.
  • Operation: Operation to be executed.

Sample

{
"Task": {
"Access": {
"Code": 11111,
"User": "tgx",
"Password": "password",
"Urls": {
"Generic": "https://api.hotelsupplier.com/generic"
},
"Parameters": {
"maxResults": "50",
"cacheEnabled": "true",
"requestTimeout": "5000",
"preferredSupplier": "SupplierX"
}
},
"Operation": "Rooms",
"Languages": [ "en" ],
"Platform": "HOTELTEST",
"Supplier": "HOTELTEST",
"SupplierGroup": "HOTELTEST"
}
}

Details

The object ContentRq represents the structure of the content request as expected by the supplier.

NameTypeDescription
TaskIdIntegerUnique identifier of the task, automatically assigned by the system.
SupplierStringSupplier code associated with the access.
SupplierGroupStringSupplier group associated with the access.
PlatformStringThe platform that this supplier belongs to.
OperationServiceOperationEnumOperation to be executed.
TimeoutStringMaximum time to wait for a supplier response before timing out.Specified as a timestamp string (e.g., "24:00:00" for 24 hours).
AccessAccessAccess information required for the operation, including API credentials, endpoints,and other integration-specific connection details.
Access/CodeIntegerThe unique code identifying the access configuration.
Access/UserStringThe username used for authentication with the supplier.
Access/PasswordStringThe password used for authentication with the supplier.
Access/ApiKeyStringThe API key used for authentication or authorization.
Access/UrlsUrlsThe URLs associated with the access configuration.
Access/Urls/BookStringThe URL used for booking operations.
Access/Urls/SearchStringThe URL used for Search operations.
Access/Urls/QuoteStringThe URL used for Quote operations.
Access/Urls/GenericStringA generic URL for additional operations.
Access/ParametersAccessParametersAdditional parameters related to the connection.
LanguagesList<Iso2LanguageEnum>Language codes for the operation, represented as a list of ISO 639-1 2-character codes (e.g., "en", "es").

Response

The Response is structured to provide detailed information about the hotel.

Overview

Sample

{
"Code": "201232338",
"Names": {
"en": "Standard Single room"
},
"Descriptions": {
"en": "Standard Single room"
},
"Area": 25.0,
"RoomOccupancy": {
"Adults": {
"Min": 1,
"Max": 1
},
"Children": {
"Min": 0,
"Max": 0
},
"Infants": {
"Min": 0,
"Max": 0
},
"Total": {
"Min": 1,
"Max": 1
}
},
"Beds": {
"NumberOfBeds": 1,
"Type": "SINGLE"
},
"Amenities": [
{
"Code": "2403",
"Type": 1,
"Descriptions": {
"en": [
"Free WiFi"
]
},
"Names": {
"en": "RES"
}
},
{
"Code": "318",
"Type": 1,
"Descriptions": {
"en": [
"Balcony"
]
},
"Names": {
"en": "RES"
}
}
],
"Medias": [
{
"Code": "01",
"Url": "http://www.images.net/infor/work/imagen/hotel_room_02/M.jpg",
"Type": 1,
"Order": 1,
"Descriptions": {
"en": "Room"
}
}
],
"Views": [
{
"Code": "01",
"Description": {
"en": "Sea view"
}
}
]
}

Details

The AccumulativeRoom object represents the standardized structure of the mapped room element.

NameTypeDescription
CodeStringGets or sets the code of the room.
AreaDoubleGets or sets the area of the room.
NamesDictionary<Iso2LanguageEnum, String>Gets or sets the names of the room in different languages.
DescriptionsDictionary<Iso2LanguageEnum, String>Gets or sets the descriptions of the room in different languages.
RoomOccupancyAccumulativeRoomOccupancyGets or sets the room occupancy information.
RoomOccupancy/AdultsAccumulativeMinMaxOccupancyAccumulative occupancy for adults.
RoomOccupancy/Adults/MinIntegerMinimum occupancy.
RoomOccupancy/Adults/MaxIntegerMaximum occupancy.
RoomOccupancy/ChildrenAccumulativeMinMaxOccupancyAccumulative occupancy for children.
RoomOccupancy/Children/MinIntegerMinimum occupancy.
RoomOccupancy/Children/MaxIntegerMaximum occupancy.
RoomOccupancy/InfantsAccumulativeMinMaxOccupancyAccumulative occupancy for infants.
RoomOccupancy/Infants/MinIntegerMinimum occupancy.
RoomOccupancy/Infants/MaxIntegerMaximum occupancy.
RoomOccupancy/TotalAccumulativeMinMaxOccupancyAccumulative total occupancy.
RoomOccupancy/Total/MinIntegerMinimum occupancy.
RoomOccupancy/Total/MaxIntegerMaximum occupancy.
BedsList<AccumulativeBed>Gets or sets the list of beds in the room.
Beds/NumberOfBedsIntegerGets or sets the number of beds.
Beds/TypeStringGets or sets the type of bed.
AmenitiesList<AccumulativeAmenity>Gets or sets the list of amenities in the room.
Amenities/CodeStringCode of the amenity.
Amenities/TypeApplicationAreaTypeEnumType of the application area.
Amenities/DescriptionsDictionary<Iso2LanguageEnum, List<String>>Descriptions of the amenity, keyed by language.
Amenities/NamesDictionary<Iso2LanguageEnum, String>Names of the amenity, keyed by language.
MediasList<AccumulativeMedia>Gets or sets the list of media associated with the room.
Medias/CodeStringCode of the media.
Medias/UrlStringURL of the media.
Medias/TypeMediaTypeEnumType of the media.
Medias/OrderStringOrder of the media. Should be ordered from 1 onward.
Medias/DescriptionsDictionary<Iso2LanguageEnum, String>Descriptions of the media, keyed by ISO 2 language code.
ViewsList<AccumulativeView>Gets or sets the list of views from the room.
Views/CodeStringGets or sets the code.
Views/DescriptionDictionary<Iso2LanguageEnum, String>Gets or sets the description.