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

# CalendarAvailableHoursByEmployerId: Loket.nl REST Calendar Available Hours by Employer ID

`read only` `REST`

- Catalog: `LoketNlRest`
- Schema: `Calendar`
- Label: Calendar Available Hours by Employer ID

List available hours per employment (for calendar)
__Activity name :__ GetCalendarAvailableHoursByEmployerId

For a calendar, this endpoint returns the availability of an employment expressed as a pattern for both odd and even weeks. Note that multiple patterns can be active in the time period that is requested using the query parameter `startDate` and `endDate`. While multiple patterns can be returned, on any date only one pattern is active. The patterns do not overlap.

The available hours for a day are determined by the bi-weekly work pattern (as defined in the Working Hours resource) if such a work pattern is present for the employment. If no bi-weekly work pattern is present and the employment is NOT an on-call employment than the number of standard hours (either shiftHours or deviatingHoursPerWeek) is equally divided over the working days within each week (Monday through Friday).

This endpoint only returns objects for which the employment meets the filter settings set at the user level. Note that filter settings are set for a user <-> employer <-> client combination.


Can only retrieve data.

## API Source

- Endpoint: `/providers/employers/{employerId}/employees/employments/calendar/availablehours`
- Operation: `get /providers/employers/{employerId}/employees/employments/calendar/availablehours`

## Parameters

| Name | Data Type | Required | Default | Documentation |
|---|---|:---:|---|---|
| `employerId` | `` | [x] |  | The unique identifier of the employer |
| `endDate` | `` | [x] |  | A valid date (yyyy-MM-dd). Last day of the timebox for which calendar data will be collected. |
| `startDate` | `` | [x] |  | A valid date (yyyy-MM-dd). First day of the timebox for which calendar data will be collected. |

## Table Columns

The columns of the table `CalendarAvailableHoursByEmployerId` 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 |
|---|---|---|:---:|---|---|
| `department_code` | `int32` | Department Code | [ ] |  |  |
| `department_description` | `varchar2` | Department Description | [ ] |  |  |
| `department_key` | `guid` | Department Key | [ ] |  | The unique identifier of an object (GUID/UUID)  |
| `employee_firstName` | `varchar2(28)` | Employee First Name | [ ] |  | The first name, given name, forename or Christian name as part of a persons personal name.  |
| `employee_formattedName` | `varchar2(82)` | Employee Formatted Name | [ ] |  | Formatted name of the employee based on the value of `howToFormatLastName` |
| `employee_id` | `guid` | Employee ID | [ ] |  | The unique identifier of an object (GUID/UUID) |
| `employment_id` | `guid` | Employment ID | [ ] |  | The unique identifier of an object (GUID/UUID) |
| `employment_incomeRelationshipNumber` | `int32` | itgen_loketnl_employment_incomerelationshipnumber | [ ] |  | The income relationship number that is required in the tax return. Together with the citizen service number (burgerservicenummer, BSN) and wage tax number, the income relationship number uniquely identifies an employment. |



## 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)

