Online Booking

Get a List of Time Slots Available for Booking

Changed on

The sessions available for booking object has the following fields:

FieldTypeDescription
timestringSession time (17:30 for example)
session_lengthnumberSession duration in seconds
datetimedatetimeDate and time of the session in ISO8601 format (must be passed when creating the appointment)

The following filters are available:

  • service_ids: Array of service IDs. If you need sessions, when can you book these services
get/book_times/{location_id}/{team_member_id}/{date}

Request

  • Base URL
    https://api.alteg.io/api/v1
  • URL
    https://api.alteg.io/api/v1/book_times/{location_id}/{team_member_id}/{date}
  • Auth
    HTTP bearer

Path parameters

location_idnumber required

location ID

datestring required

date in iso8601 format. Filter by booking date (eg '2026-09-30')

team_member_idnumber required

team member ID. Filter by team member ID Default: 0

Query parameters

service_ids[]string

Service ID. Filter by the list of service identifiers

exclude_record_idnumber

ID of an existing Appointment that is being rescheduled. When set, the search also accepts Services that are no longer available for online booking, so the Appointment can be moved even if its Service was switched offline. The Appointment's current time still counts as busy.

Headers

Acceptstring required

e.g. application/vnd.api.v2+json

Content-Typestring required

application/json

Authorizationstring required

Bearer partner_token

Response

OK

successboolean

Execution success status (true)

metaobject[]

Metadata (empty array)

Example response

{
  "success": true,
  "data": [
    {
      "time": "12:00",
      "seance_length": 3600,
      "datetime": "2026-09-21T23:00:00.000-05:00"
    },
    {
      "time": "13:00",
      "seance_length": 3600,
      "datetime": "2026-09-21T23:00:00.000-05:00"
    },
    {
      "time": "14:00",
      "seance_length": 3600,
      "datetime": "2026-09-21T23:00:00.000-05:00"
    },
    {
      "time": "15:00",
      "seance_length": 3600,
      "datetime": "2026-09-21T23:00:00.000-05:00"
    },
    {
      "time": "16:00",
      "seance_length": 3600,
      "datetime": "2026-09-21T23:00:00.000-05:00"
    }
  ],
  "meta": []
}

Changes