Hotel.getRoomKinds | Previo API

Hotel.getRoomKinds

Returns information about hotel rooms. 

Parameters

Name Description
login Username
password Password
hotId Hotel ID
lanId Language ID (optional)
roomOnly Filter. If set to true, returns only rooms intended for accommodation. If the value is empty or false, it returns all room types. (optional)
offerOnline Filter. If set to true, returns only rooms that can be offered online. The default value is true. (optional)

Sample request

<request>
    <login>prihlasovaci_jmeno</login>
    <password>heslo</password>
    <hotId>74856</hotId>
    <lanId>2</lanId>
    <roomOnly>true</hotId>  
</request>

 

Sample output

<roomKinds>
    <objectKind>
        <obkId>94676</obkId>
        <obtId>1</obtId>
        <name>Dvoulůžkový</name>
        <description>&lt;p&gt;Moderní ubytování s příjemnou postelí.&lt;/p&gt;</description>
        <numOfBeds>2</numOfBeds>
        <numOfExtraBeds>0</numOfExtraBeds>
        <singleUse>true</singleUse>
        <objects>
            <object>
                <objId>784061</objId>
                <name>201</name>
                <order>0</order> 
            </object>
            <object>
                <objId>956606</objId>
                <name>202</name>
                <order>1</order> 
            </object>
        </objects>
        <properties>
            <proId>11</proId>
            <proId>17</proId>
        </properties>
    </objectKind>
    <objectKind>
        <obkId>94681</obkId>
        <obtId>1</obtId>
        <name>Apartmán</name>
        <description>&lt;p&gt;Útulný apartmán s výhledem.&lt;/p&gt;</description>
        <numOfBeds>4</numOfBeds>
        <numOfExtraBeds>0</numOfExtraBeds>
        <singleUse>false</singleUse>
        <objects>
            <object>
                <objId>784076</objId>
                <name>401</name>
                <order>2</order> 
            </object>
        </objects>
        <properties>
            <proId>3</proId>
            <proId>6</proId>
        </properties>
    </objectKind>
</roomKinds>