The supplier sends this message to set closure dates and terms. The query type (type) is set to setclousure . Below you can see the fields you can find in the message body and their meanings.

Request

date

closing period

  • startdate

    first closing day

  • enddate

    last closing day

  • roomcode

    room types that have to be closed

    • SGL single room
    • TWN twin room
    • The closures of the TSU (twin for sole use room) can't be updated. They are inherited from the TWN.
    • DBL double room
    • TRP triple room
    • QUD quadruple room
    • STR big accommodations
  • checkinonly

    (optional) Boolean (Y/N) value:

    • Y: if True, the closure will be valid only for stays starting between start and end date provided
    • N: if False, the closure will be valid for any date of the stay if it overlaps start and end date provided
  • checkoutonly

    (optional) Boolean (Y/N) value:

    • Y: if True, the closure will be valid only for stays finishing between start and end date provided
    • N: if False, the closure will be valid for any date of the stay if it overlaps start and end date provided

A closure can not be both checkinonly and checkoutonly an error is raised if the request is set like this.

This call doesn't manage the parameter "generic".

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="setclousure" product="hotel" agrement="5629">
        <date>
      <startdate>2022-01-01</startdate>
      <enddate>2022-01-01</enddate>
      <checkinonly>Y</checkinonly>
      <checkoutonly>N</checkoutonly>
      <roomcode>
        <SGL>Y</SGL>
        <TWN>Y</TWN>
        <DBL>Y</DBL>
        <TRP>Y</TRP>
        <QUD>Y</QUD>
        <STR>Y</STR>
      </roomcode>

        </date>
    </query>
</envelope>
Response

The reply message contains, within tag response, the string "OK" or in case of error the string "error code XX (description)", where XX represents an error code (error code list)