Get times available for appointment booking
Returns a list of times that are available for a booking. Any of these times should be a valid value for start field when booking an appointment using the booking end-point. You must supply either date (a single day) or from_date (a date range, with optional to_date) — they cannot be combined, and this is a distinct 7-day cap unrelated to the Customer API's 60-day limit on its equivalent endpoint.
/api/partners/v1/community/:community_id/appointments/available-times/Request
Response
format=realpage returns a completely different shape
Passing ?format=realpage replaces the response above with a RealPage-specific shape — not an
extension of it, a different structure entirely:
{
"data": [
{
"startTime": "2020-01-07T09:00:00",
"endTime": "2020-01-07T09:30:00",
"timezone": "-0500",
"appointmentType": ["guided"]
}
],
"errors": null
}
Two details worth noting: errors is always null here — this key is part of the RealPage
envelope only; the endpoint's actual error responses, listed below, use the standard shape regardless of
format — and timezone here is a UTC offset string like
"-0500" — not the IANA name (e.g. "America/New_York") used in the default response
above, even though both use the same field name. appointmentType is ["self-guided"] for
self-guided tours, or ["guided"] (with "online" appended when video tours are enabled)
otherwise.
Errors specific to this endpoint
Date Required (400)
Returned when neither date nor from_date is supplied.
Date and Range Combined (400)
Returned when date is supplied together with from_date or to_date.
to_date Before from_date (400)
Returned when to_date is earlier than from_date.
Range Exceeds 7 Days (400)
Returned when the requested range exceeds 7 days — see to_date above for the exact rule.
Community Not Set Up for Tour Scheduling (400)
Returned when the community has no employee group configured.
Tour Type Not Enabled (400)
Returned when the requested tour_type isn't enabled for this community's employee group. The message names the tour type you requested — for example, guided, self-guided, or video.