Hotel.getMeals | Previo API

Hotel.getMeals

Return available meals in given season and it's prices.

Parameters

Název Popis
login Username
password Password
hotId Hotel ID
term Term

term

Return available meals in given season and it's prices.

Dates must be in W3 date format. E.g.. 2010-04-29.

<term> [1]  
 
<from> [1] Date from
<to> [1] Date to

Example request

<request>
    <login>username</login>
    <password>password</password>
    <hotId>2</hotId>
    <term>
       <from>2017-01-01</from>
       <to>2017-12-31</to>
    </term>
</request>

Output

<meals>  
 
<default> [1] Default meal ID
<meal> [0..*] List of available meals
 
<meaId> [1] Meal type
<mealSeason> [0..*] Meals season
 
<mesId> [1] Meals season Id
<from> [1] Valid from
<to> [1] Valid to
<mealPrice> [0..*] List of prices based on guest category
 
<guaId> [1] Guest category ID
<rate> [1..*] Meal price
   
<price> [1] Price
<currency> [1]  
 
<curId> [1] Currency ID
<code> [1] Currency code in ISO 4217

Example response

<?xml version="1.0" encoding="UTF-8"?>
<meals>
    <default>1</default>
    <meal>
        <meaId>1</meaId>
        <mealSeason>
            <mesId>466</mesId>
            <from>2019-07-09</from>
            <to>2019-07-13</to>
            <mealPrice>
                <guaId>167238</guaId>
                <rate>
                    <price>150</price>
                    <currency>
                        <curId>1</curId>
                        <code>CZK</code>
                    </currency>
                </rate>
            </mealPrice>
            <mealPrice>
                <guaId>132970</guaId>
                <rate>
                    <price>150</price>
                    <currency>
                        <curId>1</curId>
                        <code>CZK</code>
                    </currency>
                </rate>
            </mealPrice>
            <mealPrice>
                <guaId>169482</guaId>
                <rate>
                    <price>120</price>
                    <currency>
                        <curId>1</curId>
                        <code>CZK</code>
                    </currency>
                </rate>
            </mealPrice>
        </mealSeason>
        <mealSeason>
            <mesId>1398788</mesId>
            <from>2019-07-13</from>
            <to>2019-07-14</to>
            <mealPrice>
                <guaId>167238</guaId>
                <rate>
                    <price>100</price>
                    <currency>
                        <curId>1</curId>
                        <code>CZK</code>
                    </currency>
                </rate>
            </mealPrice>
            <mealPrice>
                <guaId>132970</guaId>
                <rate>
                    <price>0</price>
                    <currency>
                        <curId>1</curId>
                        <code>CZK</code>
                    </currency>
                </rate>
            </mealPrice>
            <mealPrice>
                <guaId>169482</guaId>
                <rate>
                    <price>-40</price>
                    <currency>
                        <curId>1</curId>
                        <code>CZK</code>
                    </currency>
                </rate>
            </mealPrice>
        </mealSeason>
    </meal>
    <meal>
        <meaId>2</meaId>
        <mealSeason>
            <mesId>466</mesId>
            <from>2019-07-09</from>
            <to>2019-07-13</to>
            <mealPrice>
                <guaId>167238</guaId>
                <rate>
                    <price>0</price>
                    <currency>
                        <curId>1</curId>
                        <code>CZK</code>
                    </currency>
                </rate>
            </mealPrice>
            <mealPrice>
                <guaId>132970</guaId>
                <rate>
                    <price>0</price>
                    <currency>
                        <curId>1</curId>
                        <code>CZK</code>
                    </currency>
                </rate>
            </mealPrice>
            <mealPrice>
                <guaId>169482</guaId>
                <rate>
                    <price>0</price>
                    <currency>
                        <curId>1</curId>
                        <code>CZK</code>
                    </currency>
                </rate>
            </mealPrice>
        </mealSeason>
        <mealSeason>
            <mesId>1398788</mesId>
            <from>2019-07-13</from>
            <to>2019-07-14</to>
            <mealPrice>
                <guaId>167238</guaId>
                <rate>
                    <price>0</price>
                    <currency>
                        <curId>1</curId>
                        <code>CZK</code>
                    </currency>
                </rate>
            </mealPrice>
            <mealPrice>
                <guaId>132970</guaId>
                <rate>
                    <price>0</price>
                    <currency>
                        <curId>1</curId>
                        <code>CZK</code>
                    </currency>
                </rate>
            </mealPrice>
            <mealPrice>
                <guaId>169482</guaId>
                <rate>
                    <price>0</price>
                    <currency>
                        <curId>1</curId>
                        <code>CZK</code>
                    </currency>
                </rate>
            </mealPrice>
        </mealSeason>
    </meal>
</meals>