---
title: "Fetch the class details of an organization - Class report API"
method: GET
path: "/v1/reports/classes/attendance/flat_file?page=1&size=10"
---

# Fetch the class details of an organization - Class report API

`GET /v1/reports/classes/attendance/flat_file?page=1&size=10`

## Request

- Base URL: `https://api.zenoti.com`
- URL: `https://api.zenoti.com/v1/reports/classes/attendance/flat_file?page=1&size=10`
- Auth: none required

**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.

## Request body

- object
  - `center_ids` string, required: Enter the unique identifier of the centers for which you want to fetch the class details report.
  - `employee_ids` object, required: list of employee ids for which report is to be generated
  - `class_id` string: Unique identifier of the class for which you are generating the report.
  - `guest_id` string: Unique identifier of the guest.
  - `payment_types` string: Type of payments that are to be included in the report
  - `group_columns` string: Denotes if the columns of the report are grouped.
  - `registration_status` string: Denotes the registration status of the class in the report.
  - `class_type` '1' | '2' | '3': 1 and 2 for Class. 3 for Workshop
  - `original_instructor_id` string: Identifier of the instructor.
  - `session_id` string: Session id for which roster details are required,
  - `start_date` string, date: Date range for the report to fetch details.
  - `end_date` string, date: Date range for the report to fetch details
  - `size` integer: optional parameter
  - `page` integer: optional parameter

## Response `200`

200

- object
  - `classes_attendance` object[]
    - `booking_source` string
    - `center_name` string
    - `class_category` string
    - `class_id` string
    - `class_name` string
    - `class_subcategory` string
    - `employee_code` string
    - `name` string
    - `first_visit` string
    - `group_id` string
    - `guest_id` string
    - `guest_name` string
    - `invoice_id` string
    - `invoice_no` string
    - `member` string
    - `mobile_phone` string
    - `qty` integer
    - `net_price` integer
    - `class_type` string
    - `session_enddate` string
    - `session_price` integer
    - `session_startdate` string
    - `registration_status` string
    - `registration_status_date` string
    - `employee_id` string
    - `class_capacity` unknown
    - `avg_class_attendance_count` integer
    - `class_utilization` unknown
    - `billing_zip` unknown
    - `classpass_status` unknown
    - `sub_requested` integer
    - `sub_volunteered` integer
    - `session_id` string
    - `session_name` string
  - `page_info` object
    - `total` integer
    - `page` integer
    - `size` integer
  - `total` unknown

## Other responses

- `400`: 400

---

[API](https://skmtc.dev/zenoti/apis/zenoti-authentication.md) - [All operations](https://skmtc.dev/zenoti/apis/zenoti-authentication/llms.txt) - [OpenAPI document](https://skmtc.dev/zenoti/apis/zenoti-authentication/revisions/e628f892391a?raw)
