Developer docs
API overview
Base URL, conventions and the objects you will meet.
On this page (3)
Base URL
https://api.bewtee.com/api/v1
The API is JSON over HTTPS, authenticated with a secret API key, and scoped to the one business that owns the key.
Conventions
- Envelope. Every response is
{ "status": boolean, "message": string, "data": ... }. Errors adderror.code. See errors. - Dates and times.
dateisYYYY-MM-DDandtimeis 24-hourHH:MM, both in the business timezone (Asia/Kolkata). Timestamps such asstarts_atare ISO 8601 with an offset. - Money. Booking amounts are whole rupees.
currencyis alwaysINR. - IDs. Services, staff, customers and bookings use numeric IDs.
- Lists.
GET /bookingsis paged withpageandper_page(up to 100);meta.has_moresays whether another page exists. - Additive changes. New fields can appear in responses without a version change. Ignore fields you do not recognise.
Endpoints
| Method | Path | Purpose |
|---|---|---|
GET |
/business |
The business profile and opening hours |
GET |
/services |
Bookable services with prices and durations |
GET |
/staff |
Staff members customers can book |
GET |
/availability |
Free start times for a date and a set of services |
GET |
/bookings |
List bookings |
POST |
/bookings |
Create a booking |
GET |
/bookings/{id} |
Fetch one booking |
POST |
/bookings/{id}/cancel |
Cancel a booking |
What is not in the API
- Payments. API bookings are always pay-at-salon. Online prepayment, packages, memberships, offers and loyalty points are available on the Bewtee page and in the widget's hand-off, not through this API.
- Editing the catalogue. Services, prices, staff and hours are managed in the dashboard.
- Rescheduling. Cancel and create a new booking, or move it in the dashboard.