This is the last part of the series. The first twelve explained how a channel manager should work. This one is about how ours did not, at first. Every mistake below happened in our own system, with real hotels. We share them because each one is easy to make and costly to find. For each, we say what happened, what it cost, and the rule we keep now. Hotel names are left out.
1. We confirmed a booking our own system had refused
A password between two of our services was changed. Our system refused every booking with "not allowed". The code treated that like any other failure: after a few tries, it confirmed the booking so the feed could move on. One real booking was confirmed five refusals later and never stored.
The rule now: a refusal by our own system is a setup problem, never a bad booking. We do not confirm it. We alert a person and let the feed deliver it again. Part 7 explains the full order.
2. A far date opened at a price nobody chose
When we created a rate plan, the channel manager gave it a placeholder price for every date. Our own system later closed some far dates. When one of those closures ended, the date opened again at the placeholder. A guest booked a stay months ahead at a price the hotel had never chosen.
The rule now: nothing opens past the one-year window by accident. A new night opens only after its price has been set. A plan is created with a price a person chose, and the placeholder is never treated as a real price. Part 4 explains the nightly roll.
3. Hand-typed room counts lived forever
Staff typed room counts to hold rooms for groups. The numbers had no end. Months later, rooms were still held back for groups that had long gone, and some typed numbers kept working for a month after the hotel switched to automatic counts.
The rule now: every hand-typed number asks until when it holds, and a typed number on a single night holds only for that night. The screen shows who typed it and when it ends, as part 11 describes.
4. Staff cancelled no-shows
When a guest from a booking site did not arrive, staff cancelled the booking in our system. The booking site never heard about it, so it still charged commission on a guest who never came.
The rule now: a person cannot cancel a stay that came from that booking site in any of our apps. The front desk records a no-show instead. For other booking sites, a cancel needs a reason, and "the guest did not arrive" is always a no-show. A guard test fails the build if a new screen adds a way around it.
5. We treated "sent" as "held"
The channel manager sometimes accepts an update and then refuses part of it, with a warning. We read "accepted" as "done". A room count of 0 that a partner sent never reached a booking site, and nobody was told.
The rule now: a value is unchanged only while the channel manager was last seen holding it. A warning is read as a refusal of the values it names. Part 8 explains the read-back.
Sent is not held. Read back, and treat a warning as a refusal.
6. A change of markup sent stale prices
We believed that changing a booking site's markup left existing prices alone. It did not. The channel manager sent the whole calendar again with the new rule, and any stale prices went out with it. Our own decision note said the opposite, and we had to correct it.
The rule now: before changing a link or markup, make sure the base prices are right, and check the booking site afterwards. Part 6 explains why.
7. A cancellation waited behind its own booking and was dropped
Our system made each booking version wait for the earlier version of the same booking. Some older bookings had an arrival record from before this rule, with no "finished" mark. Their cancellations waited behind it for a day and were then dropped, with the room still sold.
The rule now: older records count as finished, and a record with no outcome stops blocking after an hour. When you add an ordering rule, check what it does to records written before the rule existed.
8. A repair script brought back a cancelled booking
We wrote a script to fill in missing bookings from the channel manager. It read an older version of one booking and restored it, although the guest had already cancelled.
The rule now: a repair script always works from the latest version of each booking, prints what it would change, and does nothing until a person runs it for real with a filter for one hotel or one owner.
9. A limit was printed wrongly in our own docs
Our public docs once said an update budget was 50 a minute when the code allowed 50 a day. Anyone who planned around the docs would have been refused.
The rule now: every limit lives in one table that the code itself enforces. The docs, the headers and the developer guide are all built from that table, and a test fails if a limit is written anywhere else.
Worked example
From mistake to test
In this example, take mistake 4. The rule is "no person cancels a stay from that booking site". The guard test lists every place in the code that can cancel a booking. Each one must call the same check before it writes anything.
A year later, a developer adds a "delete booking" button to a new screen and forgets the check. The build fails, and the test names the file. The mistake never reaches a hotel.
What all nine have in common
Looking back, the causes repeat:
- Order. Confirming before storing, sending before recording.
- Forever. Numbers and closures with no end.
- Trust. Reading "accepted" as "done", or a placeholder as a price.
- Old data. New rules that did not expect old rows.
None of them needed clever code to fix. Each needed a clear rule, written down, and a test that keeps it true.
- Bookings are stored before they are confirmed, and a refusal by your own system is never confirmed.
- No date opens for sale without a price someone chose.
- Every hand-typed number has an end.
- No-shows are recorded as no-shows.
- "Sent" and "held" are separate facts, and warnings are read.
- Repair scripts print first and act only on a person's word.
- Every limit lives in one place.
- Each rule has a test that fails the build.
Thank you for reading the series
Thirteen parts, from how a channel manager works to the mistakes above. If you are building your own, we hope it saves you a few of ours. If you would rather connect to one that already works this way, our channel manager and its API are open to PMS companies and hotel groups.
