---
title: "years of service based leave"
method: GET
path: "/v2/providers/employers/leavePolicies/{leavePolicyId}/yearsofservicebasedleave"
tags: ["Leave policy"]
---

# years of service based leave

`GET /v2/providers/employers/leavePolicies/{leavePolicyId}/yearsofservicebasedleave`

__Activity name :__ <a href="https://developer.loket.nl/Activities/GetYearsOfServiceBasedLeaveByLeavePolicyId" target="_blank">GetYearsOfServiceBasedLeaveByLeavePolicyId</a> <br/>  <br/>  Returns the years of service based leave for the given leave policy.

## Path parameters

- `leavePolicyId` string, uuid, required

## Query parameters

- `filter` string
- `orderBy` string
- `pageNumber` integer
- `pageSize` integer

## Headers

- `Authorization` string, required
- `Accept` string, required

## Response `200`

OK

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `500` — Internal Server Error

---

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