---
title: "Request absences."
method: GET
path: "/employee_absence/fetch"
tags: ["Time Tracking|Absence"]
---

# Request absences.

`GET /employee_absence/fetch`

This method allows you to fetch a structured list of data that includes various
absence records, such as absence dates, types, employee details, and other identifiers.

Absences within geoCapture are utilized across several aspects of the application, such as resource management.
An absence may be for a full day, half day or a specific duration. An absence always has a specific reason, such
as vacation, illness, or school. Absence categories can be added or modified in geoCapture. Please be aware that
absences have the potential to impact the time account of employees.

## Query parameters

- `filter[byEmployeeReference][]` string[]
- `filter[from]` string
- `filter[to]` string
- `filter[byAbsenceTypeId][]` integer[]
- `filter[byDepartmentIds][]` integer[]
- `filter[updatedFrom]` string
- `filter[updatedTo]` string
- `offset` integer
- `limit` integer

## Response `200`

Success Response:

- StandardEmployeeAbsenceFetchResponse
  - `data` object[] — The absences.
    - `id` integer — The internal id of the absence.
    - `employeeId` integer — The internal id of the employee.
    - `employeeReference` string — The employee personal number.
    - `name` string — The employee name.
    - `date` string — Represents a date. (ISO 8601) ICU-Format: yyyy-MM-dd
    - `absenceType` string — The absence type.
    - `absenceTypeId` integer — The internal id of the absence.
    - `absenceExternalId` string — The external id of the absence.
    - `halfDay` boolean — Is it only a half day absence.
    - `actualDuration` integer — The actual duration of the absence. If a absence is a full day absence the duration represents the target worktime on that day.
    - `externalId` string — External-ID of the absence type.
    - `updatedAt` string — Represents a date. (ISO 8601) ICU-Format: yyyy-MM-dd
  - `offset` integer — Number of skipped records.
  - `totalCount` integer — Total number of available approvals. (Only calculated if offset is 0)

---

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