Business details
So a website never stores its own copy, GET /public/booking/info also returns business: name, phone, email, website, time zone, logo, brand colour, social links (Facebook, Instagram, Nextdoor and others), weekly opening hours by day, closed days and extra opening times for the next 120 days, the area a travelling business covers (miles, and towns with no trip fee), and the full cancellation and reschedule policies. Each service also has includedItems (its "What's included" list) and bookingCharge (the deposit or full payment due when booking, in cents/pence). There's no card surcharge for the customer; use POST /public/booking/quote for the exact amount before payment.
{
"name": "Rapid Wrench",
"phone": "+18045550123",
"website": "https://getrapidwrench.com",
"timezone": "America/New_York",
"brandColour": "#2563eb",
"socialLinks": { "facebook": "https://facebook.com/rapidwrench" },
"hours": [{ "day": 1, "name": "Monday", "closed": false, "windows": [{ "open": "08:00", "close": "17:30" }] }],
"closedDates": [{ "date": "2026-12-25", "reason": "Christmas" }],
"serviceArea": { "radiusMiles": 25, "freeTripTowns": [], "freeTripMiles": 3 },
"policies": { "cancellation": "…", "reschedule": "…", "acceptanceRequired": true, "version": "054dae3d" }
}Services
GET /public/booking/info?apiKey=… returns the business's timezone and every active bookable service with its category, price, duration, payment mode and option groups. All availability calculations happen in the business's own timezone — dates you send are YYYY-MM-DD in that timezone, not UTC.
{
"id": "svc_1",
"name": "Haircut & Style",
"durationMinutes": 45,
"price": 35,
"currency": "gbp",
"paymentMode": "deposit",
"depositAmount": 10,
"categoryId": "cat_hair",
"optionGroups": [
{
"id": "grp_1",
"name": "Add-ons",
"required": false,
"selectionMode": "multiple",
"choices": [
{ "id": "choice_1", "name": "Beard trim", "priceDelta": 8, "durationDeltaMinutes": 10 }
]
}
],
"imageUrls": ["/objects/uploads/..."],
"recommendedProducts": [
{ "id": "prod_123", "name": "Ceramic Mug", "price": 14.5, "imageUrl": "https://.../a.jpg", "badge": null }
],
"recommendationLinks": [
{ "kind": "collection", "targetId": "col_9", "slug": "helix-jewellery", "label": "Jewellery for this piercing", "url": "https://www.example.com/collections/helix-jewellery" },
{ "kind": "product", "targetId": "prod_123", "slug": null, "label": "Aftercare", "url": "https://www.example.com/shop/prod_123" }
]
}Service options
Option groups are single- or multi-select add-ons (selectionMode: single or multiple, with minSelections/maxSelections). Each choice can shift both price (priceDelta) and duration (durationDeltaMinutes) — selecting a longer add-on changes which slots are actually available, so always pass selectedChoiceIds when fetching slots (see below) rather than assuming the base duration.
Availability
GET /public/booking/slots takes serviceId, date, and optionally agentId and selectedChoiceIds, and returns the actually-bookable start times for that day — already accounting for existing bookings, the service's real duration with any selected add-ons, and staff availability rules. There is no separate "business hours" endpoint to reimplement this against: the slots endpoint is the single source of truth.
[
{ "startsAt": "2026-09-21T09:30:00.000Z", "endsAt": "2026-09-21T10:15:00.000Z", "label": "09:30" }
]Recommended products
A service may carry an optional, merchant-curated recommendedProducts list — "you might also like" items to show alongside the booking flow or on the confirmation page. Each entry is a flat, already-resolved, currently-active product (id, name, price, imageUrl, badge), in the merchant's chosen order — collection-based recommendations are expanded and de-duplicated server-side, so you never need to resolve a collection yourself. The array is empty when the merchant hasn't set any up.
recommendationLinks is the same set of relationships presented as resolved links — one per recommended product or collection, with the merchant's optional customer-facing label (falling back to the target name) and the url BeniBrain itself would send a customer to. Targets that are inactive, empty or have no public destination are omitted, so every entry is safe to render as-is. When your website is registered as the business's connected website, these URLs point at your own product and collection pages — and the "You may also be interested in" line in booking confirmation emails (when the business enables it) links to exactly the same places. BeniBrain owns what is recommended; your site owns how it looks.
Staff
GET /public/booking/staff?apiKey=…&serviceId=… lists the agents who can perform a given service, for a staff picker. Pass the chosen agentId both when fetching slots (availability differs per agent) and when creating the booking.
Creating a booking
POST /public/booking/bookings creates the booking against a specific, server-validated startsAt slot. If the slot was taken between your last fetch and this call, it returns 409 — refetch slots and let the buyer pick again.
{
"apiKey": "lc_your_key_here",
"serviceId": "svc_1",
"startsAt": "2026-09-21T09:30:00.000Z",
"customerName": "Jordan Ellis",
"customerEmail": "jordan@example.com",
"customerPhone": "+14155551234",
"smsConsent": true,
"agentId": "agent_9",
"selectedChoiceIds": ["choice_1"]
}{
"id": "bk_789",
"businessName": "Acme Salon",
"serviceName": "Haircut & Style",
"startsAt": "2026-09-21T09:30:00.000Z",
"endsAt": "2026-09-21T10:25:00.000Z",
"status": "pending",
"paymentStatus": "pending",
"requiresPayment": true,
"checkoutUrl": "https://checkout.stripe.com/c/pay/...",
"paymentKind": "deposit",
"paymentAmountPence": 1000
}When the service has paymentMode: "deposit" or "full", requiresPayment is true and checkoutUrl must be completed to confirm the slot — an unpaid hold on a slot expires automatically rather than blocking it forever.
Booking status
GET /public/booking/{apiKey}/bookings/{id} is the authoritative status for a booking success page — status (pending/confirmed/completed/cancelled/expired), paymentStatus, and amounts in pence. Poll this after a Stripe redirect rather than assuming payment succeeded client-side.
Manage booking links
Confirmation, reminder and reschedule emails all include a "Manage booking" link back to a BeniBrain-hosted page where the customer can cancel or reschedule themselves, re-checking the business's live cancellation/reschedule policy on every visit. Only one management link is valid per booking at a time — issuing a new one (including via the customer booking history endpoints below) invalidates any link already sent by email or SMS.
Businesses that go to their customers
When GET /public/booking/info returns "mobile": true, the business travels to the customer, and a booking needs the job address. Ask for it before showing times:
GET /public/booking/locate?apiKey=…&address=…checks the address and returnsaddress,lat,lng,inAreaandtripFeePence. IfinAreais false, the business doesn't cover that address.tripFeeTextfrom the info endpoint describes the fee in plain words.- Pass
latandlngto/public/booking/slots, so only times that leave room to drive are offered. - Send
serviceAddress,serviceLatandserviceLngwith/public/booking/quote(to include the trip fee) and with the booking itself. Without them the booking is refused with "Enter the address where the work is needed."
Customer booking history
GET /public/booking/my-bookings?apiKey=… returns every booking the signed-in customer has made with this business — it uses the exact same verified store_customer_session cookie as GET /public/store/my-orders, so a customer who has verified their email once sees both their orders and their bookings. A guest booking made with that same email address appears automatically once the email is verified — there is no separate "claim my bookings" step. Results are capped at 200 bookings.
Pass scope=upcoming or scope=past to filter, or omit it and group client-side on the timeframe field each booking already carries ("upcoming": pending or confirmed with a future end time; everything else, including completed and cancelled bookings, is "past"). Upcoming bookings are ordered soonest-first; past bookings are ordered most-recent-first.
[
{
"id": "bk_789",
"createdAt": "2026-09-01T12:00:00.000Z",
"startsAt": "2026-09-21T09:30:00.000Z",
"endsAt": "2026-09-21T10:25:00.000Z",
"timezone": "Europe/London",
"durationMinutes": 55,
"status": "confirmed",
"timeframe": "upcoming",
"cancellationReason": null,
"service": { "id": "svc_1", "name": "Haircut & Style", "imageUrl": "https://.../a.jpg" },
"selectedOptions": [{ "groupName": "Add-ons", "choiceName": "Beard trim" }],
"staff": { "name": "Jamie" },
"location": null,
"pricing": {
"currency": "gbp",
"serviceTotalPence": 4300,
"depositRequiredPence": 1000,
"amountPaidPence": 1000,
"balanceDuePence": 3300,
"paymentStatus": "paid"
},
"manage": { "available": true, "reason": null }
}
]A retired or deleted service never removes a booking from this history — service always carries the name captured at booking time, falling back to imageUrl: null when the service or its photos are no longer available. Never include a customer's email, phone number, Stripe/provider ids, payment-hold internals, or refund-ledger detail in your own UI beyond what this endpoint already returns — it's deliberately the full customer-safe surface.
manage.available tells you whether "Manage this booking" should be shown at all — it's false once a booking is cancelled, completed, or past its self-service window, with manage.reason explaining why. When available, POST /public/booking/my-bookings/{id}/manage-link (with apiKey in the JSON body, not the query string) issues a fresh manage link for that booking and returns { manageUrl, expiresAt } — send the customer to manageUrl rather than linking to the id directly. As with all manage links, requesting a new one invalidates the previous one, including any already emailed. Any problem (wrong session, a booking that isn't this customer's, or one that's no longer eligible) returns an opaque 404 — the response never confirms or denies that a given booking id exists.
End-to-end example: booking a service
GET /public/booking/info?apiKey=…— list services and read the business timezone.GET /public/booking/staff?apiKey=…&serviceId=…if the buyer should pick a specific staff member.GET /public/booking/slots?apiKey=…&serviceId=…&date=…for the buyer's chosen date, re-fetching whenever they change the date, staff member, or selected add-ons.POST /public/booking/bookingswith the exactstartsAtthe buyer picked.- If
requiresPaymentis true, redirect tocheckoutUrl; either way, pollGET /public/booking/{apiKey}/bookings/{id}for the authoritative confirmation.