Hotel.getObjectKinds | Previo API

Hotel.getObjectKinds

Returns guest rooms and other spaces in the hotel. 

In case you are interested in guest rooms only, use the function Hotel.getRoomKinds which has identical parameters and output structure but only returns guest rooms (obtId = 1).

Parameters

Name Description
login Username
password Password
hotId Hotel ID 
lanId Language ID (optional) 

Sample request

<request>
    <login>prihlasovaci_jmeno</login>
    <password>heslo</password>
    <hotId>74856</hotId>
</request>

Output

<objectKinds> [1]  
 
<objectKind> [0..*] Room kind
 
<obkId> [1] Room kind ID
<obtId> [1] Room type ID (1 = guest room, 2 = other areas) 
<name> [1] Room kind name
<description> [1] Description. Can contain HTML
<numOfBeds> [0..1] Number of beds. Only for guest rooms (obtId = 1).
<numOfExtraBeds> [0..1] Number of extra beds. Only for guest rooms (obtId = 1).
<singleUse> [0..1] Also offered as single room (true|false). Only for guest rooms (obtId = 1).
<objects> [1] List of rooms according to selected kind
 
<object> [1..*] Room
 
<objId> [1] Room ID
<name> [1] Room name
<order> [1] Room order
<properties> [1] Room amenities
 
<proId> [0..*] Room amenity ID

Sample output

<objectKinds>
    <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>
    <objectKind>
        <obkId>110961</obkId>
        <obtId>2</obtId>
        <name>Tenisová hala</name>
        <description>&lt;p&gt;Kvalitní povrch a nové sítě.&lt;/p&gt;</description>
        <objects>
            <object>
                <objId>956611</objId>
                <name>Kurt 1</name>
                <order>2</order> 
            </object>
        </objects>
        <properties/>
    </objectKind>
</objectKinds>


Sample output corresponds to this screen in the Previo system: 

Nastavení pokojů