Create Booking by Customer
Customers can create new appointments or join existing group bookings (events/classes).Request Parameters
Unique identifier for the merchant
ID of the service to book
ID of the location where the service will be provided
ISO 8601 timestamp for the booking start time
Optional note from the customer with special requests or information
For group bookings only: ID of the existing group booking to join. Omit this field when creating a new appointment.
Response
Returns201 Created on success with no response body.
Joining Group Bookings: To join an existing event or class, include the
booking_id parameter. This adds the customer as a participant to the group booking.Create Booking by Merchant
Merchants can create bookings on behalf of customers, including appointments, events, classes, and recurring bookings.Request Parameters
ID of the service to book
ISO 8601 timestamp for the booking start time
Array of customer objects to include in the booking
Existing customer ID. If provided, other fields are optional and will be ignored.
Customer’s first name (required for new customers)
Customer’s last name
Customer’s email address
Customer’s phone number
Internal notes about the booking
Set to
true to create a recurring booking seriesRequired when
is_recurring is true. Defines the recurrence pattern.Recurrence frequency:
DAILY, WEEKLY, MONTHLY, or YEARLYInterval between occurrences (e.g., 2 for every 2 weeks)
Array of weekday strings:
MO, TU, WE, TH, FR, SA, SUISO 8601 timestamp for when the recurrence ends
Response
Returns201 Created on success with no response body.
Creating Recurring Bookings
Recurring bookings are perfect for classes that meet on a regular schedule.Recurrence Rules: The system follows the iCalendar (RFC 5545) specification for recurrence rules. This allows for flexible scheduling patterns.
Group Booking vs Appointment
Creating an Appointment
Appointments are one-on-one bookings with a single customer:Creating a Group Booking (Event/Class)
Group bookings can have multiple participants:The booking type (appointment, event, or class) is determined by the service configuration and whether the booking is recurring.
Error Responses
The API returns standard HTTP error codes:| Status Code | Description |
|---|---|
400 Bad Request | Invalid parameters or validation error |
401 Unauthorized | Missing or invalid authentication token |
404 Not Found | Service, location, or customer not found |
409 Conflict | Time slot already booked or capacity reached |