Hotel.getAccountItems | Previo API

Hotel.getAccountItems

Returns an account items list

Parameters

Name Description
login Login
password Password
hotId Hotel ID
comIds Reservation IDs

Sample request

<request>
        <login>prihlasovaci_jmeno</login>
        <password>heslo</password>
        <hotId>1</hotId>
        <comIds> 
                <comId>12554</comId>        
                <comId>15689</comId>         
        </comIds> 
</request>

Output

 

Root node - reservations

<reservations> [0..1]  
 
<accounts> [1..*] Account of the reservation

accounts - account of the reservation

<accounts> [0..1]  
 
<comId> [1] Reservation identificator
<roomAccount> [0..1] Room account
 
<currency> [1] Currency
<item> [0..*] Item on the account
<groupAccount> [0..1] Group account
 
<currency> [1] Currency
<item> [0..*] Item on the account

Currency 

<currency> Currency
 
<curId> [1] Currency ID
<code> [1] Currency code according to ISO 4217
<name> [1] Currency name

Item - item on the account

<item> Items on the account
 
<coaId> [1] Item ID 
<count> [1] Number of items
<name> [1] Items name

<price> [1] Price per 1 piece without VAT
<itemType> [1]

Numeric type of item

0 Normal item
1 Accommodation
2 Discount on accommodation
3 Meals
4 Recreation tax
5 Accommodation tax
Extra charge / Discount
7 Stock item
<recalculation> [1] Is the price automatically recalculated ?
<position> [1] The order of items on the account
<stock> [0..1] Stock detail. Returns only if the item has relation with the stock.
 
<stoId> [1] Stock ID
<name> [1] Name of stock item
<leaving> [1] The remaining number of items in stock
<vat> [1] VAT detail
 
<vatId> [1] VAT ID
<rate> [1] VAT rate
<label> [1] VAT label
<name> [1] VAT name
<type> [1] VAT type

Sample response

<?xml version="1.0" encoding="UTF-8"?>
<reservations>
    <accounts>
        <comId>79879798798</comId>
        <roomAccount>
            <currency>
                <curId>1</curId>
                <code>CZK</code>
                <name>Česká koruna</name>
            </currency>
            <item>
                <coaId>46483868</coaId>
                <count>2</count>
                <name>Ubytovací služby (pokoj: 06 sm-dbl, termín: 10.3.2015 - 12.3.2015, hostů: 1)</name>
                <price>1638.3</price>
                <itemType>1</itemType>
                <recalculation>true</recalculation>
                <position>1</position>
                <stock/>
                <vat>
                    <vatId>10</vatId>
                    <rate>15</rate>
                    <label>15 %</label>
                    <name>DPH - Snížená sazba</name>
                    <type>LOW</type>
                </vat>
            </item>
            <item>
                <coaId>46483857</coaId>
                <count>2</count>
                <name>Strava (bez stravy: 1)</name>
                <price>120</price>
                <itemType>3</itemType>
                <recalculation>true</recalculation>
                <position>2</position>
                <stock/>
                <vat>
                    <vatId>36</vatId>
                    <rate>21</rate>
                    <label>21 %</label>
                    <name>DPH - Základní sazba</name>
                    <type>HIGH</type>
                </vat>
            </item>
            <item>
                <coaId>46483858</coaId>
                <count>2</count>
                <name>Rekreační poplatek (hostů: 1)</name>
                <price>30</price>
                <itemType>4</itemType>
                <recalculation>true</recalculation>
                <position>3</position>
                <stock/>
                <vat>
                    <vatId>1</vatId>
                    <rate>0</rate>
                    <label>0 %</label>
                    <name>DPH - Nulová sazba</name>
                    <type>NO</type>
                </vat>
            </item>
            <item>
                <coaId>46483859</coaId>
                <count>2</count>
                <name>Ubytovací poplatek (hostů: 1)</name>
                <price>20.0009</price>
                <itemType>5</itemType>
                <recalculation>true</recalculation>
                <position>4</position>
                <stock/>
                <vat>
                    <vatId>1</vatId>
                    <rate>0</rate>
                    <label>0 %</label>
                    <name>DPH - Nulová sazba</name>
                    <type>NO</type>
                </vat>
            </item>
            <item>
                <coaId>46483860</coaId>
                <count>1</count>
                <name>Sleva - Last minute</name>
                <price>-327.66</price>
                <itemType>6</itemType>
                <recalculation>false</recalculation>
                <position>5</position>
                <stock/>
                <vat>
                    <vatId>10</vatId>
                    <rate>15</rate>
                    <label>15 %</label>
                    <name>DPH - Snížená sazba</name>
                    <type>LOW</type>
                </vat>
            </item>
            <item>
                <coaId>46483867</coaId>
                <count>1</count>
                <name>Aloe vera</name>
                <price>153</price>
                <itemType>0</itemType>
                <recalculation>false</recalculation>
                <position>6</position>
                <stock>
                    <stoId>4442</stoId>
                    <name>Aloe vera</name>
                    <leaving>7</leaving>
                </stock>
                <vat>
                    <vatId>36</vatId>
                    <rate>21</rate>
                    <label>21 %</label>
                    <name>DPH - Základní sazba</name>
                    <type>HIGH</type>
                </vat>
            </item>
        </roomAccount>
        <groupAccount>
            <currency>
                <curId>2</curId>
                <code>EUR</code>
                <name>Euro</name>
            </currency>
            <item>
                <coaId>46483853</coaId>
                <count>1</count>
                <name>Čokoládová / medová masáž 45 min/os</name>
                <price>18.275</price>
                <itemType>0</itemType>
                <recalculation>false</recalculation>
                <position>7</position>
                <stock/>
                <vat>
                    <vatId>36</vatId>
                    <rate>21</rate>
                    <label>21 %</label>
                    <name>DPH - Základní sazba</name>
                    <type>HIGH</type>
                </vat>
            </item>
            <item>
                <coaId>46483863</coaId>
                <count>1</count>
                <name>Aloe vera</name>
                <price>10.77</price>
                <itemType>0</itemType>
                <recalculation>false</recalculation>
                <position>8</position>
                <stock>
                    <stoId>4442</stoId>
                    <name>Aloe vera</name>
                    <leaving>7</leaving>
                </stock>
                <vat>
                    <vatId>36</vatId>
                    <rate>21</rate>
                    <label>21 %</label>
                    <name>DPH - Základní sazba</name>
                    <type>HIGH</type>
                </vat>
            </item>
        </groupAccount>
    </accounts>
    <accounts>
        <comId>123456789</comId>
        <groupAccount>...</groupAccount>
        <roomAccount>...</roomAccount>
    </accounts>
</reservations>