latestOpenAPI 3.0.0Apache 2.02026-08-201250995.7 KB

bd9694db5fce

Public Clinics

List clinic vets available timeslots

Permissions needed: NONE Returns clinic vets' available timeslots based on their vets' available intervals, vets' appointments, vets' tasks, vets' services and service duration.

get/api/v1/public/clinics/{slug}/vets-timeslots

Path parameters

slugstring required

The Clinic slug

Query parameters

filter[start_date]string date
Example:2024-02-01

Date, if not provided, the first week with available slots within the next two months will be returned

filter[end_date]string date
Example:2024-02-28

Date, can be skipped for one day schedule

filter[visit_type_id]integer

visit_type_id for calc available slots, required one of visit_type_id or duration

filter[duration]integer

duration in minutes for calc available slots, required one of visit_type_id or duration

filter[vet_slug]string

The Vet slug

any_staffboolean

Return only available slots without staff details

groupedboolean

Response

successful operation

Example response

{
  "data": [
    {
      "schedule": {
        "date": "2024-02-06",
        "slots": [
          {
            "start_time": "2024-02-06T14:00:00.000000Z",
            "end_time": "2024-02-06T14:30:00.000000Z"
          }
        ]
      }
    }
  ],
  "meta": {
    "start_date": "2024-02-06",
    "end_date": "2024-02-12"
  }
}