get https://api.zenoti.com/v1/reports/classes/attendance/flat_file?page=1&size=10
Purpose: Use this API to fetch the class details of an organization.
You must specify center_ids and employee_ids along with other params as mentioned in the BODY PARAMS section.
Response Details
| Name | Type | Description |
|---|---|---|
| booking_source | string | Source of the booking for the class. |
| center_name | string | Name of the center. |
| class_category | string | Category of the center. |
| class_id | guid | Unique identifier of the class. |
| class_name | string | Name of the class. |
| class_subcategory | string | Subcategory of the center. |
| employee_code | string | Employee code of the center. |
| name | string | Name of the instructor. |
| first_visit | string | Denotes if this is the first visit of the guest. |
| group_id | guid | Unique identifier of the group. |
| guest_id | guid | Unique identifier of the guest. |
| guest_name | string | Name of the guest. |
| invoice_id | guid | Unique identifier of the invoice. |
| invoice_no | string | The number of the invoice raised for the classes. |
| member | enum | Denotes if the guest is a member |
| mobile_phone | string | The mobile phone of the guest. |
| qty | int | Quantity of the classes that are booked |
| net_price | int | Price of the classes |
| class_type | string | Type of the classes. |
| session_enddate | datetime | Denotes the time when the session ends. |
| session_price | int | Price of the session |
| session_startdate | datetime | Denotes the time when the session starts |
| registration_status | string | Status of the session registration. |
| registration_status_date | datetime | Date when the status of the registration is updated. |
| employee_id | guid | Unique identifier of the employee. |
| class_capacity | int | The capacity of the class. |
| avg_class_attendance_count | int | Count the class attendance. |
| class_utilization | string | Total utilization of the class. |
| billing_zip | string | Zip code of the guest as per the billing address. |
| classpass_status | string | Status of the guest's class pass. |
| sub_requested | int | Denotes if a substitute is requested. |
| sub_volunteered | int | Denotes if a substitute has volunteered. |
| session_id | guid | Unique identifier of the session. |
| session_name | string | Name of the session. |
error Object
| Code | Message | Description |
|---|---|---|
| 502 | start_date must be earlier than end_date | When the end_date is before the start_date. |
| 502 | Request body is missing | When the request body is missing. |
