Dockyard

When your booking system and website don't talk to each other

Guides

Dockyard · 5 min read

Your website lists this weekend's sessions. A customer clicks through, lands on a booking page that looks nothing like your site, and finds Saturday is already full. Someone on your team updates prices in the booking system and forgets the website, so the two disagree for a week. Customers email to ask whether a date is available, because the website can't tell them.

This usually happens because the two were set up separately. The website was built by one supplier, the booking system is a product from another, and nobody planned how they would share information. The result is two sources of truth that drift apart, and staff who spend time copying details between them.

There are a few ways to join them up, and some questions worth answering before anyone writes code.

Three ways to connect them

Link out to the booking page

The simplest option. Your website has "Book now" buttons that send people to the booking system's own page. Nothing to build, and nothing to break on your side.

The downsides are that visitors leave your site, the booking page may not match your branding, and your website still can't show availability. It suits businesses where booking is occasional, or where the booking system's own page is already good.

Embed the booking widget

Many booking systems offer a widget: a small piece of code you paste into a page, which shows their booking form inside your site, often in a frame. Visitors stay on your page, and the system handles payment and confirmation.

Widgets are quick to set up, but you have limited control over how they look and behave. They can be slow to load, awkward on phones, or hard to use with a keyboard or screen reader. Before choosing this route, try the widget on a phone and with the keyboard alone.

Build a calendar on your site using the booking system's API

An API (application programming interface) is a way for one piece of software to ask another for information in a structured form. If your booking system has one, your website can ask it for availability and show that in a calendar designed for your site, then pass people to the booking system to pay.

This takes more work, but your site can show live availability in your own design, highlight busy dates, and stay accessible. It is the option we chose for the website of The Magical Christmas Adventure, a seasonal attraction where nearly every visitor arrives wanting to book.

What to check before you start

If you go beyond a simple link, these are the questions to settle first. Ask your developer and your booking system provider.

Is there API access, and what does it allow?

Not every booking system has an API, and some only offer one on higher plans. Ask the provider:

  • Is there an API, and is it included in our plan?
  • What can it do: read availability only, or create bookings too?
  • Is there documentation we can share with our developer?
  • Are there limits on how often we can call it?

The answers decide which of the three options are possible.

Where will the API key live?

Most APIs use a key, a long password that proves the request comes from you. Anyone who has it may be able to read or change your bookings. It must stay on your web server, never in the code sent to visitors' browsers, where anyone can view it. Ask your developer directly: "Will our API key ever reach the browser?" The answer should be a clear no. On the attraction site we mentioned, the key sits on the server and the browser only ever talks to our own website.

Will pages stay fast?

If your website asks the booking system for availability every time someone opens a page, two things go wrong: pages wait on another company's server, and you may hit the API's limits on a busy day. The usual answer is caching, which means keeping a recent copy of the data on your server and refreshing it in the background. Visitors get an instant answer, and the booking system is asked at a steady pace. Agree how fresh the data needs to be. For most businesses, a few minutes old is fine, as long as the final booking step checks live availability.

What do visitors see when the booking system is down?

Every online service has outages. Decide in advance what your website should do when it can't reach the booking system. Options include showing the last good copy of availability with a note saying when it was updated, or hiding the calendar and showing a phone number. The wrong answer is a blank space or an error message. Ask your developer to show you this state before launch, not after the first outage.

Who gets told when something breaks?

If the connection fails at nine on a Saturday morning, someone should know before customers start ringing. Agree who receives alerts, how (email or a chat tool such as Slack), and what they should do. It also helps to be told when the problem clears. On the attraction site, the team is alerted when the booking system goes down, when it recovers, and when a new ticket type appears in the feed, so nothing changes without someone noticing.

Keep the rest in your hands

A connection shouldn't mean a developer is needed for every small change. Ask which details your team can edit themselves, such as season dates, prices shown on the site and opening hours, and which come from the booking system automatically. The aim is one place to change each thing, so the two never disagree.

Three questions to ask this week

  1. Ask your booking system provider whether there is an API on your plan, and for a link to its documentation.
  2. Ask your web developer which of the three options they would recommend, and why.
  3. Ask both: "What will our customers see if your system is unavailable, and who will know?"

Those answers will tell you how much work is involved and where the risks are. If you'd like us to look at your setup, get in touch.