The supplier sends this message about the facilities rates. The query type (type) is set to setrate. Below you can see the fields you can find in the message body and their meanings.

roomtype

Room type. Room type. It collects all data for a room type.

  • roomcode

    Parameter which 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
    • cot (small letters)
    • extrabed (small letters)

dates

A set of data about the rates of a given room type.

  • date

    • value data value
    • operation indicates the operation type. It is a mandatory field and has always to be set to insert.
  • rate rate

  • 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 you must set this value to 0)

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

<?xml version="1.0" encoding="UTF-8"?>
<envelope>
    <header>
    <actor>test</actor>
        <user>test</user>
        <password>test</password>
        <version>0.1b</version>
        <timestamp>20210423170100</timestamp>
        <transaction>12345</transaction>
    </header>
    <query type="setrate" product="hotel" agrement="4217">
        <roomtype roomcode="SGL">
          <dates>
            <date value="2022-04-04" operation="insert">
              <rate>120</rate>
              <days>1</days>
            </date>
          </dates>
        </roomtype>
    </query>
</envelope>