v1

latestOpenAPI 3.1.02026-07-2422707.0 MB

Confirm a service booking

This API helps you to confirm the required reserved service booking (booking_id).

You can also use this API to confirm the required group service booking (booking_id). You must specify in the API request body the appropriate appointment group_name details.

You can choose a specific therapist or a therapist based on a certain gender while creating a service booking; after which, a unique 32-digit booking_id is generated.

After you have reserved the service booking, you must then specify the generated booking_id as an input parameter to use this API to confirm the service booking before the reservation time of the slot expires.

If the service booking is confirmed, you will receive the details of the service booking in the generated response.

This API also allows you to confirm service bookings for family members. Provided, there ia a relationship defined in Zenoti between the host and the family members.

post/v1/bookings/{booking_id}/slots/confirm

Path parameters

booking_idstring required

Mandatory Unique 32-character identifier of the generated booking_id.

Request body

notesstring

Notes for the booking

group_namestring

group name if it is a group booking.

Response

200

is_confirmedboolean
{"stackTrail":"paths:/v1/bookings/{booking_id}/slots/confirm:post:responses:200:content:application/json:schema:properties:Error","oasType":"schema","type":"unknown"}

Example response

{
  "is_confirmed": true,
  "invoice": {
    "guest": {
      "Id": "f47d09d0-9a82-419e-a0a0-da5a55098905",
      "FirstName": "Nick",
      "LastName": "Smith"
    },
    "invoice_id": "6bdafc31-c65d-4f57-97bd-f2a09c4619e7",
    "items": [
      {
        "item": {
          "id": "94351335-096a-42f2-ae8e-ef8e0727c30e",
          "name": "AYUR 2"
        },
        "quantity": 1,
        "therapist": {
          "id": "af14d51c-556a-419a-a6d7-eb7df7369041",
          "full_name": "Amy Brown",
          "first_name": "Amy",
          "last_name": "Brown"
        },
        "start_time": "2019-08-20T13:30:00",
        "end_time": "2019-08-20T13:30:00",
        "invoice_item_id": "aeddf1d9-8267-4bac-996e-0716ecd7e59d",
        "appointment_id": "af6875bb-7733-4e45-b39f-e627e29816f9"
      }
    ]
  }
}