Hotel.getGuestCategories | Previo API

Hotel.getGuestCategories

Returns guest categories of the hotel. 

Parameters

Name Description
login Username
password Password
hotId Hotel ID
lanId Language ID in which you would like descriptions to be returned (optional)

Sample request 

<request>
    <login>prihlasovaci_jmeno</login>
    <password>heslo</password>
    <hotId>478569</hotId>
    <lanId>2</lanId>
</request>

Output

<guestCategories> [1]  
 
<default> [1] Defaut category ID (default category usually "adult") 
<gdmId> [1]

Guest category discount calculation ID (1 - from ideal part, 2 - from last bed, 3 - from ideal part (with distinguishing main bed and extrabed)

<discountOnExtraBedsOnly> [0..1]

Discount available only on extrabeds

<category> [1..*] Guest category 
 
<guaId> [1] Guest category ID
<name> [1] Guest category name
<discountRate> [1] Accommodation discount in %

Sample output

<guestCategories>
    <default>14372</default>
    <gdmId>1</gdmId> 
    <category>
        <guaId>160</guaId>
        <name>Child under 15</name>
        <discountRate>20</discountRate>
        <paysRecreationTax>1</paysRecreationTax> 
        <ageFrom/>
        <ageTo>15</ageTo>
        <withoutBed>false</withoutBed> 
        <gctId>1</gctId>
    </category>
    <category>
        <guaId>14372</guaId>
        <name>Adult</name>
        <discountRate>0</discountRate>
        <paysRecreationTax>0</paysRecreationTax>  
        <ageFrom>18</ageFrom>
        <ageTo>65</ageTo>
        <gctId>3</gctId>   
        <withoutBed>false</withoutBed>  
    </category>
    <category>
        <guaId>45818</guaId>
        <name>Child under 2</name>
        <discountRate>100</discountRate>
        <paysRecreationTax>1</paysRecreationTax>  
        <ageFrom>0</ageFrom>
        <ageTo>2</ageTo>
        <gctId>1</gctId> 
        <withoutBed>true</withoutBed>  
    </category>
</guestCategories>