The supplier sends this message about the maximum stays which are applied by the structures. The query type (type) is set to getmaximumstay.

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

Request
  • startdate

    first day

  • days

    number of days

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>1.0.0</version>
        <timestamp>20210808162849</timestamp>
        <transaction>52791</transaction>
    </header>
    <query type="getmaximumstay" product="hotel" agrement="1299">
        <startdate>2020-06-10</startdate>
        <days>300</days>
    </query>
</envelope>
Response

The reply message contains within tag response the various fields that show the maximum stay applied.

dates

  • start date

    first day

  • days

    number of days of maximum stay validity

  • roomtype

    data about the maximum stay Parameter that identifies the room type:

    • SGL single room
    • TSU twin for sole use room The TSU doesn't inherit the maximum stay of the TWN.
    • TWN twin room
    • DBL double room
    • TRP triple room
    • QUD quadruple room
    • STR big accommodations
  • night

    nights of maximum stay

  • period

    validity period of the maximum stay

    • W weekend days
    • F ferial days
    • B both: weekend and ferial days

Let’s see an example of message the client could receive if the maximum stay has been set specifically for a room type.

<?xml version="1.0" encoding="UTF-8"?>
<envelope>
    <header>
        <actor>...</actor>
        <user>...</user>
        <version>0.1b</version>
        <timestamp>20210219165009</timestamp>
        <transaction>52791</transaction>
    </header>
    <response type="getmaximumstay"/>
    <date>
        <startdate>2020-06-28</startdate>
        <days>2</days>
        <roomtype>
            <DBL>9</DBL>
            <TRP>9</TRP>
        </roomtype>
        <period>B</period>
        <checkindays>
            <checkinday>0</checkinday>
            <checkinday>1</checkinday>
        </checkindays>
    </date>
</envelope>

Let’s see an example of message the client could receive if the maximum stay has been generically set.

<?xml version="1.0" encoding="UTF-8"?>
<envelope>
    <header>
        <actor>...</actor>
        <user>...</user>
        <version>0.1b</version>
        <timestamp>20210219165009</timestamp>
        <transaction>52791</transaction>
    </header>
    <response type="getmaximumstay"/>
    <date>
        <startdate>2020-06-28</startdate>
        <days>2</days>
<nights>2</nights>
        <period>B</period>
        <checkindays>
            <checkinday>0</checkinday>
            <checkinday>1</checkinday>
        </checkindays>
    </date>
</envelope>