v3

latestOpenAPI 3.1.02026-07-311,0939714.5 MB
Leave

Get the proposed number of leave hours for an employment

Activity name : <a href="https://developer.loket.nl/Activities/GetProposedLeaveHoursByEmploymentId" target="_blank">GetProposedLeaveHoursByEmploymentId</a>

Returns the numberOfHours (only in hours) calculated based on the employments working- hours/schedual

Note: The function will only work if the employment is either linked to no leave policy or linked to only leave policy(s) that use hours as the unit of leave.

Further more how the leave hours are calculated can be managed in the leave policy with the applyLeaveSchedule and working hours resource with the field calculateUsingWorkPattern.leaveHours The order is as follows. If calculateUsingWorkPattern.leaveHours is true the work patern from workinghours is used otherwise if applyLeaveSchedule is set to true the leavePattern is used otherwise the workinghours are used

get/v2/providers/employers/employees/employments/{employmentId}/leave/proposedleavehours

Path parameters

employmentIdstring uuid required

The unique identifier of the employment

Query parameters

startDatestring
Example:2022-08-01

The start date of the leave period

endDatestring
Example:2022-08-07

The end date of the leave period

filterstring
Example:cancellationPeriodTimeUnit.key eq 4

Filter the collection

orderBystring
Example:-companyName,address.houseNumber

Order the collection on one or more fields

pageNumberinteger
Example:2

Specifies which page should be returned

pageSizeinteger
Example:20

Specifies the number of objects per page

Headers

Authorizationstring required
Example:Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Acceptstring required
Example:application/json;version=2018-01-01

The accept header is used to influence what type of output is returned and in most cases the version of the output

Response

OK