Documentation

Some tips to understand the main features within a facility

Here are some tips to make it easier to understand and read facilities from content-api.


It is very important to read the facilities as they contain relevant information about the room that the client will appreciate having before booking.

For each facility you get from the Content API/types/facilities will contain a facilityCode, a facilityGroupCode and a facilitytypology.

The description of each of these values can be consulted in the description of the Content API/types/facilities, Content API/types/facilitygroups and Content API/types/facilitytypologies operations.


For some of the facilities available, you might find there’s an extra tag “number”. The value provided indicates the numeric value of the facility itself.

FACILITIES:

You can get the information relative to the facilities on the Content API/types/facilities operation:


https://api.hotelbeds.com/hotel-content-api/1.0/types/facilities?fields=all&language=ENG&from=1&to=1000&useSecondaryLanguage=false


In the response you’ll find the code as shown below. Examples:

<facility code="1" facilityGroupCode="61" facilityTypologyCode="20">
      <description>Single bed 90-130 width</description>
</facility>
...
<facility code="1" facilityGroupCode="85" facilityTypologyCode="3">
      <description>Gay-friendly</description>
</facility>
...
<facility code="10" facilityGroupCode="60" facilityTypologyCode="8">
      <description>Bathroom</description>
</facility>
...
<facility code="10" facilityGroupCode="70" facilityTypologyCode="23">
      <description>Air conditioning in public areas</description>
</facility>
...
<facility code="44" facilityGroupCode="91" facilityTypologyCode="15">
      <description>Switzerland- Protection plan for hotel businesses against COVID-19</description>
</facility>
...
<facility code="302" facilityGroupCode="60" facilityTypologyCode="33">
      <description>Children share the bed with parents</description>
</facility>
...
<facility code="563" facilityGroupCode="85" facilityTypologyCode="21">
      <description>Children get free accommodation, meals payable on the spot</description>
</facility>
...
<facility code="565" facilityGroupCode="85" facilityTypologyCode="3">
      <description>Credit card is compulsory as a deposit, no deposit in cash is accepted</description>
</facility>

FACILITYGROUPS

You can get the information relative to the facilitiygroups on the Content API/types/facilitygroups operation:


https://api.hotelbeds.com/hotel-content-api/1.0/types/facilitygroups?fields=all&language=ENG&from=1&to=1000&useSecondaryLanguage=false


In the response you’ll find the code as shown below

Examples:

<group code="60">
      <description>Room facilities (Standard room)</description>
</group>
...
<group code="61">
      <description>Room Distribution</description>
</group>
...
<group code="62">
      <description>Room distribution Alternative</description>
</group>
...
<group code="70">
      <description>Facilities</description>
</group>
...
<group code="85">
      <description>Things to keep in mind</description>
</group>
...
<group code="91">
      <description>Healthy & Safety (COVID)</description>
</group>

FACILITYTYPOLOGIES

Each facility contains a facilityTypologyCode. This typologycode describes the logic for the flags within a facility (numberflag, logicflag, feeflag, indYesOrNoFlag, amountflag…) which will apply or not for that specific facility.


You can get the information relative to the facilityTypologyCodes on the Content API/types/facilitytypologies operation:


https://api.hotelbeds.com/hotel-content-api/1.0/types/facilitytypologies?fields=all&language=ENG&from=1&to=1000&useSecondaryLanguage=false

Definition of the main logic flags within the facilities

The definition of each of the flags used in the facilities is described in our developer portal:


https://developer.hotelbeds.com/documentation/hotels/content-api/api-reference/#operation/hotelWithIdDetailsUsingGET



Find below a detailed explanation for the main ones:

  • indYesOrNo and indlogic: Indicates if the facility exists (if it’s present) at the hotel/room:
    • If “True” = exists
    • If “False” = doesn’t exist
      • Only one of these two flags will appear in a facility. The difference between both is:
  • “indYesOrNo” means that it’s a mandatory facility to inform
  • “indLogic” means the facility is not mandatory to inform.
      • indFee: Indicates whether the fee is paid / free to use
    • If “True” = has to be paid
      • In case HBG has the info on how much is the cost for this facility to be paid, it’ll be shown as the value of amount tag
    • If “False” = it’s free

Examples:

indLogic=”false”

This room facility indicates that there is no Balcony in that room.

<roomFacility facilityCode="230" facilityGroupCode="60" indLogic="false" indFee="false" voucher="false">
            <description>Balcony</description>
 </roomFacility>

  • FacilityCode = “230” means “Balcony
  • FacilityGroupCode = “60” means “Room facilities (Standard room)
  • IndLogic = “false” means it’s not present


indLogic="true" + indFee="false"

This room facility indicates that there is Internet Access in that room and it’s free

<roomFacility facilityCode="100" facilityGroupCode="60" indLogic="true" indFee="false" voucher="false">
            <description>Internet access</description>
</roomFacility>

  • FacilityCode = “100” means “Internet access
  • FacilityGroupCode = “60” means “Room facilities (Standard room)
  • IndLogic = “true” means it’s present
  • indFee = “false” means it has no cost

indYesOrNo="true" + indFee="true"

This hotel facility indicates that Car park is available at the hotel and it has a cost of 360 SEK if the guest wants to use it.

<facility facilityCode="320" facilityGroupCode="70" order="1" indFee="true" indYesOrNo="true" amount="360" currency="SEK" applicationType="UN" voucher="true">
        <description>Car park</description>
</facility>

  • FacilityCode = “320” means “Car Park
  • FacilityGroupCode = “70” means “Facilities
  • IndYesOrNo = “true” means it’s present
  • indFee = “true” means it has cost
  • amount = “360” and currency = “SEK” means the cost is 360 SEK

number is present – Room size

This hotel facility indicates that the Room Size for the room is 16 sqm

<roomFacility facilityCode="295" facilityGroupCode="60" number="16" indYesOrNo="true" voucher="false">
            <description>Room size (sqm)</description>
</roomFacility>


  • FacilityCode = “295” means “Room size (sqm)
  • FacilityGroupCode = “60” means “Room facilities (Standard room)
  • Number = “16” indicates the value for this facility is “16
  • IndYesOrNo = “true” means it’s present

number is present – Year of construction

This hotel facility indicates that the hotel Year of construction is 1990

<facility facilityCode="20" facilityGroupCode="10" order="1" number="1990" voucher="false">
        <description>Year of construction</description>
</facility>

  • FacilityCode = “20” means “Year of construction
  • FacilityGroupCode = “10” means “Location
  • Number = “1990” indicates the value for this facility is “1990

Facilities as you get it from hoteldetails and hotels

While the above explanation and examples show you how to read the facilities, there’s a minor difference on how you’ll find the facilities when running HotelsRQ


https://api.hotelbeds.com/hotel-api/1.0/hotels?fields=all&language=ENG&destinationCode=DXB&from=1&to=1000&useSecondaryLanguage=false&codes=


or HotelDetailsRQ


https://api.hotelbeds.com/hotel-api/1.0/hotels/64239?language=ENG

When reading the facilities on these two operations, you won’t get the facilitytypology value, instead the system will automatically bring the info associated with the facilitytypology.

Instead of getting “facilityTypologyCode="26", you’ll get indLogic="true" indFee="false"

Example

<roomFacility facilityCode="100" facilityGroupCode="60" indLogic="true" indFee="false" voucher="false">
    <description>Internet access</description>
</roomFacility>