A booking pricing rules engine that explains every quote Price, availability and eligibility in one flow.
Write rules as a trigger, conditions and actions. Scope them to a type, a single bookable or a property. Every quote and every missing slot comes back with the rules that shaped it.
Entities.
Your domain, synced. Doctors, rooms, courts, cars — anything.
Availability.
Ask when something can be booked. Get the real answer.
Rules.
Pricing and eligibility that follow your business logic.
Quotes.
Know the price before the booking exists, with reasons.
Lifecycle.
Create, confirm, reschedule, cancel. One API, safe by default.
No double-booking.
Locks and slot holds, so every slot has exactly one owner.
Booking search.
Your entities, indexed. Search by price, distance and real availability.
AI recommendations.
Suggests the best booking using your rules, prices and availability.
From one sentence to a paid booking. And the insight that brings the next one.
Your marketplace, your brand. Slotr runs search, availability, pricing, payment holds and the console behind it.
Pricing logic starts as three if-statements. Then it runs your checkout.
- 01
Rules hide in the checkout handler
Lesson packs, weekend surcharges and early-bird discounts begin as a few lines next to the payment call. A year later nobody knows which branch runs first, and every discount change needs a code review and a deploy.
- 02
Every provider wants an exception
One instructor charges more when the learner uses her car, another never teaches motorcycle lessons on Sundays. Per-provider logic in code doesn't scale, and per-provider config tables keep growing columns until nobody trusts them.
- 03
Price and availability drift apart
Checkout enforces a 24-hour notice period that search has never heard of. A customer picks a slot that looked open and gets rejected at payment. When the same rule lives in two places, the two copies eventually disagree.
- 04
Eligibility is a rule too
A first-time learner shouldn't book a highway lesson, and a doubles court needs four players. Neither changes the price, but both decide who can book what, and they usually end up as validation code scattered across clients.
- 05
Nobody can explain the total
A customer disputes a $212 charge. Support asks a developer, the developer reads the code, and an hour later someone finds a holiday surcharge stacked on a pack price. Without a breakdown, every price question becomes a ticket.
- 06
Stacking order changes the answer
Ten percent off and then a $20 surcharge is not the same total as the surcharge first. Once rules combine, you need a predictable evaluation and a record of which rules matched and which were skipped.
One quote, four rules, one readable result. Some change price, some decide if it's bookable.
Rules as advanced as your business.
Build pricing and availability as a flow. Every quote follows it.
Works for anything bookable.
Clinics, salons, gyms, rentals, coworking. You bring the entities — Slotr makes them bookable.
One slot, one booking.
Two people try to book the same slot at the same moment. One gets it. The other gets a clear answer.
Answers that come with reasons.
Every price shows how it was built. Every missing slot says why it’s missing.
Rules are data, not deploys. Create them from code, the Console or an agent.
Drop it into your product. No per-provider accounts, no iframes — your database stays the source of truth.
await slotr.rules.create({
appliesTo: { type: "studio" },
when: [{ weekday: "fri" }, { hour: { gte: 17 } }],
then: { price: "+25%" }
});await slotr.rules.create({
appliesTo: { bookable: "st_12" },
when: [{ notice: { lt: "24h" } }],
then: { available: false, reason: "Needs 24 h notice" }
});const quote = await slotr.quotes.create({
bookable: "st_12",
start: "2026-11-06T18:00:00Z",
hours: 3
});
// → { total: 191.25, breakdown: [...] }How to design booking rules that stay maintainable
What a booking pricing rules engine does
A booking pricing rules engine decides what a booking costs and whether it is allowed, using rules you define instead of code you redeploy. In Slotr every rule has the same shape: a trigger such as a new quote, conditions such as day, time, duration, lesson count or participant attributes, and actions that change the price, block the slot or make the request ineligible.
Because search, quotes and bookings all call the same engine, a rule is written once and enforced everywhere. A customer never sees a price in search that checkout later refuses.
Scope rules to a type, a bookable or a property
Most platforms need three levels. Type-wide rules set the defaults, such as a weekend surcharge for every court. Per-bookable rules handle exceptions, such as one tutor who offers a cheaper trial. Property rules key off attributes, such as "car provided by learner" or "indoor court", so a rule follows the attribute rather than a list of IDs.
Keeping exceptions at the bookable level is what lets you add the thousandth provider without a new column or a new branch. Bookables are unlimited, and each one can carry its own rules and properties.
Treat availability and eligibility as rules
Notice periods, minimum durations, blackout dates and skill requirements are rules in the same flow as discounts. Modeling them together means the answer to "why can't I book this?" comes from the same place as "why does this cost $191.25?". Slotr returns a reason for missing slots just as it returns a breakdown for prices.
Where the idea came from
Slotr started with driving-instructor pricing. A lesson's price depended on the license category, whose car was used, how many lessons were booked and the date. The existing tools charged per provider and weren't built to express pricing like that, so the rules ended up in application code, one special case at a time. The Rules Engine is the version of that logic we wished we had.
Pitfalls to avoid
Avoid rules that reference each other by name; write conditions against data instead. Prefer percentage and fixed adjustments you can read in a breakdown over formulas nobody can audit. And test a rule against real queries before turning it on, which is what the Console's Query view is for. A rule that looks right in isolation can still collide with a pack discount or a holiday surcharge.
Questions about the Rules Engine
What is a booking pricing rules engine?
It is a service that calculates the price and validity of a booking from configurable rules rather than hard-coded logic. In Slotr each rule combines a trigger, conditions and actions, and the result is a quote with a line-by-line breakdown of what changed the total.
Can each provider or listing have its own pricing rules?
Yes. Rules can apply to a whole type, to one bookable or to bookables with a given property. A single instructor, court or studio can carry its own discounts, surcharges and limits, and adding providers doesn't add seats or cost per provider.
Can a rule make a slot unavailable instead of changing the price?
Yes. Conditional availability rules can block a slot, for example when notice is too short or a minimum duration isn't met, and booking eligibility rules can reject a participant who doesn't meet a requirement. Both return a readable reason.
How does dynamic pricing for bookings work in Slotr?
Dynamic pricing is expressed as rules whose conditions read the request: day of week, time of day, lead time, duration, quantity or participant attributes. When the conditions match, the action adjusts the price by a percentage or fixed amount, and the breakdown shows each step.
Is there a quote engine API?
Yes. Call quotes.create with a bookable and the booking details, and Slotr returns the total plus a breakdown of every rule that applied. You can show the breakdown at checkout or keep it for support and reporting.
Can AI coding agents create rules?
Yes. The Slotr MCP server exposes a slotr_create_rule tool, so an agent in Lovable, Cursor or Claude Code can create a custom booking rule from a description like "10% off packs of five lessons" without you writing the rule by hand.
Do I have to redeploy to change a rule?
No. Rules are stored in Slotr, not in your codebase. Create or edit them through the API or in the Console, where your ops team can adjust a discount without involving engineering.
Can I try the Rules Engine now?
Not publicly yet. During pre-launch, access to the Rules Engine comes through the waitlist. Join it and describe the pricing quirks of your platform; real examples help us choose which conditions and actions to support first.
Move pricing out of your codebase. Keep the receipt.
Join the waitlist for early access to the Slotr Rules Engine.