Rates Calendar
Read your rate calendar night by night, and change it. For every room you get the price you set, whether the night is closed, how many beds are for sale, and the stay rules. You can change prices and open or close nights; the change is saved at once and sent to your booking channels.
Use it to show a calendar, to keep another system in step, or to manage your prices from a revenue tool. To price a specific guest stay, use Availability instead.
Read rates:
GET /api/v1/client/ratesUpdate rates:
POST /api/v1/client/rates
Related API Pages
Read rates
Endpoint
GET /api/v1/client/ratesQuery Parameters
start_date
string
Required. First night (YYYY-MM-DD).
end_date
string
Required. Last night, included (YYYY-MM-DD). Send the same date as start_date for one night.
room
string
Optional. A room ID, to get only that room.
Date rules. Dates are in your property's own time zone.
start_datecan be today, but not earlier.One request covers up to 366 nights.
end_datecan be up to 730 days ahead.
Example Request
Example Response (200 OK)
Response Fields
property_id
string
Your property ID.
currency
string
Your property's currency. All prices are in it.
start_date, end_date
string
The range you asked for.
rooms[].room_id
string
Room ID.
rooms[].name
string
Room name.
rooms[].sell_mode
string
per_person (sold by the bed), per_room or hybrid (sold as whole units).
rooms[].sell_count
integer
Guests one unit sleeps, for rooms sold as units. null when not set.
nights[].date
string
The night (YYYY-MM-DD).
nights[].price
integer
The price you set for that night, or null when none is set. Per guest for per_person rooms, per unit otherwise.
nights[].closed
boolean
true when the night is closed for sale. A night you never priced shows "price": null and "closed": true.
nights[].available
integer
Beds (or units) for sale that night: the same number your booking channels get.
nights[].min_stay
integer
Minimum nights for a stay arriving that night, or null.
nights[].max_stay
integer
Maximum nights for a stay arriving that night, or null.
nights[].closed_to_arrival
boolean
Guests can't arrive that day.
nights[].closed_to_departure
boolean
Guests can't leave that day.
Good to know
Prices are integers in minor units:
2500= 25.00.This is the price you set. The price a guest pays can move with your free-bed price rules; Availability gives that live price for a stay.
availablecounts free beds on its own. A closed night can still show beds, so checkclosedtoo.Every room is listed, including rooms hidden from your booking page and rooms that are switched off.
Error Codes
Errors come back as JSON with a code and a message:
400
bad_request
A date is missing, end_date is before start_date, start_date is in the past, the range is longer than 366 nights or goes past 730 days ahead, or room is not an ID. The message says which.
422
invalid_date_format
A date can't be read. Use YYYY-MM-DD.
404
room_not_found
room is not one of your rooms.
401 / 403 / 429
Missing or wrong API key, plan or origin not allowed, or too many requests. See Authentication.
500
server_error
Something failed on our side. Retry with backoff.
Update rates
Change prices and open or close nights, for one or more rooms, in one request. It's the same as saving on your Pricing page: the new prices are live on your booking page at once, and they're sent to your booking channels within moments.
Endpoint
Send an Idempotency-Key header, as for every change (see Authentication).
Example Request
Request Body
The body is {"updates": [...]}, a list of 1 to 100 changes. Each change is one room and one date range:
start_date, end_date
string
Required. The first and last night to change, both included (YYYY-MM-DD). Send the same date twice for one night.
days_of_week
array
Optional. Only change these days in the range: any of mon, tue, wed, thu, fri, sat, sun.
price
integer
The new nightly price in minor units: 3200 = 32.00. From 1 to 999999999. Per guest for per_person rooms, per unit otherwise, as in Read rates.
closed
boolean
true closes the nights for sale, false opens them.
Send price, closed, or both. What you leave out stays as it is.
Date rules. Dates are in your property's own time zone. start_date can be today, but not earlier, and end_date can be up to 730 days ahead.
All or nothing. If any change in the list is wrong, nothing is saved, and the error says which one (updates[2]: …). Two changes in one request can't touch the same room and night.
What gets saved
price
The new price. A night that was closed stays closed; a night that had no price yet is created open.
closed: true
The nights are closed. Their price is kept for when you open them again.
closed: false
The nights are opened. Every night must already have a price; otherwise send price too.
price and closed
Both are saved.
Example Response (200 OK)
saved_nights
integer
Room-nights in your request.
changed_nights
integer
Room-nights whose price or closed state actually changed.
sync
string
queued when the change is on its way to your booking channels, none when nothing changed.
How it reaches your channels
The new prices are saved before we answer, so your booking page and your next Read rates already show them.
Your booking channels get the change within moments, in the background. Long ranges are sent in parts.
Only nights that really changed are sent. Sending the same prices again is safe and doesn't send anything.
A room that isn't connected to a channel is saved and used by your booking page only.
Good to know
Up to 100 changes and 21,930 room-nights per request.
Your key's limit of 120 requests a minute applies. Send many rooms and ranges in one request instead of one request each.
A price is per night. The price a guest pays can still move with your free-bed price rules, as on your booking page.
Error Codes
400
bad_request
The body isn't {"updates": [...]}; a change has an unknown field, a missing room_id or date, a date before today or more than 730 days ahead, an end before the start, days_of_week that's wrong or matches no night, a price that isn't a whole number from 1 to 999999999, a closed that isn't true/false, or neither price nor closed; two changes touch the same room and night; too many changes or room-nights; or the Idempotency-Key header is missing. The message says which.
422
invalid_date_format
A date can't be read. Use YYYY-MM-DD.
422
price_required
You opened a night that has no price. Send a price with it.
404
room_not_found
room_id is not one of your rooms.
409
conflict
The room is sold together with another room on your booking channels; change the price on that room (the message names it).
401 / 403 / 429
Missing or wrong API key, plan or origin not allowed, or too many requests. See Authentication.
500
server_error
Something failed on our side; nothing was saved. Retry with the same Idempotency-Key.
Last updated