This method still works, anyway you can check this information just controlling the “generic” parameter in the getavail response.

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

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

  • startdate
    • Interval effective date
  • 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>test</actor>
        <user>test</user>
        <password>test</password>
        <version>0.1b</version>
        <timestamp>20210423170100</timestamp>
        <transaction>12345</transaction>
    </header>
    <query type="getgeneric" product="hotel" agrement="5629">
    <startdate>2021-05-01</startdate>
    <days>15>/days>
    </query>
</envelope>