The supplier sends this message about the facilities rates. The query type (type) is set to getrate.

Below you can see the fields you can find in the message body and their meanings.

Request

roomtype

Room type. It collects all data relating to a room type.

  • roomcode

    Parameter that identifies the room type

    • SGL single room
    • TSU twin single use room
    • TWN twin room
    • DBL double room
    • TRP triple room
    • QUD quadruple room
    • STR big accommodations
    • cot (small letters)
    • extrabed (small letters)
  • dates

    Set of rates dates.

    • value

    effective date

    • days

    number of days. (You can add this number to the effective date to get the end of the period. If these two dates correspond the value is set to 0).

Let’s see an example of message the client could send.

<?xml version="1.0" encoding="UTF-8"?>
<envelope>
       <header>
        <actor>...</actor>
        <user>...</user>
        <password>...</password>
          <version>0.1b</version>
          <timestamp>20210427</timestamp>
          <transaction>160125</transaction>
      </header>
<query type="getrate" product="hotel" agrement="1299">
        <roomtype roomcode="TSU">
            <dates>
                <date value="2022-12-09">
                    <days>600</days>
                </date>
            </dates>
        </roomtype>      
    </query>
</envelope>
Response

The reply message contains within tag response the various fields that describe the tariffs for each type of room.

roomtype

Room type. It collects all data relating to a room type.

  • roomcode

    Parameter that identifies the room type

    • SGL single room
    • TSU twin for sole use room
    • TWN twin room
    • DBL double room
    • TRP triple room
    • QUD quadruple room
    • STR big accommodations
    • cot
    • extrabed
  • dates

    • date
      • value start date
    • tax

    imposed taxes. You can receive this field (not always).

    • days

    number of day. (You can add this number to the start date to get the end of the period. If these two dates correspond this value is set to 0)

    • value

    rate of room. Please notice that this is the gross price (it includes also the taxes)

Let’s see an example of message the client could receive.

<?xml version="1.0" encoding="UTF-8"?>
<envelope>
    <header>
        <actor>...</actor>
        <user>....</user>
        <version>0.1b</version>
        <timestamp>20210219164741</timestamp>
        <transaction>160125</transaction>
    </header>
    <response type="getrate"/>
    <roomtype roomcode="TSU">
        <dates>
            <date value="2022-02-14">
                <tax>0.0</tax>
                <days>23</days>
                <value>60.0</value>
            </date>
            <date value="2022-03-10">
                <tax>0.0</tax>
                <days>0</days>
                <value>95.1</value>
            </date>
            <date value="2022-03-11">
                <tax>0.0</tax>
                <days>4</days>
                <value>60.0</value>
            </date>
        </dates>
    </roomtype>
</envelope>

In case of error the reply message contains, within tag response, the string "error code XX (description)", where XX represents an error code