Skip to main content
POST
Retrieve the best available price for each room type at the hotel for a specified date range and guest configuration.

Body

application/json

The period to cover (begin and end dates, both included), the single party of guests to accommodate, the rate plan, rooms and rates to look at, and the behaviours to arbitrate between restricted dates.

Request the best prices for each rate or room over a given period, for a given number of guests

beginDate
string<date>
required

First date to be returned

Example:

"2027-08-31"

endDate
string<date>
required

End of the requested period. This date is included

Example:

"2027-08-31"

guests
object
required

Number of guests the price is requested for. This endpoint accepts a single party: unlike Calendar and Hotels/Stays, this is one object, not an array.

filter
object | null

Filter to apply to the best price request

behaviour
enum<string> | null
default:LowestLengthOfStay
deprecated

Obsolete: use Behaviours instead. Cannot be combined with a non-empty Behaviours. When the date has restrictions, indicates how to behave

  • LowestLengthOfStay: (default): Will prioritise the shortest length of stay, to prevent displaying dates with minimum stays when there is a flexible rate available
  • CheapestStay: Will prioritise the cheapest stay, to prevent an overpriced flexible stay from being returned when longer stays are cheaper
  • EarliestAvailability: Will prioritise the earliest stay
Available options:
LowestLengthOfStay,
CheapestStay,
EarliestAvailability
behaviours
enum<string>[] | null

When the date has restrictions, indicates how to behave. Each entity is returned once per requested behaviour, with the behaviour set on each entry. Entries are returned grouped by behaviour, in this order. An empty list is treated as absent: Behaviour is then used, else LowestLengthOfStay is assumed. Duplicate values are ignored.

How to choose the best price when the date has restrictions

  • LowestLengthOfStay: (default): Will prioritise the shortest length of stay, to prevent displaying dates with minimum stays when there is a flexible rate available
  • CheapestStay: Will prioritise the cheapest stay, to prevent an overpriced flexible stay from being returned when longer stays are cheaper
  • EarliestAvailability: Will prioritise the earliest stay
Available options:
LowestLengthOfStay,
CheapestStay,
EarliestAvailability
impersonation
object | null

Impersonation information to restrict the scope of the request

Response

One entry per room and requested behaviour, with the best arrival date and price found for that room under that behaviour, and the effective stay restrictions. Entries are grouped by behaviour, in the order of the request, then ordered by room id.

rateId
integer<int32>

Identifier of the best rate

Example:

5678

roomId
integer<int32>

Identifier of the best room

Example:

3456

behaviour
enum<string>

Behaviour this entry was computed for, among the requested behaviours

  • LowestLengthOfStay: (default): Will prioritise the shortest length of stay, to prevent displaying dates with minimum stays when there is a flexible rate available
  • CheapestStay: Will prioritise the cheapest stay, to prevent an overpriced flexible stay from being returned when longer stays are cheaper
  • EarliestAvailability: Will prioritise the earliest stay
Available options:
LowestLengthOfStay,
CheapestStay,
EarliestAvailability
arrivalDate
string<date>

Arrival date (yyyy-MM-dd)

Example:

"2027-08-31"

minimumStay
integer<int32>

Effective minimum stay for an arrival that day, on this rate and room.

Example:

2

maximumStay
integer<int32>

Effective maximum stay for an arrival that day, on this rate and room. Value is capped at the values provided in the request INFO: There may be other (more expensive) offers that will allow the guest to stay longer

Example:

15

availability
integer<int32>

Number of rooms still available for this room and rate, over the returned stay

Example:

3

currency
string | null

Iso Currency code.

Example:

"EUR"

totalPrice
number<double>

Best Total price (Room + meals) to host all guests that day (average per night if minimum stay > 1)

Example:

100.5

originalTotalPrice
number<double> | null

Total price without promotion applied (average per night if minimum stay > 1) Value is omitted if there is no promotion that day

Example:

120

offerCodeId
string<uuid> | null

id of the promotion applicable to that day Value is omitted if there is no promotion with an id that day

Example:

"3fa85f64-5717-4562-b3fc-2c963f66afa6"

status
enum<string>

Whether the best price can be booked directly or on request.

  • Available: The rate is available for booking
  • OnRequest: The hotel must confirm availability before booking
Available options:
Available,
OnRequest
additionalTaxes
number<double> | null

Taxes that must be collected in addition to the TotalPrice (due on site or at booking)

Example:

5.5

additionalFees
number<double> | null

Fees that must be collected in addition to the TotalPrice (due on site or at booking)

Example:

2

includedTaxes
number<double> | null

Taxes that are included in the TotalPrice

Example:

9.15

includedFees
number<double> | null

Fees that are included in the TotalPrice

Example:

1.5