Check available times
AvailabilityService::getAvailableTimes()
Parameters
Response
ViaAvailableTimesTransformer:
How availability is calculated
- Gets tutor’s
DayAvailabilityfor the requested day of week - Generates 15-minute interval time slots
- Filters out clashing lessons — checks existing lessons on that date
- Filters out calendar events — checks Google Calendar if connected
- Applies travel time buffers — for in-person lessons, uses BlackBox service to calculate transit time between locations
- Validates postcode — for student’s home lessons, validates the student’s postcode is within tutor’s travel distance
- Converts times based on UTC offset
Legacy availability search
auth:api
Similar functionality with slightly different parameters.
Day availability management (tutor-side)
Tutors manage their weekly schedule:auth:api
Each day availability record defines:
- Day — day of week (mapped to generic dates internally)
- Time slots — from/to times within that day
- Lesson types — which lesson types are available (online, tutor’s home, student’s home)
- Buffer duration — travel time buffer between lessons
Day constants
Defined inDayAvailability model:
The system uses generic dates (not real calendar dates) so availability repeats weekly.