Channel Managers · API docs

Lists Rate Plans

URL: /v1/hotels/rate-plans/list

Goals

To list all the rate plans for a hotel.

Notes

Linked Rate Plans

Rate plans can be linked, forming a parent ↔ child relationship. A linked (or child) rate plan may adjust the rates of the parent rate plan, and inherit zero or more restrictions.

Inherited values cannot be updated.

Since there is no concept of inherited rate plans in the OpenTravel specification, this is the only place so far where the Despegar.com API has deviated from it.

Charge Type Code

Pay attention to the value of @ChargeTypeCode. It determines the way in which you update rates later.

Message Detail

Input: OTA_HotelRatePlanRQ

ElementNumberDescription
OTA_HotelRatePlanRQ1Root element
OTA_HotelRatePlanRQ / RatePlans1Rate plan collection
RatePlans / RatePlan1Defines the criteria to identify the rate plan to be returned.
RatePlan / HotelRef0..1
@HotelCode1The code of the hotel to query the rate plan.

Output: OTA_HotelRatePlanRS

ElementNumberDescription
OTA_HotelRatePlanRS1Root element
OTA_HotelRatePlanRQ / RatePlans1Rate plan collection
@HotelCode1The code of the hotel to be queried.
RatePlans / RatePlanAll the information of a specific rate plan.
@RatePlanCode1Identifier code of the rate plan.
@ChargeTypeCode1Indicates how the rate is applied. Refer to OpenTravel Charge Type (CHG) code table. Despegar.com supports only the following values: "19": Per room per night "21": Per person per night
@CurrencyCode1ISO 4217 currency code. Example: USD, ARG, EUR.
@AdjustedAmount0..1The amount used to determine the price of the linked rate plan
@AdjustedPercentage0..1The percentage used to determine the price of the linked rate plan
@AdjustUpIndicator0..1Indicates if the adjustment is positive or negative. Possible values: True: indicates the adjustment is positive False: indicates the adjustment is negative
@BaseRatePlanCode1The rate plan from which rates are derived
RatePlan / Description
Description / TextRate Plan name
RatePlan / Rates
Rates / Rate0..nRate element included for age range definition purposes only.
@AgeQualifyingCode1The age qualifier to be defined. Refer to OpenTravel Age Qualifying Code (AQC) code table. Despegar.com supports only the following values: "10": Adult"8": Child "7": Infant
@AgeTimeUnit1The age time unit. Possible values: "Year": Ages expressed in years
@MinAge1The minimum age considered in this range. This value is inclusive.
@MaxAge0..1The maximum age considered in this range. This value is exclusive and is not defined for the adult range.
RatePlan / LinkedRestrictions0..1Indicates if this is a linked rate plan, which restrictions are inherited. Values of inherited restrictions: MinLos MaxLos CloseToArrival CloseToDeparture
@MinLos1Indicates if minimum nights is inherited or not. Values: True: Indicates restriction is inherited and cannot be updated. False: Indicates restriction is not inherited and can be updated.
@MaxLos1Indicates if maximum nights is inherited or not. Values: True: Indicates restriction is inherited and cannot be updated. False: Indicates restriction is not inherited and can be updated.
@CloseToArrival1Indicates if close to arrival is inherited or not. Values: True: Indicates restriction is inherited and cannot be updated. False: Indicates restriction is not inherited and can be updated.
@CloseToDeparture1Indicates if close to arrival is inherited or not. Values: True: Indicates restriction is inherited and cannot be updated. False: Indicates restriction is not inherited and can be updated.