What we design around your workflow
Booking looks simple until the real rules arrive: a service that needs a specialist and a particular room, cleanup time between clients, a class with limited places, a deposit for long appointments, a customer in another time zone. Generic schedulers cover the common case and leave the rest to staff, who fix clashes by phone. We first write down what each booking consumes and which rules apply, then build availability, payments, and reminders around that model.
Availability engine
Open times calculated from staff hours, resource capacity, service lengths, buffers, and the bookings already made.
Customer booking flow
Guest checkout or customer accounts with saved details, booking history, and self-service rescheduling and cancellation.
Deposits and refunds
Deposits or prepayment through your payment provider, with refunds and fees applied according to your policy.
Confirmations and reminders
Email and SMS messages with links to change or cancel, or WhatsApp through a booking bot.
Admin calendar
Day and week views by person, room, or location, where staff move bookings, block time, and add walk-ins.
Model what each booking consumes
A booking rarely ties up just one thing. A massage needs a therapist and a treatment room; a brake job needs a technician and a bay with a lift; a class needs an instructor and a fixed number of seats. Each service is defined by the resources it consumes, its duration, and the buffer before and after it for preparation or cleanup. Each resource has working hours, time off, skills, and capacity. Open times are then calculated from those rules and the bookings already made, instead of kept by hand as a grid of slots that drifts out of date.
Services as recipes
List the people, rooms, and equipment each service needs, so one booking reserves all of them together.
Buffers and lead times
Add preparation and cleanup time around services, and set how far ahead and how late customers can book.
Capacity where it fits
Let classes, tours, and group sessions accept several bookings up to a limit, instead of one per slot.
Decide each reservation in the database
Two customers can press Book for the same time in the same second, and code that checks availability before inserting lets both through. The decision belongs in the database: in PostgreSQL, an exclusion constraint on time ranges rejects any booking that overlaps another for the same resource, so the second customer sees fresh options instead. A pending booking holds its slot until a short deadline while the deposit is taken. Stripe notes that an online card authorization usually stays valid for about a week, so appointments further out take a deposit or a saved card rather than a hold.
Overlaps refused at the source
Let the database reject clashing bookings per resource, whatever the volume of simultaneous requests.
Holds that expire
Release a slot automatically when a checkout is abandoned, so unpaid carts do not block real customers.
Repeatable payment events
Confirm bookings from provider notifications keyed by event ID, so a resent event never creates a second booking or charge.
Primary sources
- PostgreSQL documentation: range types, constraints on rangesShows exclusion constraints that prevent overlapping reservations, including per-room reservations.
- Stripe: place a hold on a payment methodHow separate authorization and capture works, and how long card authorizations stay valid.
Handle time zones and calendar sync deliberately
Store each booking as an exact instant plus the time zone where it takes place, and display it in that zone. Daylight saving changes make some local times happen twice and others not at all, so recurring hours are expanded with the IANA time zone database, which tracks those rules as governments change them, rather than with fixed offsets. Staff calendars sync both ways: busy time in Google or Microsoft 365 blocks availability, and new bookings appear there. Google Calendar's push notifications say only that something changed and can occasionally go missing, so a scheduled incremental sync runs as well.
Instant plus place
Save the time in UTC with the venue's zone, so a booking stays correct when clocks change.
Local opening hours
Define hours in local time and expand them date by date, so a daylight saving change does not shift every slot.
Sync with a safety net
Pair push notifications with periodic incremental syncs, and renew notification channels before they expire.
Primary sources
- IANA: Time Zone DatabaseThe reference data for the history of local time worldwide, updated as political bodies change the rules.
- Google Calendar API: push notificationsHow calendar change notifications work, why channels expire, and why apps must cope with missed messages.
Build a booking flow everyone can complete
Date pickers and time grids are the hardest parts of a booking flow to make accessible, because they tempt designers toward mouse-only controls, tiny targets, and availability shown by color alone. WCAG 2.2 gives testable criteria for each problem. Every function works from a keyboard, color is never the only signal, pointer targets are at least 24 by 24 CSS pixels unless an exception applies, and details the customer already entered are not requested again. A timed slot hold warns before it runs out and offers a simple way to extend it. We test the flow with a keyboard and a screen reader, not only a mouse.
Keyboard and screen reader
Reach every date and time by keyboard, with its availability announced rather than only colored.
Extendable holds
Warn before a held slot expires and let the customer extend it in one step.
No repeated typing
Carry details forward between steps and from the customer's account instead of asking twice.
Primary sources
- W3C: Web Content Accessibility Guidelines (WCAG) 2.2The W3C Recommendation covering keyboard access, use of color, adjustable time limits, target size, and redundant entry.
Realistic limits and operator controls
Rules must be written down
The engine enforces only the rules you can state; unwritten habits, such as squeezing in a regular, need a staff override.
Sync covers connected calendars
Busy time kept in calendars that are not connected, or in systems without an API, cannot block availability.
Payments follow provider rules
Deposits, holds, and refunds work within your payment provider's supported methods, fees, and time limits.
Frequently asked questions
Why build a booking system instead of using an off-the-shelf scheduler?
Off-the-shelf schedulers suit simple appointments. A custom system earns its place when bookings combine several resources, follow unusual rules, need deep links into your own systems, or are themselves the product you sell.
Can the system enforce our cancellation policy?
Yes. Notice periods, fees, kept or refunded deposits, and reschedule limits are set per service and applied when a customer cancels online. Rules on cancellation charges differ by country, so confirm your policy with qualified counsel for the markets you serve.
Can customers also book through WhatsApp?
Yes. A WhatsApp booking bot can call the same availability engine through its API, so web and chat bookings draw on one calendar and the same rules.
Do you have booking work we can look at?
Yes. Our auto-service work page describes a live bilingual English and Bangla site for a hybrid and EV service center, whose booking form notifies the shop's team over Telegram on every request. A form that alerts staff suits businesses that confirm bookings themselves; live availability and deposits need the engine described here.
