GET/v1/schedule/class/viewid_region (number, required)2.k_business (number, required)49197.dt_date (string, required)YYYY-MM-DD HH:mm:ss in global/business time.2024-10-28 16:00:00.k_class_period (number, required)100000466946.Note: All four parameters must refer to the same scheduled class occurrence; mismatched values may return no data or an error.
status: "ok" and includes high-level data:a_classk_class: Class key.s_title: Class name.html_description: Main description (HTML).html_special: Additional/special information (HTML).a_image: Image metadata (s_url, dimensions, flags).s_duration / i_duration: Duration (e.g., "60 min", 60).dt_date_global / dt_date_local: Start time in global vs. local time.text_timezone: Local timezone identifier.i_capacity: Max capacity.i_book, i_book_active: Booking counts.can_book: Boolean indicating if the current user can book.html_deny_reason: HTML message describing why booking is not allowed.is_event, is_virtual, id_virtual_provider, url_virtual_join: Event/virtual class details.m_price, hide_price: Pricing and visibility.is_book, is_cancel, is_wait_list_enabled, is_wait, etc.).a_locationk_location: Location key.s_title: Location name.s_address, s_map: Address and map-friendly address.f_latitude, f_longitude: Coordinates.s_phone: Location phone.f_rate: Rating.a_staffk_staff: Staff key.s_name, s_family, s_name_full.s_position.is_substitute.xml_biography: HTML/markup biography.a_virtual_locationa_asseta_session_resulta_visits_requiredstatus"ok" on success.s_version__a_messagecan_book (boolean)html_deny_reason (HTML string)is_promotion_only (boolean)true, the class can only be booked using specific promotions/passes.i_capacity, i_book, i_wait, i_wait_limit, i_wait_spot, is_wait_list, is_wait_list_enabled__a_messageImportant: Client applications should always check can_bookand, whenfalse, surfacehtml_deny_reason(rendering HTML safely) to explain booking issues to end users.
dt_date query param is interpreted in business/global time.dt_date_global reflects that same global start date/time.dt_date_local and text_timezone show the localized time for the business/location.dt_date_local and text_timezone for display.Recommendation: Always display both local class time and timezone to the user and avoid re-deriving local time; use the values returned by the API.
200 or status values other than "ok" indicate an error or misconfiguration.id_region, k_business, dt_date, or k_class_period.curl --location -g --request GET '/v1/schedule/class/view?id_region={{id_region}}&k_business={{k_business}}&dt_date=2024-10-28 16:00:00&k_class_period=undefined' \
--header 'Content-Type: text/plain' \
--data-raw ''{}