A guest taps "Book" on a booking site. A few seconds later the hotel's front desk should see the booking, and the room should be gone from every other site. Between those two moments the booking passes through several systems, and each one can fail. Part 1 drew the whole map. This part follows one booking all the way, and explains the one rule that keeps bookings from being lost.
The path of one booking
Every booking follows the same path.
- The guest books on the booking site.
- The booking site sends the booking to the channel manager.
- The channel manager puts it on a feed for the hotel's system.
- Your system reads it from the feed.
- Your system stores it and updates the room counts.
- Your system acknowledges it.
Steps 5 and 6 are where most mistakes happen. The order matters more than anything else in this part.
Read the feed on a timer
There are two ways to learn about a new booking: read the feed on a timer, or wait for the channel manager to call you.
Our advice is to do both, with the timer in charge. We read the feed every minute. A webhook, if your channel manager sends one, is a nudge to read sooner. It is not the only way a booking can arrive, because a call can be missed when your server restarts or the network drops. The feed is still there when you come back.
Store first, then acknowledge
This is the rule that matters most.
Never acknowledge a booking you have not stored.
An acknowledgement removes the booking from the feed. If you acknowledge first and then fail to store it, the booking exists on the booking site and nowhere in your system. The guest arrives, and the hotel has no record of them.
So the order is fixed:
- Read the booking.
- Store it, and take the room off sale in the same step.
- Send the new room counts to the channel manager.
- Acknowledge it.
If step 2 fails, stop. The booking stays on the feed, and you read it again next time. If step 4 fails after a good store, that is safe: you will read the same booking again, and your system must see that it already has it and do nothing twice.
A refusal is not a bad booking
Sometimes your own system refuses the booking. A password between two of your services was changed, and every call now gets "not allowed". The booking is fine. Your setup is not.
If your code treats every failure the same, it may give up and acknowledge after a few tries. That drops a real booking. We learned this the hard way: a booking was refused five times for this reason, then acknowledged, and nobody saw it until the guest was due.
So treat a refusal as a setup problem. Do not acknowledge. Alert a person, fix the password, and let the feed deliver the booking again.
When a booking keeps failing
Some bookings fail for a real reason, such as a room type your system does not know. One stuck booking must not block every booking behind it.
Our rule:
- Try again on every read. Most failures fix themselves within minutes, for example during a deploy.
- After 30 failed tries in a row, keep a full copy of the booking in a safe place.
- Then acknowledge it, so the feed moves on.
- Email a person, and keep sending the stored copy to the hotel's system every hour until it is taken.
The copy matters. Some channel managers hide a guest's phone, email and notes once a booking is acknowledged, to protect the guest. After the acknowledgement you cannot read them again. So no copy means no acknowledgement.
Changes and cancellations
A booking is not a single message. It is a series of versions: the new booking, then perhaps a change of dates, then perhaps a cancellation. Each one arrives on the feed as a new version of the same booking.
Handle them in order, by booking. A cancellation that arrives before your system has the booking should wait until the booking is there, not be thrown away. A change should replace the old dates and give back any nights that are no longer used.
Worked example
A change of dates
In this example, a guest books 10 to 12 March. Your system stores it and takes one room off sale on 10 and 11 March.
The guest then changes to 11 to 13 March. Your system replaces the stay, gives back the room on 10 March and takes one off on 12 March. Night 11 does not change. The new counts go to the channel manager, then the change is acknowledged.
A no-show is not a cancellation
A guest who booked and did not come is a no-show. Booking sites treat it very differently from a cancellation, often for commission and payment. If staff cancel a no-show in your system, the booking site may never hear of it, and the hotel may still be charged.
Give staff a separate "no-show" action, and do not let them cancel a booking that came from a booking site without a clear reason. Our channel manager API sends a separate event for a no-show for this reason.
When the hotel is already full
Sometimes a booking arrives for a night with no rooms left. Two sites sold the last room at the same moment.
Store it anyway. A booking the guest has paid for is real, even if the hotel is full. Mark it clearly as an overbooking so a person can move a guest or call the booking site. Never refuse or drop it on your side.
- You read the feed on a timer, and a webhook only makes you read sooner.
- You store a booking and take the room off sale before you acknowledge.
- A refusal by your own system never leads to an acknowledgement.
- Reading a booking you already have changes nothing.
- A stuck booking is copied in full before it is acknowledged, and a person is told.
- Changes and cancellations are handled in order, by booking.
- No-shows are recorded as no-shows, not cancellations.
- An overbooking is stored and flagged, never dropped.
What to check in your own system
- Every booking is stored before it is acknowledged.
- A failed call caused by your own setup never acknowledges a booking.
- Every booking version has an id, and reading it twice is harmless.
- You keep a full copy of a booking before it is acknowledged.
- You can show staff every booking still waiting, with how long it has waited.
Part 8 explains how a PMS should send room counts to the channel manager, so the room you just sold is gone from every site. See our channel manager for the product.
