.. meta:: :description: Rates List :keywords: Woodooapi Rates list ========== The method allows WuBook to read the hotel rates from the channel extranet. Request from WooDoo ------------------- :: "action": "get_rates" “data” is not specified Response from channel --------------------- :: { "code": 200, "data": { “hotel_id”: “100”, "rates": [ { "rate_id": "111", "name": "Standard", “currency”: “EUR”, "rooms": ["1", "2"] }, { "rate_id": "222", "name": "Discount", "rooms": ["1"] "readonly_prices": "111", "readonly_restrictions": ["minstay", "cta"] }, ] } } +-----------------------+-------------+----------------+---------------------------------------------------------------------+ | **Field** | Mandatory | **Type** | **Description** | +=======================+=============+================+=====================================================================+ | rates | Yes | List | List of rates. At least one. | +-----------------------+-------------+----------------+---------------------------------------------------------------------+ | rate_id | Yes | String | Unique identifier of the rate plan in the property | +-----------------------+-------------+----------------+---------------------------------------------------------------------+ | name | Yes | String | Rate plan name. Must be unique. If you feel you need to return two | | | | | times the same name, it probably means that you can merge two rate | | | | | plans into one. | +-----------------------+-------------+----------------+---------------------------------------------------------------------+ | currency | Yes | String | Currency of prices in this rate plan (ISO 4217) | +-----------------------+-------------+----------------+---------------------------------------------------------------------+ | rooms | Yes | List | The list of rooms which can be sold with the rate plan. | +-----------------------+-------------+----------------+---------------------------------------------------------------------+ | readonly_prices | No | String or null | Insert this key if the Channel Manager can't update prices for the | | | | | rate plan. If prices are derivated from another rate plan specify | | | | | its ID as value, otherwise leave a null value | | | | | Don't include this key if prices can be updated. | +-----------------------+-------------+----------------+---------------------------------------------------------------------+ | readonly_restrictions | No | String or List | Insert this key if the Channel Manager can't update all or a part | | | | or null | of restrictions of the rate plan. If all supported restrictions are | | | | | derivated from another rate plan, specify its ID as value. If only | | | | | a part of the supported restrictions is read-only, the value should | | | | | be the list of those restrictions. Otherwise leave a null value. | | | | | Don't include this key if all supported restrictions can be updated.| +-----------------------+-------------+----------------+---------------------------------------------------------------------+