---
title: "Get Attendance Summary for a Student"
method: GET
path: "/attendance/stats/student/{studentUpi}"
tags: ["Attendance"]
---

# Get Attendance Summary for a Student

`GET /attendance/stats/student/{studentUpi}`

**Requires permissions:** *AcademicStaff* or *AcademicSupport* or *Guardian* or *Parent* or *StudentFacing*

Get Attendance Summary for a Student, this will return the attendance summary for a student for a given date

## Path parameters

- `studentUpi` string, guid, required

## Query parameters

- `date` string, date-time, nullable
- `timeframe` 0 | 1 | 2, required
- `customStartDate` string, date-time, nullable
- `customEndDate` string, date-time, nullable

## Response `200`

Success - Success

- GetAttendanceStudentSummaryResponse
  - `summary` AttendanceSummary
    - `timeframe` 0 | 1 | 2
    - `presentAm` integer
    - `absentAm` integer
    - `lateAm` integer
    - `presentPm` integer
    - `absentPm` integer
    - `latePm` integer
    - `totalAm` integer
    - `totalPm` integer
    - `totalLate` integer
    - `totalPresent` integer
    - `totalAbsent` integer
    - `total` integer
    - `totalDaysWithAttendanceRecords` integer
    - `startDate` string, date-time, nullable
    - `endDate` string, date-time, nullable
    - `distributions` object
    - `dailyAttendances` object
    - `attendanceCodes` AttendanceCode[]
      - `attendanceCodeId` string, guid, nullable
      - `code` string
      - `description` string
      - `category` string
      - `eventType` string, nullable
      - `session` string, nullable
      - `order` integer, nullable
      - `display` boolean, nullable
      - `archived` boolean
      - `showInAbsenceOffex` boolean
      - `isAbsent` boolean
      - `isPresent` boolean
      - `isLate` boolean
      - `isUnauthorised` boolean

## Other responses

- `400` — An Error Occurred - Explain Error
- `401` — Unauthorized
- `403` — Forbidden

---

[API](https://skmtc.net/tonbridge/apis/tonbridge-app-api.md) · [All operations](https://skmtc.net/tonbridge/apis/tonbridge-app-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/tonbridge/tonbridge-app-api/versions/fab57bf5558a/schema)
