How to Handle Availability and Rescheduling in a Service Marketplace
How to model provider availability, prevent double bookings with holds and version checks, and set reschedule rules that survive contact with customers.
The short answer: rescheduling in a service marketplace works when availability is stored as rules with dated exceptions, every booking change goes through a short temporary reservation plus a write that cannot duplicate, and the policy states plainly who can move a booking, how late, and at what cost. Miss a layer and you get double bookings, refund disputes, and a support queue that grows faster than bookings.
Why is availability harder in a service marketplace than in a product store?
Time is perishable inventory. An unsold 3pm slot is worth nothing at 3:01pm, and it is sold by two parties who each keep a calendar. Product stock sits in one warehouse; service capacity lives in hundreds of personal calendars.
A product listing can sit unsold for a year and still be worth the same. A slot cannot be restocked, and it is usually sold by a provider who also keeps a Google Calendar, a paper diary, or a phone reminder your platform never sees. That outside calendar causes most scheduling failures, not your code. As a rough estimate, the scheduling layer takes two to three times longer to build than the checkout it feeds, because every rule you add carries an exception.
How should you model provider availability?
Store availability as a recurring weekly template per provider plus dated exceptions for holidays, travel, and one-off shifts. Keep timestamps in UTC with the provider's timezone identifier, and generate bookable slots on read rather than writing a row per opening.
Recurring templates with dated exceptions
A recurring template is one stored rule, such as Monday to Friday, 09:00 to 17:00, 30-minute jobs, that the platform expands into slots whenever someone searches. A dated exception overrides the template for a single day: a public holiday, a training morning, an extra Saturday shift. The pair handles nearly every real schedule without creating a maintenance problem.
Writing one database row per future slot looks simpler and does not scale. A provider with 30-minute slots over a year needs roughly 4,000 rows, and changing working hours means rewriting all of them. Rules plus exceptions stay small and remain correct when the provider changes their mind on a Tuesday.
Two storage details matter more than they look. Store timestamps in UTC, meaning Coordinated Universal Time, a single global clock so ordering and overlap checks are unambiguous. Attach the provider's IANA timezone, the standard name for a zone such as Europe/Lisbon or America/Denver, and evaluate recurring rules in that local time so a 09:00 slot stays at 09:00 when daylight saving time shifts the clock by an hour.
Buffers, travel, and location
Add a per-provider buffer between jobs, typically 15 to 30 minutes, and subtract it when you generate slots rather than after a booking exists. For mobile services the buffer also covers travel, which depends on the previous job's address. Distance estimates at search time are usually good enough; exact routing per booking is an optimization you can postpone.
| Availability model | Setup effort | Handles holidays and DST | Double-booking risk | Fits |
|---|---|---|---|---|
| One row per slot | High, roughly 4,000 rows per provider per year | Poor, rows go stale quickly | Low on paper, high once rows drift | Very small provider counts |
| Weekly template only | Low | Poor, no way to block one day | Medium | Simple, predictable schedules |
| Template plus dated exceptions | Medium | Good | Low | Most marketplaces |
| Two-way calendar sync | High, one connection per provider | Good if sync lag stays under a minute | Medium during sync lag | Providers who live in Google or Outlook |
What causes double bookings and how do you stop them?
Double bookings come from a stale cache, a checkout that never reserves the slot, and a provider who edited an external calendar. Prevent them with a short hold, a version check on write, and one shared booking record.
Four defences cover most cases.
- A hold window. A hold takes the slot off the market for a short period, typically 5 to 10 minutes, while the customer pays. It is a temporary claim, not a booking, and it expires on its own so abandoned checkouts do not lock inventory.
- Optimistic locking. Each bookable record carries a version number, and a write fails if the version changed between reading and saving, which turns a race into a retry instead of two confirmed bookings.
- Idempotency keys. An idempotency key is a unique ID the client sends with a request so a network retry returns the first result rather than creating a second booking. Mobile apps and payment flows retry more often than people expect.
- One write path. Provider dashboards, admin tools, imports, and the public booking page must all write through the same service. A single direct database update from an internal tool is enough to break the guarantees above.
How should rescheduling work when a booking has to move?
Let customers reschedule themselves up to a cut-off, usually 24 to 48 hours before the start, and send later requests to the provider or support. Each reschedule creates a new booking version instead of overwriting history.
The cut-off protects the provider's income, since an afternoon slot freed at short notice rarely resells. Inside the window, the request becomes a message to the provider with a response deadline, often 2 to 4 hours, after which support steps in. Show the rule at the point of booking, not only on a policy page nobody opens.
Two edge cases need explicit handling. If the provider cancels, the customer should get priority rebooking without paying a price difference, because the failure was not theirs. If a same-day emergency forces a move, allow an override that records who approved it and why.
| Reschedule policy | Who approves | Typical cut-off | Cost to the customer | Fits |
|---|---|---|---|---|
| Self-serve, automatic | Customer | 24 to 48 hours before start | Free for the first move, fee after | High-volume consumer services |
| Provider approval | Provider | None, but a response deadline applies | Free | Scarce or regulated specialists |
| Support handled | Operations team | Case by case | Free or partial fee | Small marketplaces, high-value jobs |
| Cancel and rebook | Customer | Any time | Full cancellation terms apply | Bespoke or scoped work |
What has to happen to payments, notifications, and records when a booking moves?
Move the authorization to the new time instead of capturing twice, queue one notification per party, and append an audit entry. The old slot returns to inventory only after the new one is confirmed.
An authorization is a hold placed on the customer's card, while a capture is the actual charge. For a reschedule, keep the authorization and update its details, then capture once the job is done. Capturing and refunding creates fees and confused customers, and partial refunds on a moved booking are where most disputes start.
Notifications should be queued rather than sent inline, so a mail outage cannot roll back a successful change. Send a cancellation notice plus a fresh invite instead of an update, because some calendar clients ignore updates and the provider ends up with two entries. An append-only audit log, one row per change that is never edited, settles arguments about who moved what and when.
Which parts should you build first?
Build the availability model first, then the write path with holds and version checks, then reschedule, then payments and notifications. Shipping the reschedule screen before the write path is safe is how marketplaces end up reconciling double bookings by hand for months.
- Availability rules and exceptions, with timezone handling from day one. Timezone bugs are cheap to avoid at the start and expensive to fix later.
- Search that computes slots on read, including buffers.
- The booking write path: holds, version checks, idempotency.
- Reschedule and cancel flows, with policy rules attached to the booking itself.
- Payments: authorization, capture, and a refund path for genuine cancellations.
- External calendar sync, if providers ask for it. Add it once the core is stable.
The scope above is the core of custom marketplace development, which is worth reading if you are budgeting a build rather than buying.
Which numbers tell you the scheduling layer is holding up?
Track fill rate, reschedule rate, and the share of bookings changed inside 24 hours of start. Add support tickets per hundred bookings; a rising count usually means a policy is unclear, not that the software is broken.
Fill rate is the share of offered slots that get booked. A healthy figure depends on the category, but many service marketplaces aim for roughly 60 to 70% on their busiest providers. A reschedule rate above roughly 10 to 20% of confirmed bookings points at a gap between listed availability and real availability.
Three more numbers are worth a dashboard: no-show rate, meaning the share of bookings where nobody turns up; provider acceptance rate for move requests; and the median time to fill a slot freed by a reschedule. That last one tells you whether freed inventory gets resold or quietly lost.
Frequently asked questions
How do service marketplaces prevent double bookings?
A hold window reserves the slot for 5 to 10 minutes while the customer pays, and a version check on the booking record rejects any write that raced with another. Together they mean the second customer sees the slot as taken rather than confirming it.
Who should pay when a booking is rescheduled?
Free moves inside the policy window are the norm, with a fee, often 10 to 20% of the job value, applying to late or repeated changes. When the provider initiates the move, the customer should never pay a fee or a price difference.
How far in advance should a reschedule cut-off sit?
Most service marketplaces set the cut-off at 24 to 48 hours before the start, because a slot freed closer to the time rarely resells. Categories with long travel or preparation times push it to 72 hours, while urgent trades often allow same-day changes with provider approval.
Does a marketplace need two-way calendar sync?
Two-way sync with Google or Outlook lowers the chance that a provider's outside commitment collides with a booking, but every connected calendar adds sync lag and new failure modes. Add it after the core booking path is stable, and treat sync as a source of blocks, not as the source of truth.