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

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

Request
  • startdate

    first closing day

  • days

    number of days. (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).

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>20160427</timestamp>
          <transaction>160125</transaction>
      </header>
<query type="getclousure" product="hotel" agrement="1299">
<startdate>2022-08-01</startdate>
<days>300</days>
</query>
</envelope>
Response

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

dates

  • start date

    first closing day

  • days

    number of days. (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)

  • roomtype

    parameter that identifies the room type

    • SGL single room
    • The closures of the TSU (twin for sole use room) are inherited from the TWN.
    • TWN twin room
    • DBL double room
    • TRP triple room
    • QUD quadruple room
    • STR big accommodations
    • freesale The closure is applied only on allotments pushed via CM
    • onrequest The closure will not remove the contract from availability but will change its status to "on request" thus allowing the hotel to consider confirming the reservation
    • checkinonly The closure will be applied only if the checkin day falls inside startdate - enddate interval
    • checkoutonly The closure will be applied only if the checkout day falls inside startdate - enddate interval

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>20210219164156</timestamp>
        <transaction>160125</transaction>
    </header>
    <response type="getclousure"/>
    <date>
        <startdate>2022-12-25</startdate>
        <days>1</days>
        <roomtype>
            <onrequest>Y</onrequest>
            <DBL>Y</DBL>
            <TWN>Y</TWN>
            <QUD>Y</QUD>
            <freesale>Y</freesale>
            <TRP>Y</TRP>
            <SGL>Y</SGL>
            <STR>Y</STR>
            <checkinonly>Y</checkinonly>
            <checkoutonly>N</checkoutonly>
        </roomtype>
    </date>
</envelope>

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