Bookings
Services, providers and their hours, free slots, bookings and what happens to them, packages and the waitlist.
A booking is a session of a service (what is booked: a haircut, a consultation, a class) with a provider (who gives it: a person or a room), at a time the provider's weekly hours leave free.
Statuses
- pending_payment: the service asks for a deposit, not paid yet.
- confirmed: booked (and its deposit paid, when there is one).
- completed: the session was given.
- no_show: the customer did not come.
- cancelled: by the customer, the team or the store's rules.
The status enum may gain values. Treat one you don't recognize as "in
progress" (see API conventions).
Endpoints
Paths are relative to https://api.mobiari.com/v1, with the store named
by its key or the Mobiari-Store header, as everywhere in the
API.
| Method | Path | Purpose |
|---|---|---|
GET, POST | /booking-services | List and create services. |
GET, PATCH, DELETE | /booking-services/{service_id} | Read, change and delete a service. |
GET, POST | /booking-providers | List and create providers. |
GET, PATCH, DELETE | /booking-providers/{provider_id} | Read, change and delete a provider. PATCH with hours replaces its weekly windows. |
GET, POST | /booking-providers/{provider_id}/time-off | A provider's time off. DELETE .../time-off/{time_off_id} removes one. |
GET | /booking-slots | The free starts of a service: service_id, from, to, optional provider_id. |
GET, POST | /bookings | List bookings (from, to, provider_id, status) and book one. With every_weeks and count, a weekly series. |
GET | /bookings/{booking_id} | One booking. |
POST | /bookings/{booking_id}/rescheduling | Move it to another starts_at. |
POST | /bookings/{booking_id}/cancellation | Cancel it, with an optional reason (and following: true for the rest of its series). |
POST | /bookings/{booking_id}/completion | Mark it given. |
POST | /bookings/{booking_id}/no-show | Mark that the customer did not come. |
GET | /bookings/{booking_id}/intake | The answers to the service's intake questions. |
GET, POST | /bookings/{booking_id}/notes | The team's notes on a booking; PATCH and DELETE .../notes/{note_id}. |
GET, POST | /booking-waitlist | Who waits for a slot of a service on a day; DELETE .../{entry_id} removes one. |
GET, POST | /booking-package-plans | Packages the store sells; GET, PATCH, DELETE .../{plan_id}. |
GET, POST | /booking-packages | Packages sold: POST sells one (answers its code); GET .../{package_id}, POST .../{package_id}/cancellation. |
Lists answer a Page.
Book a slot
Find a free start, then book it:
curl "https://api.mobiari.com/v1/booking-slots?service_id=$SERVICE&from=2026-12-01&to=2026-12-07" \
-H "Authorization: Bearer $MOBIARI_KEY"
curl -X POST "https://api.mobiari.com/v1/bookings" \
-H "Authorization: Bearer $MOBIARI_KEY" \
-H "Content-Type: application/json" \
-d '{
"service_id": "'$SERVICE'",
"starts_at": "2026-12-02T13:00:00Z",
"customer_name": "Ana Souza",
"customer_phone": "11987654321"
}'The booking is confirmed at once and the customer is e-mailed the
confirmation: a booking made through the API is the team's, and the team
settles money its own way. (A deposit is asked only of a customer who books
on the store's page; that booking starts pending_payment.) Two bookings
of one provider never overlap: a slot taken in the meantime answers 409
slot_taken.
Webhooks
bookings.created, bookings.confirmed, bookings.rescheduled,
bookings.cancelled, bookings.completed and bookings.no_show carry
the Booking as GET /bookings/{booking_id} answers it. See
Webhooks.
Permission cheatsheet
| Action | Permission |
|---|---|
| Read services, providers, slots, bookings and packages | bookings.read |
| Book, reschedule, cancel, complete, waitlist, sell packages | bookings.write |
| Change services, providers, hours and package plans | bookings.manage |
| Read and write notes and intake answers | bookings.notes |
Session notes and intake answers may be health data, so they take their
own permission. A key without the permission answers 403
missing_permission.