The channel manager can use this method in order to retrieve information about the active contracts of a specific hotel.
The query type (type) should be set to gethotelscontracts.
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>01b</version>
<timestamp>20211004113909</timestamp>
<transaction>12345</transaction>
</header>
<query type="gethotelscontracts" product="hotel" hotel="12466"/>
</envelope>
If you want to receive information about derived or connected contracts too, you can populate an optional attribute extended . See the example below
<?xml version="1.0" encoding="UTF-8"?>
<envelope>
<header>
<actor>...</actor>
<user>...</user>
<password>...</password>
<version>01b</version>
<timestamp>20211004113909</timestamp>
<transaction>12345</transaction>
</header>
<query type="gethotelscontracts" product="hotel" hotel="12466" extended="true"/>
</envelope>