Hotel.addAccountItem | Previo API

Hotel.addAccountItem

Adds a new item to a guest account. 

Parameters

Name Description
login Username
password Password
comId Reservation ID
currency Currency
account Items to be added to the account 

currency

Adds an item to a guest account in chosen currency. 

<currency> [1]  
 
<curId> [0..1] Currency ID
<code> [0..1] Currency code

account

Set of items to be added to the guest account. 

<account> [1..*]  
 
<item> [0..*] Item to be added to the guest account

item

Item to be added to the guest account.  

<item> [0..*]  
 
<name> [1] Name of item
<count> [1] Quantity of item
<price> [1] Price per item
<taxRate> [1] Tax rate (%)
<gueId> [1] ID hosta

Sample request

<request>
        <login>prihlasovaci_jmeno</login>
        <password>heslo</password>
        <comId>1</comId>
        <currency>
            <curId>1</curId>
            <code>CZK</code>
        </currency>
        <account>
            <item>
                <name>Krmivo pro psy - Pedigree</name>
                <count>4</count>
                <price>199.50</price>
                <taxRate>20</taxRate>
                <gueId>256</gueId> 
            </item>
            <item>
                <name>Krmivo pro kočky - Whiskas</name>
                <count>2</count>
                <price>99.90</price>
                <taxRate>10</taxRate>
                <gueId>256</gueId> 
            </item>
        </account>
</request>

Output

Root element - hotelAccount

<hotelAccount> [1]  
 
<account> [0..*] Set of items to be added to the guest account
<currency> [1] Currency
 
<curId> [1] Currency ID
<code> [1] Currency code

account

<account> [0..1]

If the request has been successful, all items on the guest account will be modified accordingly (including any new items). 

 
<item> [0..*] Item to be added to guest account
 
<name> [1] Name of item
<count> [1] Quantity of item
<price> [1] Price per item
<taxRate> [1] Tax rate (%)
<gueId>[1] ID hosta

currency

<currency> [1] Currency
 
<curId> [1] Currency ID
<code> [1] Currency code

Sample output

<hotelAccount>
    <account>
        <item>
            <name>Ubytovací služby (pokoj: 101 - S, termín: 9.11.2010 - 10.11.2010, hosté: 1)</name>
            <count>1</count>
            <price>0</price>
            <taxRate>10</taxRate>
        </item>
        <item>
            <name>Rekreační poplatek (hosté: 1)</name>
            <count>1</count>
            <price>10</price>
            <taxRate>0</taxRate>
            <gueId>256</gueId> 
        </item>
        <item>
            <name>Ubytovací poplatek (hosté: 1)</name>
            <count>1</count>
            <price>4</price>
            <taxRate>0</taxRate>
            <gueId>256</gueId> 
        </item>
        <item>
            <name>Krmivo pro psy - Pedigree</name>
            <count>4</count>
            <price>199.5</price>
            <taxRate>20</taxRate>
            <gueId>256</gueId> 
        </item>
        <item>
            <name>Krmivo pro kočky - Whiskas</name>
            <count>2</count>
            <price>99.9</price>
            <taxRate>10</taxRate>
            <gueId>256</gueId> 
        </item>
    </account>
    <currency>
        <curId>1</curId>
        <code>CZK</code>
    </currency>
</hotelAccount>