Guides
Bookings
A business that already takes bookings on its own website or software can keep them in sync with ScaleBiss. Every booking - from WhatsApp, from your team in the CRM, or from your site - lands in the same calendar, is checked against the same working hours and limits, and fires the same webhooks. Two people can never take the same slot, whichever door they come through.
Before you start
- In the app open Bookings and set up a service, the staff who offer it and their working hours. This is also where limits per slot, per day and per customer, time off, the minimum notice and the booking window live. Nothing is bookable until a service has staff with hours.
- Create an API key under Build → Developer → API keys and send it as
Authorization: Bearer sb_…(see Authentication). - Under Developer → Webhook, turn on
booking.created,booking.updatedandbooking.cancelledso bookings made on WhatsApp and in the CRM reach your system. Events you have never switched on stay off, so do this even if your webhook already works for other events.
The flow
- Optional: publish your services with
POST /booking-servicesso you can refer to them by your own id (service_external_ref). Staff and hours are still assigned in the app. - Show free times with
GET /bookings/availability. - Book the slot the customer picked with
POST /bookings, passing that slot'sstarts_atexactly. - If they change their mind,
PATCH /bookings/{externalRef}reschedules or cancels. - Receive webhooks for everything that happens to bookings, including the ones made elsewhere.
1 · Read free times
# The next days that still have room
curl "https://api.scalebiss.com/client/v1/bookings/availability?service_external_ref=consultation" \
-H "Authorization: Bearer sb_your_api_key"
# The free times on one day (workspace timezone)
curl "https://api.scalebiss.com/client/v1/bookings/availability?service_external_ref=consultation&date=2026-11-03" \
-H "Authorization: Bearer sb_your_api_key"2 · Book, and handle a lost race
async function book(slot, customer, myBookingId) {
const res = await fetch("https://api.scalebiss.com/client/v1/bookings", {
method: "POST",
headers: {
Authorization: "Bearer sb_your_api_key",
"Content-Type": "application/json",
},
body: JSON.stringify({
external_ref: myBookingId, // your own id - makes retries safe
service_external_ref: "consultation",
starts_at: slot.starts_at, // exactly as availability returned it
contact: { mobile_no: customer.phone, name: customer.name },
}),
});
const body = await res.json();
if (res.status === 201 || res.status === 200) return body.data; // booked (or already booked)
if (body.code === "SLOT_FULL") return { retry: true }; // someone got there first: re-read availability
if (body.code === "CUSTOMER_LIMIT") return { existing: body.details.existing };
throw new Error(body.message);
}3 · Cancel
curl -X PATCH "https://api.scalebiss.com/client/v1/bookings/web-10234" \
-H "Authorization: Bearer sb_your_api_key" \
-H "Content-Type: application/json" \
-d '{"status":"cancelled","cancel_reason":"Customer changed plans"}'Rules worth knowing
- Retries are safe. Sending the same
external_refagain updates the booking instead of creating a second one. Two simultaneous requests with the sameexternal_refalso produce one booking. - Book exactly on a slot.
starts_atmust be the start of a slot from availability. A time that is between slots, outside working hours, on time off, sooner than the minimum notice or beyond the booking window answers409 SLOT_FULL. - Availability is a snapshot. Another customer, on any channel, can take the slot before yours is submitted. Treat
409 SLOT_FULLas normal: read availability again and let the customer pick another time. - Time zones. Slots are laid out in the workspace timezone (returned as
timezone).starts_atwith an offset (+05:30,Z) is exact; without one it is read in the workspace timezone. - Capacity. A slot can hold more than one place (classes, tables):
remainingofcapacityis returned, andquantitybooks several places at once. Services that give out numbers instead of fixed times (booking_mode: token) return sessions such as “Morning”; each booking gets the nexttoken_number. - Customer limits. A service can cap bookings per customer per day or upcoming at once. A customer at the cap gets
409 CUSTOMER_LIMIT, anddetails.existingis the booking in the way. - You see your own bookings in the webhook. A booking you create through the API also fires
booking.created(withsource: "api"and yourexternal_ref). Skip those on your side. - Only your own bookings can be changed.
PATCHworks on bookings created through the API. Bookings from WhatsApp and the CRM are managed in the app. - No payment. Bookings sent through the API are confirmed immediately. Collecting payment for bookings happens in the WhatsApp booking flow.
- Limits. 60 requests per minute per API key, shared with every other endpoint, and a workspace whose plan has expired gets
402 PLAN_EXPIRED.
Related
- Bookings API reference - every endpoint, parameter and response.
- Webhooks - the
booking.*payload and signature verification. - Errors -
SLOT_FULL,CUSTOMER_LIMITand the rest.
