Appointment Booking Web Apps: What a Custom Booking System Has to Handle
In this article
An appointment booking web app is a booking flow built into your own website. It shows live availability, takes a deposit or full payment, sends the confirmation and the reminders, and makes sure two customers can never take the same slot.
A generic scheduling tool does the first and last of those well enough for one person with one calendar. You need a custom booking app when the rules of your business do not fit the generic model. That means bookings that depend on rooms or equipment as well as people, staff who travel between jobs, or deposits that change with the date or the customer. It also means memberships, or a booking that is the product you sell.
This guide sets out what a custom booking system has to handle, in the order we work through it on a build. That order is availability, concurrent requests, payment, and the confirmations, reminders and admin tools that keep the phone quiet. We have built this for Apple Tree Stays, where groups book luxury accommodation directly.
If you are still deciding whether you need an app at all, start with what a web app is and who needs one.
When a generic scheduling tool is enough
Calendly, Acuity, Setmore and the booking modules inside till systems cover a familiar case well. That case is one person or a small team, fixed-length appointments, one calendar each, and either no payment or payment in full. If that describes you, use one of them and put the link on a fast website; our guide to booking and local SEO for wellness websites shows that approach. A custom build earns its keep only when the generic model starts to fight the business:
- A booking needs more than one thing to be free: a therapist and a treatment room, a doctor and an X-ray machine, an instructor and a bay.
- Staff travel between appointments, so the gap needed depends on where the previous job was.
- The price or the deposit depends on the day, the time, the length or who is booking.
- Customers hold memberships, credits or block bookings that change what they can book and what they pay.
- You export bookings into a spreadsheet to run the business, because the tool's reports do not match how you work.
- The booking is the whole product, so a "powered by" page is most of what your customer sees of you.
Three or more of those and you are past what configuration can fix. That is the point at which we would scope it as one of our web platform builds. It is quoted after a short call and built in stages, with the single booking journey first.
Modelling availability
Availability is where booking systems go wrong, because "is 10am free?" is really three questions. Is every resource the booking needs free, is the business open and staffed, and is there enough gap on either side?
Resources, not just people
Model every bookable thing as a resource: a person, a room, a bay, a machine, a property. A booking reserves one or more resources for a span of time, and a slot is offered only when every resource it needs is free. For a clinic with five doctors and two X-ray machines, an X-ray appointment checks a doctor's diary and a machine's diary. If either is taken the slot is not shown rather than failing at the end. A dental practice booking online has the same shape: the dentist, the surgery and the appointment type all have to line up.
Opening hours, buffers and travel
Each resource gets its own hours per weekday, plus exceptions for bank holidays and one-off closures. Buffers are gaps the customer never sees: cleaning time between bay sessions, a changeover day between stays, set-up time before a class. For a mobile business the buffer is travel. The scheduler takes the location of the previous appointment and asks a routing service such as the Google Maps Distance Matrix API for the driving time. It then only offers the next customer slots that leave room to get there.
Slots or spans
A simulator bay at The Golf Cabin runs in fixed-length slots. A property at Apple Tree Stays is booked by the night, with check-in days and minimum stays. A treatment runs for a length that depends on the service chosen. Each shape needs a different availability query, so decide early which one you have. Whichever it is, store start and end times as UTC timestamps and display them in UK time. A system that stores local times loses or duplicates an hour when the clocks change.
No double bookings under concurrent requests
Two customers open the same 7pm slot and both press "book" within the same second. If the code checks the slot is free and then writes the booking as two separate steps, both bookings succeed. This is the bug most cheap booking plugins ship with, and the first thing we test on a build. The fix has three layers.
- A database constraint as the last line of defence. For fixed slots, a unique constraint on resource and start time. For spans, a PostgreSQL exclusion constraint that refuses two rows for the same resource whose periods overlap. The database enforces this even if the application code has a bug.
- One transaction that locks the resource. The request locks the resource row, checks availability and inserts the booking inside a single transaction. The second request waits, then sees the slot is gone and gets a clear message rather than an error page.
- A hold with an expiry. When a customer starts paying, the slot is held for a few minutes. If they abandon the checkout the hold lapses and the slot returns to sale.
In Django on PostgreSQL the constraint is declared on the model, so it lives in version control and in the migration history:
from django.contrib.postgres.constraints import ExclusionConstraint
from django.contrib.postgres.fields import DateTimeRangeField, RangeOperators
from django.db.models import Q
class Booking(models.Model):
resource = models.ForeignKey(Resource, on_delete=models.PROTECT)
period = DateTimeRangeField()
status = models.CharField(max_length=20)
class Meta:
constraints = [
ExclusionConstraint(
name="booking_no_overlap",
expressions=[
("resource", RangeOperators.EQUAL),
("period", RangeOperators.OVERLAPS),
],
condition=Q(status__in=["held", "confirmed"]),
),
]
The constraint needs the btree_gist extension, which Django adds through a migration. Cancelled bookings are excluded by the condition so a freed slot can be rebooked. We prove it works with an automated test that fires two requests at the same slot at the same moment and asserts that exactly one booking row exists afterwards.
Deposits, payments and refunds
Most booking apps we build take payment through Stripe, and the order of events matters more than the payment form. The slot is held, the customer pays, Stripe tells the server the payment succeeded, and only then is the booking confirmed. Do not confirm when the customer is redirected back to your site: they may close the tab before the redirect, and the payment still went through. Confirm from the webhook, and make the handler idempotent so a retried webhook cannot create a second booking or send a second email. How webhooks work covers that flow in detail.
The money rules are worth writing down before any code exists, because each one becomes a branch in the checkout:
- Full payment, a deposit with the balance due later, or a card held for no-shows.
- The deposit by service and by customer: returning customers can skip it, new ones cannot.
- The cancellation window and how much is refunded inside and outside it.
- Peak pricing by day and time, so an evening or weekend slot costs more without anyone changing it by hand.
- Memberships and credits that prepay for sessions. A golf simulator venue that sells memberships alongside pay-as-you-go bay bookings needs a checkout that knows who is a member before it quotes a price.
Keep those rules in data the owner can edit from the admin, not in code. The practical side of card payments on a Django site, including Apple Pay and Google Pay, is in integrating payments the right way. A booking checkout uses the same parts.
Confirmations, reminders and the admin side
The booking is not finished when the payment lands. The customer needs an immediate confirmation email with a calendar file attached and a link to manage the booking. A reminder the day before cuts no-shows, and for short sessions a second one an hour or two ahead helps. SMS through a provider such as Twilio works better than email for that one. Reminders go out from a scheduled task queue. Customers should be able to reschedule or cancel within your rules, through the same locking path as a new booking, with staff told when they do.
Staff need:
- A day and week view per resource that works on a phone.
- Block-outs for holidays and maintenance.
- Manual bookings for customers who phone (through the same checks as online ones).
- Payment status and no-show marking.
- An export of bookings and takings for the accountant.
Generic tool, marketplace or custom build
| Attribute | Generic scheduling tool | Booking marketplace | Custom booking app |
|---|---|---|---|
| Unusual rules (resources, travel, memberships) | Limited to what settings allow | Fixed by the marketplace | Built to your rules |
| Where the customer books | Their page, your logo | Their site, next to your competitors | Your domain and design |
| Who holds the customer data | The tool, with export | The marketplace | You, in your own database |
| Ongoing cost shape | Subscription, often per seat | Commission on each booking | Hosting and maintenance only |
Questions people ask
How much does a custom booking system cost?
We do not publish a figure for platform work because the range is too wide to be honest about. It is quoted after a short call, in writing, and built in stages, the first being one complete booking journey.
Can a custom booking app sync with Google Calendar or Outlook?
Yes. Pushing confirmed bookings into staff calendars through the Google Calendar or Microsoft Graph APIs is straightforward. Two-way sync, where an event typed into a personal calendar blocks a slot online, is more work and needs a rule about which system wins: the booking app.
What stops two people booking the same slot at once?
A database constraint that refuses overlapping bookings for the same resource, a transaction that locks the resource while the booking is written, and a short hold during payment. All three, not one of them.
Where to start
Write the rules down before you talk to anyone about building it. That means the resources, the hours and exceptions, the buffers, the prices and deposits, the cancellation terms, and what the customer and the staff should receive and when. Most of a booking system is those rules; the code is the easy part once they are clear. Our web app requirements planning guide has an outline you can fill in, and a filled-in version is the best thing you can bring to a first conversation.