v1

latestOpenAPI 3.1.02026-07-2422707.0 MB

Add a guest or group of guests to the Queue

Purpose: The purpose of this API is to add a guest or a group of guests to the queue for a given center.

post/v1/queue/bookings

Request body

center_idstring

Unique identifier of the center in which you are adding the guest or a group of guests.

consider_online_hoursboolean

This parameter considers the online hours of the center. True: Will consider online hours when adding the guest to the queue. False: Does not consider online hours when adding a guest to the queue.

do_reprocessboolean

Reprocessing lets Zenoti assign resources dynamically based on availability of the employees. True: Allows the reprocessing of the appointment based on resource availability. False: Does not allow reprocessing.

Response

200

OR
OR
OR
OR

Example response

{
  "is_confirmed": true,
  "invoice_id": "6e08030d-ca03-473c-b093-b658456484f4",
  "appointment_group_id": "659846c5-b9d0-45cd-b5a4-27ef558c9b0d",
  "bookings": [
    {
      "guest": {
        "id": "0d9b44d7-88b8-4a50-be83-a3ff500e369f",
        "first_name": "kiosk",
        "last_name": "swati"
      },
      "queue_info": {
        "wait_time_in_min": "7"
      },
      "appointments": [
        {
          "id": "6c60d5d7-dcf7-4d57-ba27-5b1468464b37",
          "invoice_item_id": "7f5837d5-f212-44d5-8009-eaa8e36cf6e3",
          "start_time_in_center": "2022-09-28T19:00:00",
          "end_time_in_center": "2022-09-28T19:15:00",
          "employee": {
            "id": "ead03cb7-7e2d-4e51-b169-69fe25e318b2",
            "display_name": "apurva",
            "gender": "M",
            "full_name": "Apurva .",
            "first_name": "Apurva",
            "last_name": "."
          },
          "service": {
            "id": "e8b1131c-34cb-4263-865a-aa0677770338",
            "name": "Hair Cut with Wash ",
            "duration": 15,
            "category_id": "eb77b936-7fb6-41ff-89a9-f18398830b51"
          }
        }
      ]
    }
  ]
}