v1

latestOpenAPI 3.1.02026-07-2422707.0 MB

Retrieve available slots for a service booking

This API helps you to retrieve available slots for the specified service booking (booking_id) on a given day. If no slots are available on that day, the API returns the next available slot on any other future day of the current week.

You can also use this API to retrieve available slots for the required group service booking (booking_id).

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.

You must then specify the generated booking_id as an input parameter in the API request body to retrieve available slots for the service booking.

get/v1/bookings/{booking_id}/slots

Path parameters

booking_idstring required

booking id

Query parameters

check_future_day_availabilityboolean

Optional If it is passed as true, this parameter verifies whether any remaining day of the current week is available to be booked for the service. The default value of this parameter is false.

Response

200

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

Example response

{
  "slots": [
    {
      "Time": "2020-02-04T08:00:00",
      "Available": true
    }
  ],
  "future_days": [
    {
      "Day": "2020-02-03T00:00:00"
    }
  ]
}