---
title: "LeaveBalancesGroupedByEmployerId (Loket.nl REST)"
description: "Grouped Leave Balances by Employer ID"
language: en
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/en/datamodels/loketnl/LoketNlRest.LeaveBalance.LeaveBalancesGroupedByEmployerId
original: https://documentation.invantive.eu/en/datamodels/loketnl/LoketNlRest.LeaveBalance.LeaveBalancesGroupedByEmployerId
updated: 2024-06-10T18:51:26Z
license: https://documentation.invantive.eu/en/
---

# LeaveBalancesGroupedByEmployerId: Loket.nl REST Grouped Leave Balances by Employer ID

`read only` `REST`

- Catalog: `LoketNlRest`
- Schema: `LeaveBalance`
- Label: Grouped Leave Balances by Employer ID

Summed up leave balance total and grouped by
__Activity name :__ GetLeaveBalancesGroupedByEmployerId 
  
  Returns the yearly leave balances total per leave type and total per groupBy


Can only retrieve data.

## API Source

- Endpoint: `/providers/employers/{employerId}/leavebalances/grouped`
- Operation: `get /providers/employers/{employerId}/leavebalances/grouped`

## Parameters

| Name | Data Type | Required | Default | Documentation |
|---|---|:---:|---|---|
| `employerId` | `` | [x] |  | The unique identifier of the employer |
| `groupBy` | `` | [x] |  | Select the groupBy (Waarden: Department, Function) |
| `referenceDate` | `` | [ ] |  | Set a reference date for the following logic   1. To determine the active `function` and `department` of the employment   2. To calculate `usageAfterToday` and `usageThroughToday`   3. To determine the year for which the leave balance is returned  If not provided, "today" is used |

## Table Columns

The columns of the table `LeaveBalancesGroupedByEmployerId` are shown below. Each column has an SQL data type. A new non-null value must be provided for every required column at all times during insert and update.

| Name | Data Type | Label | Required | Marks | Documentation |
|---|---|---|:---:|---|---|
| `DUMMY` | `varchar2(1)` | Dummy | [x] |  | Default column added since the specification specifies that no data is returned. |



## Release Notes

What changed per release in the tables, columns, attributes and capabilities of the driver:

- [Loket.nl REST](/en/release-notes/drivers/loket-nl-rest)

