---
title: "List standard variables"
method: POST
path: "/v2/statistics/standard-variables"
tags: ["Standard Variables"]
---

# List standard variables

`POST /v2/statistics/standard-variables`

Fetches standard variables from the statistics service.

## Request body

- StatisticsAdvancedStatisticsRequest
  - `groupIds` integer[]
  - `period` StatisticsStatisticsPeriod
    - `start` string
    - `end` string
    - `aggregation-type` 'm' | 'H' | 'D' | 'W' | 'M'
    - `aggregation-value` integer
  - `variables` string[]
  - `filters` StatisticsFilter[]
    - `name` 'employee' | 'employee-skill' | 'employee-section' | 'employee-unit' | 'staff-category' | 'shift-type' | 'shift-status' | 'section' | 'shift-id' | 'shift-start' | 'shift-end' | 'task-status' | 'task-type' | 'task-section' | 'punch-type' | 'punch-id' | 'absence-type' | 'absence-shift-id' | 'attest-status' | 'absence-attest-status' | 'punch-attest-status' | 'tag-ids' | 'agreement' | 'base-schedule'
    - `values` integer[]
    - `timeRange` StatisticsTimeRangeFilter
      - `enabled` boolean
      - `from` string
      - `to` string
  - `baseScheduleData` StatisticsBaseScheduleData
    - `baseScheduleId` string
    - `dayIndex` integer
  - `baseScheduleIds` string[]
  - `displayItems` string[]
  - `laborView` boolean
  - `statisticsFilterTypes` 'and' | 'or'
  - `people-filter-type` 'and' | 'or'
  - `shifts-filter-type` 'and' | 'or'
  - `tasks-filter-type` 'and' | 'or'
  - `punches-filter-type` 'and' | 'or'
  - `absences-filter-type` 'and' | 'or'

## Response `200`

OK

- StatisticsStatistic[]
  - `variable` 'scheduled-hours' | 'worked-hours' | 'leave-hours' | 'optimal-hours' | 'forecast-hours' | 'forecast-sales' | 'actual-sales' | 'actual-staff-cost' | 'forecast-staff-cost' | 'base-schedule-hours' | 'productive-hours' | 'kpi-scheduled-hours' | 'kpi-scheduled-hours-excl-ut' | 'kpi-worked-hours' | 'scheduled-staff-cost' | 'scheduled-staff-cost-excluding-absences' | 'scheduled-hours-excluding-absences' | 'worked-hours-excluding-absences' | 'expected-staff-cost' | 'scheduled-break-hours' | 'punched-break-hours' | 'base-schedule-cost' | 'expected-kpi-scheduled-hours' | 'expected-kpi-worked-hours'
  - `values` StatisticsStatisticPeriodValue[]
    - `start` string
    - `end` string
    - `value` number, double
    - `employeeId` integer
  - `total-value` number, double

---

[API](https://skmtc.net/quinyx/apis/quinyx-api.md) · [All operations](https://skmtc.net/quinyx/apis/quinyx-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/quinyx/quinyx-api/revisions/70a12bbb88c9/schema)
