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.
date
closing period
startdate
first closing day
enddate
last closing day
roomcode
room types that have to be closed
checkinonly
(optional) Boolean (Y/N) value:
checkoutonly
(optional) Boolean (Y/N) value:
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>
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)