post https://api.zenoti.com/v1/queue/bookings
Purpose: The purpose of this API is to add a guest or a group of guests to the queue for a given center.
| Name | Type | Description |
|---|
| is_confirmed | bool | Indicates that the appointment is confirmed. True: Guest is added to the queue and the appointment for the guest is confirmed. |
| invoice_id | guid | Unique identifier of the invoice. |
| appointment_group_id | guid | Unique identifier of the appointment group. |
| bookings | object | Object containing the information about the guest or group of guests added to the queue, appointment wait time, and service information. |
| Name | Type | Description |
|---|
| id | guid | Unique identifier of the guest. |
| first_name | string | First name of the guest who is added to the queue. |
| last_name | string | Last name of the guest who is added to the queue. |
| wait_time_in_min | string | Indicates the wait time for the guest to receive the service after being added to the queue. |
| appointments | object | Object containing the appointment details, therapist details, and the service details. |
| Name | Type | Description |
|---|
| id | guid | Unique identifier of the appointment. |
| invoice_item_id | guid | Unique identifier of the item added to an invoice. |
| start_time_in_center | date & time | Appointment start date and time in the center. |
| end_time_in_center | date & time | Appointment end date and time in the center. |
| employee | object | Object containing the therapist or stylist details who is providing the service to the guest. |
| services | object | Object containing the services information. |
| Name | Type | Description |
|---|
| id | guid | Unique identifier of the employee who is providing the service to the guest. |
| display_name | string | Name of the employee that is shown on the queue. |
| gender | string | Gender of the employee (stylist/therapist) M: Male, F: Female. |
| nick_name | string | Nick name of the employee as per the employee profile in Zenoti. |
| full_name | string | Full name of the employee as per the employee profile in Zenoti. |
| first_name | string | First name of the employee as per the employee profile in Zenoti. |
| last_name | string | Last name of the employee as per the employee profile in Zenoti. |
| Name | Type | Description |
|---|
| id | guid | Unique identifier of the service. |
| name | string | Name of the service. |
| duration | int | Duration of the service performed on the guest. |
| category_id | guid | Unique identifier of the service category. |
| is_addOn | bool | Indicates if the service is an add-on. True: The service is an add-on. False: The service is not an add-on. |
| has_addOns | bool | Indicates if the service has any add-ons. True: The service has add-ons associated with it. False: The service does not have any associated add-ons. |
| Message | Code | Description |
|---|
| Guest doesn't exist | AA018 | When the guest_id is not mentioned in the body of the request. |
| Slot is not available for reservation | QA010 | When there are no slots available for the requested time, service, stylist, and center. |