v1

latestOpenAPI 3.1.02026-07-2422707.0 MB

Create a service booking

This API helps you to create a service booking request for an appointment. To create a group service booking, you must specify in the API request body the required guest_id and appointment-related item details. After you add appointment details for multiple guests, this API automatically creates a group booking. For more information on these parameters and how to create a group booking, refer to the Request Body Details table and the Body section respectively.If you have a preference for a specific therapist for the service, you can specify the required therapist ID in the API request body. If you have a preference for a specific gender of therapist for the service, you can specify the required gender option in the API request body.After you use this API to create a service booking, a unique 32-digit booking_id is generated. You can then use this booking_id to retrieve available slots for the service booking, reserve a slot for the service booking, and then confirm the service booking to complete the appointment-booking process.This API also allows guests to create service bookings for other guests, provided there is a relationship defined in Zenoti, and the booking can only be done by the host. The host_id parameter in the request object can also select the host for group bookings. This API now supports Zenoti growth features.

post/v1/bookings?is_double_booking_enabled={is_double_booking_enabled} (COPY)

Path parameters

is_double_booking_enabledboolean required

If this parameter is passed as true, then depending on the AllowAppointmentOverlap organization setting, this API allows you to book a slot even if the specified therapist has already been assigned for a different booking at the same time slot. The default value of this parameter is null.

Query parameters

future_slot_daysstring

Specify the the number of future days (up to 3 days) for which slots should be retrieved when AllowFutureBookings is true in the booking request.

Request body

center_idstring

id of the center

datestring date

date of the appointment booking

is_only_catalog_employeesboolean

Set to true if only online enabled employees should be considered for appointment booking

Response

200

OR
OR

Example response

{
  "id": "15b0cc65-1e47-440d-8208-966959e8c93e"
}