This is part 2 of our series for people who build a channel manager, or connect their own PMS to one. Part 1 showed the whole picture. This part covers the three things every other part depends on: the property, its room types and its rate plans.
The three building blocks
Think of a small hotel with 20 rooms.
| Level | What it is | Example |
|---|---|---|
| Property | The hotel | The Alder House |
| Room type | A kind of room, with a number of rooms | Deluxe Double, 12 rooms |
| Rate plan | One way to sell a room type | Deluxe Double, room only, 2 guests |
The property holds the facts that do not change night by night: its name, address, time zone and currency. The time zone matters more than it looks. "Tonight" for a hotel in Goa is not "tonight" for a server in London.
A room type holds the number of rooms. This number is a ceiling. If a hotel has 12 Deluxe Doubles, the channel manager should never sell 13, even when someone sends 13 by mistake.
A rate plan holds what the guest gets and the price for each night. Most of your daily work happens here.
What a rate plan is made of
A rate plan answers four questions for the guest.
- Which room? Every rate plan belongs to one room type.
- How many guests? The price for 1 guest is often lower than for 2. Part 5 of this series covers this.
- Which meals? Room only, breakfast, or more.
- What if I cancel? Free cancellation, or a lower price with no refund.
The meal plan has short codes that many booking sites use, especially in India.
| Code | Meaning | Common name |
|---|---|---|
| EP | Room only | European Plan |
| CP | Room and breakfast | Continental Plan |
| MAP | Breakfast and one more meal | Modified American Plan |
| AP | All three meals | American Plan |
In our system, one rate plan is one room type, one meal plan and one number of guests. So a Deluxe Double sold room only and with breakfast, for 1 or 2 guests, is four rate plans. That sounds like a lot. It makes mapping and prices simple, because every plan on a booking site matches exactly one plan of ours.
Mapping: the bridge to each booking site
Every booking site has its own room types and rate plans, with its own ids. Your channel manager must know which of yours matches which of theirs. This list of pairs is called mapping.
| Your side | Booking site side |
|---|---|
| Deluxe Double | Booking site room id 48213 |
| Deluxe Double, breakfast, 2 guests | Booking site rate id 77120 |
Three rules have saved us a lot of trouble.
- Store both ids, always. Never match by name. Names change, and two sites can use the same name for different rooms.
- A room that is not mapped does not sell. Show the hotel which rooms on each site have no pair yet.
- Booking sites add rooms of their own. One large Indian booking site creates an extra "hourly" version of a room that the hotel never made. We keep a small table of such names, so a booking for that room still finds the right room type.
Our post on what a channel manager is explains why each site needs its own connection.
Every plan needs a real price
This is the most expensive lesson in this post.
When a rate plan is created, it needs a price for every night it will sell. Early on, our system gave each new plan a placeholder price of ₹999 until the hotel set a real one. Most hotels set prices for the next few months and never looked at nights a year away.
One evening, a guest booked a large suite for a night more than a year ahead. The price on the booking site was ₹999, the placeholder. The real price was many times more.
We fixed it in four ways.
- Every rate plan now has a standing price, which is the hotel's own normal price for it.
- A night is priced before it opens for sale, never after.
- When the standing price changes, any placeholder left on the channel manager changes too.
- A hotel can choose to open new nights closed, until it has looked at their prices.
A placeholder price is a real price that nobody has seen yet.
Our post on rate parity explains why one wrong price on one site costs more than one booking.
A simple data model to start from
You do not need many tables to begin. This is the shape we would build again.
| Table | Holds | Key fields |
|---|---|---|
| property | The hotel | id, name, time zone, currency |
| room_type | A kind of room | id, property id, name, number of rooms, maximum guests |
| rate_plan | One way to sell a room type | id, room type id, name, meal plan, guests, refundable, standing price |
| channel_mapping | The pairs for each booking site | booking site, your id, their id, kind (room or rate) |
Prices and rules for each night live in their own tables, one row for each rate plan and date. Part 3 explains what those rows hold, part 4 how many dates they cover, and part 10 shows the full schema.
Try it on a test hotelCreate room types and rate plans by API on a free test hotel, and see how a booking site would receive them.Sign up as a partnerWhat to check in your own system
- Every room type has a number of rooms that matches the hotel.
- Every rate plan belongs to one room type and has one meal plan and one number of guests.
- Every rate plan has a real standing price, and no placeholder.
- You store the booking site's ids next to your own, for every room type and rate plan.
- You can list the rooms and rates on each booking site that have no pair yet.
The next part explains availability, rates and restrictions: the switches that decide what sells each night. Our channel manager page shows how these pieces look in a working product.
