اس صفحے کا ترجمہ ابھی نہیں ہوا، اس لیے آپ انگریزی ورژن پڑھ رہے ہیں۔
Rates and restrictions
Read each room type's price and restrictions by date, and set them: per date, or over a range of dates at once.
These operations work on the hotel's rate grid, the same grid its revenue page shows: a price per room type and date (and its rate plans'), and restrictions: closed, minimum and maximum stay, closed to arrival and closed to departure. A booking made anywhere (the booking page, the front desk, a channel, your app) is priced and checked by it. Each change is kept on the hotel's rate history as your app's, and can be undone there.
Read the grid
/properties/{property_id}/ratesrates:readOperation rates.grid14.curl "https://app.chatbeds.app/partner/v1/properties/19306340-c7cf-465a-93d3-0b7873a7e85d/rates?start=2026-12-20&days=7" \
-H "Authorization: Bearer cbk_••••"The answer has the dates, and for each room type its price per date with where it came from (the base price, a season, a rule, a price set by hand), its restrictions per date, and its rate plans' prices. Prices are in the property's currency.
Set prices and restrictions
/properties/{property_id}/ratesrates:writeOperation rates.setUp to 2,000 cells at once, recorded as one change. Each cell names a room type and a date, and optionally a rate plan (a plan's own cell holds restrictions only; its price follows the plan).
{room_type_id, date, rate_plan_id?, price?, closed?, min_stay?, max_stay?, cta?, ctd?}.| Field | Meaning |
|---|---|
price | The night's price. null clears it: back to the hotel's usual rate |
closed | true: nothing can be booked that night |
min_stay, max_stay | Nights, 1 to 365. null clears |
cta | Closed to arrival: no stay may start that night |
ctd | Closed to departure: no stay may end that morning |
A field left out is left as it is.
curl -X POST "https://app.chatbeds.app/partner/v1/properties/19306340-c7cf-465a-93d3-0b7873a7e85d/rates" \
-H "Authorization: Bearer cbk_••••" -H "Content-Type: application/json" \
-H "Idempotency-Key: rm-sync-2026-11-05T10:00" \
-d '{"edits": [
{"room_type_id": "511024bc-2687-47dc-b0e3-cd03c31522e1", "date": "2026-12-31", "price": 240, "min_stay": 2},
{"room_type_id": "511024bc-2687-47dc-b0e3-cd03c31522e1", "date": "2027-01-01", "cta": true}
]}'{
"change": {
"id": "3b2e9d71-5c0a-4f8e-a1d6-7e4c9b2f0a35",
"kind": "partner",
"summary": "Rates from RevenueMaster",
"channel": "PARTNER",
"actor_name": "RevenueMaster (partner API)",
"created_at": "2026-11-05T10:00:03.118207+00:00",
"reverted_at": null,
"reverts_change_id": null
}
}change is null when nothing was different.
Set a range of dates
/properties/{property_id}/rates/rangerates:writeOperation rates.setRangeOne change over a range of dates (and, if you like, only some weekdays) and room types: a price, a change by a percent or an amount, restrictions, or clearing them.
start.0 (Monday) to 6 (Sunday).requests.post(f"{BASE}/properties/{pid}/rates/range", headers=HEADERS, json={
"room_type_ids": [deluxe, suite], "start": "2026-12-01", "end": "2026-12-31", "weekdays": [4, 5],
"adjust_percent": 15})
requests.post(f"{BASE}/properties/{pid}/rates/range", headers=HEADERS, json={
"room_type_ids": [deluxe, suite], "start": "2026-12-24", "end": "2026-12-24", "closed": True})end before start answers 422.
Channels follow
When the hotel uses ChatBeds' channel manager, the new prices and restrictions are sent on to the booking sites it is connected to, as when the hotel changes them itself.
کچھ بنا رہے ہیں؟
Rooms and rates
Read a property's room types, rate plans, rooms, extras and policies, the catalog you show guests before they book.
Policies and booking rules
Create and change the hotel's cancellation policies, and its booking rules: deposit, children, pets, smoking, check-in and check-out times, early and late charges, and a rate plan's own rules.