Loket.nl API

Loket.nl API (V2)

Download OpenAPI specification:

Is this your first time here? Please check out our introduction to Loket (API)

The initial loading time of this developer portal may be very long due to the large number of endpoints designs being rendered when loading the page. We are looking into an alternative solution but for now please bear in mind.

General

The Loket.nl API is a RESTful API that exposes the data and features of the Loket.nl platform. The API accepts and returns JSON and can only be accessed by registered users. This documentation describes version 2 of the API.

Are you looking to partner up and start building an integration based on the Loket RESTful API? Please check out the steps for partners on our website .

Have you received your client and user credentials from us? Check out the following Postman collection to help you start making your first API calls on our acceptance environment. We would recommend to install the Postman desktop app.

Run in Postman

Do you want to contact us with any further questions or remarks regarding the Loket RESTful API? Please send an email to api@loket.nl, and we will get back to you.

Environments

The Loket.nl API has two different environments. The first environment is the "acceptance" environment which is used during development and returns test data. The second environment is the production environment which is to be used exclusively by approved applications. Both environments have their own URLs.

OpenAPI documentation

The endpoints are defined using the OpenAPI 3.1 specification, an industry-wide recognized standard for describing REST API's.

Please note: the endpoint documentation in this portal is not designed to be fully compatible with any automatic code generation tools.

Change policy

Over the course of time the API, and policies regarding the API can and will change. These changes are subject to the following guidelines.

The following states hold true for the change policy for this API.

  • Loket.nl may sometimes introduce changes to the API and policies without advance notice.
  • Loket.nl will try to inform users of any (breaking) change in advance.
  • Loket.nl will not be liable to you or any third party for such modifications or any adverse effects resulting from such modifications.
  • Loket.nl will try to avoid breaking changes as much as possible.

Notification periods

In regard to changes Loket.nl will strive to adhere to the following notification periods per type of change. Due to our versioning strategy at resource level this API has the possibility to run multiple versions of the same resource at one time. This allows for a window in which both the old and new version are available. Allowing for a gradual move to the new version.

Type of change Notification period Support period old version
Non breaking change 2 weeks no new version
Breaking change 2 weeks 6 months
Critical Due to the nature of these changes we might not be able to follow the normal procedure for change managment depends on the severity of the issue

We define a non breaking change as follows. Any change to the API that does not cause failures in the applications that consume that API.

  • Introducing a new optional field to an existing resource
  • Introducing a new endpoint
  • Introducing a new operation (GET/PUT/POST/PATCH/DELETE)
  • Introducing a new optional parameter to an endpoint
  • Introducing a new version for a resource

We define a breaking change as follows. any change to an API that could potentially cause failures in the applications that consume that API.

  • Changing an existing JSON element (name, datatype, pattern, min/max length etc)
  • Removing a JSON element, endpoint, operation or parameter
  • Introducing a required JSON element
  • Introducing a required parameter to an endpoint
  • Passing the obsoleteDate of a version for a resource

Versioning

The Loket API uses two types of versioning. API versioning and resource versioning.

API versioning

API versioning is done via the path where after the domain URL (api.loket.nl) the path starts with the API version. The current version of the API is V2. The API version is expected to change rarely as resource versioning is available to tackle most issues that need versioning.

Resource versioning

Every JSON resource in the API is versioned via the Accept header. Allowing users of the API to influence what version is returned by setting the mandatory accept header. The Accept header of request should have a value like application/json;version=2018-01-01. Here, the second part of the header is used to refer to a specific version of the resource (2018-01-01). When calling the API it is possible to supply other dates rather than the exact resources version(s). The businesslogic will select the version that is ON or BEFORE the given date. If no accept header with a resource version is given the newest version of the resource is returned

For example: let's say there are two versions of a resource. These are 2018-01-01 and 2018-09-01. When calling the API you supply application/json;version=2018-08-01, in that case the API will use the version 2018-01-01 as its the nearest version in the past.

A response returns what resourceVersion was used and the 'obsoleteDate' of that version (in most cases this is NULL). The obsoleteDate indicates when the resources version will no longer be available via the API. With the introduction of a new version of a resource the obsoleteDate for the old version will be set to 6 months after the introduction of the new resource. Allowing consumers of the resource 6 months to incorporate the change. Failure to do so will likely lead to failure in the implementation.

In this developer portal you can find the service contracts for each, active, version of a resource. If, only if, there are multiple versions of a resource you can select the corresponding schema at that resource.

Changelog

The changelog for this API can be found here.

We strongly advise every user ofthe Loket REST API the subscribe to the email feed. Please check out the link on the changelog page.

Legal notices

Your use and access to the API is expressly conditioned on your compliance with the policies and restrictions related to the API. If Loket.nl believes that you have or attempted to violate any term, condition, or the spirit of these policies or agreements, your right to access and use the API may be temporarily or permanently revoked.

Authentication

Authorization in the Loket API is based on the industry-standard OAuth 2.0 protocol. For general information on OAuth 2.0 we kindly refer to the publicly-available documentation, https://oauth.net/2/

An authorized user is required to call the Loket API.

Note: This is an SSL-only API.

Note: Only TLS 1.2 is supported.

Environment TokenUrl
Acceptance https://oauth.loket-acc.nl/token
Production https://oauth.loket.nl/token

The following OAuth 2.0 flows are supported

  • Authorization Code flow (standard)
  • Refresh Token flow (extension on the Authorization Code Flow)
  • SSO flow (single sign-on)
  • Password flow

Authorization code flow

For most clients only the authorization_code (and thus refresh_token) will be supported. Password grant type is not available for an external client.

Please click the link below to see documentation on implementing the authorization code flow by external clients.

Documentation on implementing the OAuth 2.0 authorization code flow

Refresh token flow

After the authorization code flow yields a refresh token the refresh_token grant can be used to obtain an access/bearer token. The expire time of the access/bearer is also returned in the response please take this into account. With the refresh token flow the two factor step will be skipped.

Refresh token request example:

POST /token 
grant_type=refresh_token&refresh_token={RefreshToken123}&client_Id={Client123}&client_secret={Secret123}

Refresh token response example:

{
  "access_token": "JESJDhMBy0NPTM9SiXmYAzW45clOiQ5wSyDq3VWluguGNoKym4WPSiJoTDx67TQ",
  "token_type": "bearer",
  "expires_in": 3599,
  "refresh_token": "nGJtF6j6SeQbHAg",
  "two_factor_state": "None"
}

SSO flow

The SSO (single sign-on) flow is based on OAuth 2.0 and requires the authorization flow to be completed.

For more information see: Documentation on OAuth 2.0 SSO flow (for allowed clients)

Please note: Among other things, it is possible to set up an SSO flow with both Loket en Werknemerloket.

Password flow

The password flow is typically NOT enabled for external clients. Only by exception will the password flow be enabled for security (and practical) reasons.

Password token request examples:

POST /token 
grant_type=password&username={UserName123}&password={Password123}&client_Id={Client123}&client_secret={Secret123}

Whether client_secret is required is dependent on the configuration of the client.

Authorization

In this section we explain how the API authorization service determines if a request is authorized or not.

The authorization entities

Entity Description
Client Loket.nl used the client as an additional authorisation entity. By linking clients to activities clients can only perform those activities they are linked to.
User Is linked to a client (by performing the authorization code flow) and to a set of rechten (configuration in loket.nl)
Module (product) Enables certain functionality for the provider/employer. Modules can be enabled and disabled on both provider and employer level.
Role Influences if certain "rechten" are available to the users with said role. It can also influence the scope of the data returned. For example: the API will deny an "afdelings manager" access to employee's that are not in the "afdeling" (department) that user is manager of
Activity Every action in the API has its own activity. Using the Open API 3.0 standard these activity names are incorporated in the documentation using the operationId and in most cases are named in the description of an endpoint.
Rights (rechten) Represent a group of activities.

The authorization process

This flow assumes that both user and client are correctly configured and have access to the API.

  1. Does the client have access to the activity?
  2. Does the user have access to the activity (through "recht")?
  3. Does the role have access to the activity (through "recht")?
  4. Does the provider/employer have the required module enabled for the activity?
  5. Does the user have access to the specified entity/ID?

If the answer to all the questions above is yes then the request is authorized otherwise the request is denied with a HTTP status code 403 (Forbidden). See the simplified authorization flow in the figure below.

Side note: users are linked to rechten and clients are linked to activities. This leaves room for discrepancies. Where a client cannot perform the activity because the client is not authorized to call that activity even though the user does have the "recht" granting access to the activity.

Loket authorization flow

Which users can use the API

In almost all use-cases a Loket user should meet the following requirements to successfully setup an integration with that user.

  • The user must be a normal Loket user (so NOT a webservice user)
  • The user must be active (not blocked)
  • The user must have access to an employer
    • For provider users this is done by assigning the user to the appropriate Team(s)
    • For employer users this is done by creating a user for or linking the user to the appropriate employer(s)
  • The user must have all appropriate rights
    • For provider users this is done by assigning appropriate rights via Team (or alternatively, directly to the user)
    • For employer users this is done by assigning appropriate rights to the user on employer level

How to setup an integration is described in the Authentication section.

Side notes:

  • A user can have access to multiple employers with different rights per employer.
  • Please note that users set up to use the SOAP webservices (webservicegebruikers) are in no way suited to perform calls to the RESTful API, these require entirely different user set-ups.
  • User management on production is typically done by the provider (i.e. the accountant) and sometimes the employer. This is NOT something Loket.nl itself can do.

Data

Data types

The Loket.nl API accepts and returns JSON. Comform the OpenAPI 3.0 specification the following data types are supported:

  • string
  • number (point is used to separate the integer part from the fractional part of a number)
  • integer (from OpenAPI)
  • object
  • array
  • boolean

For most of these types, further specifications can be found in the format and pattern specifications in the service contract. For example a format: date added to a string field indicates a valid date must be supplied.

Metadata

Fields of the type 'metadata' are fields for which the possible values can be acquired via the metadata endpoint of the resource.

The metedata can be obtained by appending /metadata to the current endpoint. Using the GET verb the endpoint will return a JSON output with "all" the metadata for the given resource. In some cases multiple requests are needed to obtain all the metadata required, an exmple is given below. Typically different metadata endpoints are availalbe for the POST and the PUT endpoint.

If metadata endpoints are avaible for a given endpoint/resource is mentioned in the description of that endpoint.

Example response

{[
  {
      "field": "gender"
      options: [
          {
          "key": 1,
          "value":"Man"
          }
          {
          "key": 2,
          "value":"Vrouw"
          }
      ]
   },
   {
      "field": "country"
      options: [
          {
          "isoCode":"NL",
          "key": 530,
          "value":"Nederland"
          }
          {
          "isoCode":"BE",
          "key": 540,
          "value":"België"
          }
      ]
   }

]}

Example urls

Acquiring metadata for a POST Wage

/v2/providers/employers/employees/employments/{employmentId}/wages/metadata

Acquiring metadata for a PUT employee

/v2/providers/employers/employees/{employeeId}/metadata

Multiple requests to get all the metadata

In some cases there are metadata fields dependant on the selected value off another metadata field. Such is the case when adding a new concept employee. This is done in the employer context while several of the metadata fields are dependant on the payrollAdministration context.

For example:

Request 1, first of a normal metadata request is performed. The response for this request will contain a list of payrolladministration for the given employer.

/v2/providers/employers/b869ded6-0659-4d8d-9a8a-f9e22425ec9c/jobapplicant/metadata

Request 2, when a payrolladministration is selected perform a second request to acquire the payrolladministration specific metadata.

/v2/providers/employers/jobapplicant/metadata/payrolladministration/54369214-14a1-41ab-892a-ea8438e34d6f

Request 3, if a payScale is selected perform a third request to acquire the payGrade for that payScale.

/v2/providers/employers/jobapplicant/metadata/salaryScaleType/54369214-14a1-41ab-892a-ea8438e34d6f

Types of metadata

We diferentiate between two types of metadata.

  1. Generic metadata field. The possible values for these fields are the same for every object no matter the provider, employer or employee etc. Examples are: country, gender and nationality.
  2. Context specific metadata field. Examples of contexts are employer, payroll administration, provider and Loket.nl. In most cases the possible values for these field are resources in themselves and can be managed via the API. If a metadata field is context specific the context is given in the description of the field. Examples are: function, department and leaveType.

Note: some context specific metadata field can have multiple contexts.

For example: it is possible to define an export set in the provider context. Making that export set available for all payroll administrations linked to the provider. It is also possible to add an export set in the payroll administration context. That export set is only available to that payroll administration. When requesting the metadata of export set the user will be presented with a combined list of the provider and payroll administration export sets.

Default values

Many fields in the API have a default value. In order to assist our API users to adhere to these defaults when creating a record (POST) we provide /defaults endpoints.

  • An object returned by the defaultsendpoint resembles a fully expanded GET-object of that resource. The only case when a part of the object is NOT fully expanded is for a metaData-object that does not have a default value (for example '"gender":NULL').
    • Whether an object within the resource is of the type metaData is indicated in the service contracts of that resource.
  • Context is determined by the GUID given in the Path. Examples are employer, payroll administration, employee and employment.
  • A scope is sometimes required to determine the defaults values. A scope could be a date by which Loket.nl can determine what default was active on that date. The scope can be set by supplying additional paraments in the request. If a scope is required but none is given the currently active or last know value is returned.
  • The fields with no default will be set to null (even if the field is normally non-nullable).
  • Because the GET-object is returned the readonly fields are also returned.

An example endpoint would be:

/v2/providers/employers/employees/employments/{employmentId}/payrollperioddata/defaults

resulting in the following output:

{
  "payrollPeriod": null,
  "shift": {
      "shiftNumber": 1
  },
  "payslipType": {
      "key": 2
  },
  "payslipText": null,
  "distributionUnit": {
      "key": "b14acd0d-75d7-4fc8-8b22-4a3924585cab"
  },
  "costCenter": {
      "key": 2
  },
  "costUnit": {
      "key": 2
  },
  "payrollComponents": []
}

Note: Defaults endpoints are not yet generically available. If a Defaults endpoint exists this will be explicitly stated at that specific resource.

Date chains

For most of the resources with a startDate and endDate a chain is maintained. Chain meaning that no records can overlap in time. Loket.nl has two types of chains.

  1. Broken chain: It is possible for gaps te exist between the records. It is also possible to add new records in between or before existing records aslong as no overlap occures.

  2. Linked chain: No gaps between records are allowed. Its only possible to add new records to the end of the chain resulting in the closing of the reviouse record with the start date -1 as end date.

Note: Chains are sometimes maintained with an additional context. For example, For benefits and deductions the broken chain is maintained per payrollComponent. It is possible to have multiple active records for different payrollComponent never two active records for the same payrollComponent.

Custom export

For some GET (list) endpoints the API supports exporting (part of) the output JSON as a XML/CSV file. This is done by setting the X-ReportInput and Accept header.

The Accept header supports the following 2 options:

  • CSV (text/csv;version=yyyy-MM-dd)
  • Excel (application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;version=yyyy-MM-dd)

The X-ReportInput is a custom header that requires a JSON object with the following structure as input.

  1. fileNameWithoutExtension --> The filename without extension for the report 'FileNameWithoutExtension'
  2. delimiter --> The delimiter to be used. If not set "," is used
  3. decimalSeparator --> The decimalSepartor for number fields. If not set "." is used.
  4. fields --> Array of fields.

The 'fields' object contains one or more fields with the following properties:

  1. fieldName --> A Xpath reference to the field to be included in the export
  2. reportColumnName --> The column name for the field
  3. format --> Allows only for date formatting. e.g. dd-MM-yyyy for csv or dd-mm-yyyy for Excel (Excel only usses lowercase)

3.1 For CSV: see https://learn.microsoft.com/en-us/dotnet/standard/base-types/custom-date-and-time-format-strings

3.2 For Excel: https://support.microsoft.com/en-us/office/number-format-codes-5026bbd6-04bc-48cd-bf33-80f18b4eae68

Example X-ReportInput:

{
"fileNameWithoutExtension":"MyExport",
"delimiter": ";",
"decimalSepartor": ",",
"fields":
  [
    {
      "fieldName": "startDate",
      "reportColumnName": "In dienst datum",
      "format": "dd-MM-yyyy"
    },
    {
      "fieldName": "personalDetails.firstName",
      "reportColumnName": "First Name"
    },
    {
      "fieldName": "personalDetails.lastName",
      "reportColumnName": "Last Name"
    }
  ]
}

Example request:

curl 
--location 
--request GET 'https://api.loket.nl/v2/providers/employers/155c8440-8ff6-4776-98db-5d2243a073e3/employees?orderby=employeeNumber' \
--header 'Content-Type: application/json' \
--header 'Accept: text/csv;version=2020-08-18' \
--header 'X-ReportInput: {"FileNameWithoutExtension":"MyExport","Fields":[{"fieldName":"personalDetails.initials","reportColumnName":"Initials"},{"fieldName":"personalDetails.firstName","reportColumnName":"First name"},{"fieldName":"personalDetails.lastName","reportColumnName":"Last name"}]}' \--header 'Authorization: Bearer ZKoiC_g_NfYA3v0' \

Request

A request to the Loket.nl API consists of several components. Each of these components are discussed in this section.

Base URL

The API can be accessed at https://api.loket.nl. The version of the API is specified in the URL. The current version of the Loket.nl API is version 2. To access version 2 of the API, one simply appends v2 to the base URL. The full base URL of the API is therefore https://api.loket.nl/v2.

Endpoints

The endpoints defined in the OpenAPI definition of the Loket.nl API are appended to the base URL. For example, the endpoint /providers/employers/{employerId}/employees can be accessed at https://api.loket.nl/v2/providers/employers/{employerId}/employees.

Path parameters

Most endpoints require path parameter(s) in order to specify the context of the request. For example, the endpoint /providers/employers/{employerId}/employees contains the employerId path parameter. A path parameter is a unique identifier that identifies a specific resource, in this case an employer.

Pagination

The API supports two query parameters to control the pagination of the results: pageNumber and pageSize. Both of these query parameters only apply to endpoints that return lists of entities.

The pageNumber query parameter specifies which page of the collection to return. By default pageNumber is set to 1 which returns the first page of the collection. Note: the pageNumber refers to the page (with a given number of entities), NOT to a specific entity within a page!

The pageSize query parameter influences the number of entities per page. By default pageSize is set to 250. Note that this default may change in the future. It is not recommended to depend on this default when developing for the Loket.nl API.

Examples:

  • ?pageNumber=2 to return the second page
  • ?pageSize=2 to set the page size to two

Filtering

The API supports output filtering via the querystring parameter filter.

Filtering is possible on all fields of the following datatypes:

  • string
  • integer
  • boolean
  • date-time
  • decimals

The following operators are available:

Operator Description Example
Comparison Operators
eq Equal city eq 'Redmond'
ne Not equal city ne 'London'
lk Like city lk 'Lond'
gt Greater than price gt 20
ge Greater than or equal price ge 10
lt Less than price lt 20
le Less than or equal price le 100
Logical Operators
and Logical and price le 200 and price gt 3.5
or Logical or price le 3.5 or price gt 200

Both field names and values are case insensitive. It is possible to filter on nested fields by adding the parent object before the field with a '.' to separate them. Do remember to URL encode the filter parameters.

Examples

All employments with a cancellation periode in months (the value 4 corresponds to months time unit).


/v2/providers/employers/{{employerId}}/employees/employments?filter=cancellationPeriodTimeUnit.key eq 4

All employments with no endDate.s


/v2/providers/employers/{{employerId}}/employees/employments?filter=enddate eq null

All employments with an end date less or equal to 2017-01-01


/v2/providers/employers/{{employerId}}/employees/employments?filter=enddate le '2017-01-01'

All employees with a employee number greater or equal 1 and less or equal 5


/v2/providers/employers/{{employerId}}/employees?filter=employeeNumber ge 1 and employeeNumber le 5

Ordering

All Loket.nl API resources support ordering of the elements in the response on a specific field. All fields can be used in ordering. The list can be ordered in ascending or descending order, with ascending being the default one. Ordering on multiple fields is also by using a ',' as a separator.

Examples

Order employers by company name ascending


/v2/providers/employers?orderBy=companyName

Order employers by company name descending


/v2/providers/employers?orderBy=-companyName

Order employers by company name descending then by house number ascending


/v2/providers/employers?orderBy=-companyName,address.houseNumber

Headers

In order to access the endpoints of the Loket.nl API, at least two request headers need to be set.

1) the Authorization header is required in order to authorize the API call. The value of this header is the word Bearer followed by a space and the access token acquired from the /token endpoint. For example, if the acquired access token is AbCdEf123456, the value of the Authorization headers would be:

Authorization: Bearer v69uloc3wcEFLePw2unot0FfAJfBocrvSwsrCo75JLUG7aE54zqSUnU

2) The second header that is required for proper usage of the API, is the Accept header. This header is used for the resource versioning feature and is therefore crucial for making sure the response remains the same when new resource versions are introduced. The value of the Accept header differs per endpoint is defined in the OpenAPI documentation of the endpoints.

Accept: application/json;version=2018-01-01

Response

In addition to the responses defined in the OpenAPI documentation, the Loket.nl API also provides additional fields that give more information about the response and the entities requested. This section will explain the full response given by the Loket.nl API by examining the example response below.

Example 400 response


{
    "version": {
        "obsoleteDate": null,
        "versionNumber": "2018-01-01,
    },
    "messages": [
        {
            "code": 83,
            "id": null,
            "type": "BrokenBusinessRule",
            "description": "[field] has an invalid length",
            "properties": []
        }
    ],
    "_embedded": []
}

Example 200 response


  {
      "totalSize": 1,
      "pageSize": 250,
      "totalPages": 1,
      "currentPage": 1,
      "version": {
          "obsoleteDate": null,
          "resourceVersion": "2018-01-01"
      },
      "messages": [],
      "content": {
          "id": "2b4c119c-527c-4cbb-a5b2-f3a11e4b76cx",
          ...
      }
  }

Paging

  • totalSize has an integer value indicating the total number of entities irrespective of the page size.

  • pageSize has an integer value indicating the maximum number of entities returned per page. The page size can be influenced by setting the pageSize query parameter. See the section Query Parameters for more information.

  • totalPages has an integer value indicating the number of pages the requested collection holds given the specific pagesize.

  • currentPage has an integer value indicating the current page number. The current page number can be influenced by setting the pageNumber query parameter. See the section Query Parameters for more information.

Version

The version object provides information regarding the resource version of the entity requested.

  • obsoleteDate contains the date of discontinuation for the requested resource version. The value of this field can be null indicating that the requested resource version is not planned to be obsoleted at the time of the request.

  • resourceVersion shows the version of the requested entity. The resource version can be influenced by setting the Accept header.

Messages

The messages field contains a list of message objects related to the request made. Any warnings and errors will be communicated in this list of messages

  • type has a string value indicating the type of message. At this time the Loket.nl API supports five types of messages: BrokenBusinessRule, Warning, Exception and NotFound .

  • description has a string value that describes the message that has occurred.

  • code is an identifying code for the message. Please note that this code may change in the future. See the documentation portal for possible message codes for an endpoint.

  • id relates the message to a specific entity in the reponse list. For example, in cases where a warning occurs for one of the entities in a list, the value of this field can be used to identify to which entity the warning applies. Currently implemented for endpoints where a multi-patch is performed (multiple actions are performed within one call) for example updating the status of one or more leaveRequests.

  • properties an array that can contain additional information regarding the message. Currently not yet fully implemented.

  • _embedded contains the list of entities as defined for each endpoint in the OpenAPI documentation. Please refer to that documentation for the contents of the _embedded field for each endpoint. For endpoints that return only one entity (detail endpoints) the _embedded field is replaced with a content field. The content of this field can also be found in the documentation for each endpoint.

Headers

  • Expires header is returned with every response to indicate how long a response can be cached
  • Content-Disposition header is used in case of downloads to provide a file name

HTTP status codes

The Loket.nl API supports the following http status codes.

Code Is returned when
200 The request to GET, PUT, PATCH or DELETE and object was recived and processed successfully. The response might still contain messages of the type warning.
201 The request to insert (POST) a new object was recived and processed successfully. The response might still contain messages of the type warning.
400 The request was received but could not be processed. The reason(s) will be given in the response. The content type of the response may be text/plain for API-level error messages, such as when trying to call the API without SSL otherwise the content will be application/json.
401 The bearer token provided in the authorization header is invalid. Do not retry the request until a new (valid) bearer token is acquired.
403 The user is not authorized to access the resource. The reason will be given in the response. Do not retry the request until the, configuration, issue is resolved.
404 The resource requested was not found/does not exist.
50* A unforseen error occurred. Please check the request if everything seems te be in order on your side contact the support team. Provide as much information as possible to resolve the issue.

Note: for a limited number of endpoint a so-called multi-patch may be performed (multiple actions within one call). In that case the status code will be 200 if at least on of the actions succeeds, if other any action(s) in that call fail(s) a message will be returned including the given id of that entity.

Caching

The API uses the Expires header to indicate how long the item can be reused from the local cache. In most cases caching is not allowed for resources. Exceptions excist, such as pictures like the employer logo and the employee photo, in these cases the cache duration is mentioned in the description of the resource.

Provider

NL: Provider (i.e. accountant) Provider related endpoints.

List of providers

Activity name : GetProvidersByUser

Get a list of all providers accessible to the current user. Note: With the current functioning of Loket, the list will always contain 1 provider.

Note: This endpoint is typically not relevant for most external parties, as the GetEmployerByUser endpoint will be much more relevant as starting point.

query Parameters
filter
string
Example: filter=cancellationPeriodTimeUnit.key eq 4

Filter the collection

orderBy
string^-?\w+(,-?\w+)*$
Example: orderBy=-companyName,address.houseNumber

Order the collection on one or more fields

pageNumber
integer <int32>
Default: 1
Example: pageNumber=2

Specifies which page should be returned

pageSize
integer <int32>
Default: 250
Example: pageSize=20

Specifies the number of objects per page

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json;version=2018-01-01
{
  • "totalSize": 650,
  • "pageSize": 250,
  • "totalPages": 3,
  • "currentPage": 2,
  • "version": {
    },
  • "messages": [
    ],
  • "_embedded": [
    ]
}

Download the provider logo

Activity name : GetProviderLogo

This activity is listed twice in the documentation due to the specified version caching path parameter. Including or exluding this parameter results in slightly different behaviour.

Caching: This resource changes very infrequently and can be cached for a longer time.

Get the logo of the provider of the user. In case no logo is know the service will return a 404.

path Parameters
providerId
required
string <uuid>

The unique identifier of a provider

version
required
string <uuid>

An guid generated for caching. The value does not influence the output of this function. The provider/logo endpoint returns the URI of the current logo with the version.

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json
{
  • "message": "Authorization has been denied for this request."
}

Logos at providerlevel

Activity name : GetProviderLogosByProviderId

Get a list of all logos that are available at providerlevel. Other endpoints can be used to set the logo as default for all employers or to set the logo as a aberrant provider logo at employer level.

path Parameters
providerId
required
string <uuid>

The unique identifier of a provider

query Parameters
filter
string
Example: filter=cancellationPeriodTimeUnit.key eq 4

Filter the collection

orderBy
string^-?\w+(,-?\w+)*$
Example: orderBy=-companyName,address.houseNumber

Order the collection on one or more fields

pageNumber
integer <int32>
Default: 1
Example: pageNumber=2

Specifies which page should be returned

pageSize
integer <int32>
Default: 250
Example: pageSize=20

Specifies the number of objects per page

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json;version=2018-01-01
{
  • "totalSize": 650,
  • "pageSize": 250,
  • "totalPages": 3,
  • "currentPage": 2,
  • "version": {
    },
  • "messages": [
    ],
  • "_embedded": []
}

Upload a logo for the provider

Activity name : PostProviderLogoByProviderId

Upload a logo at providerlevel. Other endpoints can be used to set the logo as default for all employers or to set the logo as a aberrant provider logo at employer level.

path Parameters
providerId
required
string <uuid>

The unique identifier of a provider

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Request Body schema: application/json;version=2018-01-01
required

Logo to be uploaded for the provider.

attribute
string <= 10 characters

the attribute of the logo.

name
string <= 50 characters

The name of the logo.

data
string

base64 encoded document file.

mimeType
string

The mimetype of the data.

Responses

Request samples

Content type
application/json;version=2018-01-01
{
  • "attribute": "Logo 1",
  • "name": "ProviderLogo",
  • "data": "YQ==",
  • "mimeType": "image/jpeg"
}

Response samples

Content type
application/json;version=2018-01-01
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": {
    }
}

Logo at providerlevel

Activity name : GetProviderLogoByLogoId

Get a logo that is available at providerlevel. Other endpoints can be used to set the logo as default for all employers or to set the logo as a aberrant provider logo at employer level.

path Parameters
logoId
required
string <uuid>

The unique identifier of a logo

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json;version=2018-01-01
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": {
    }
}

Edit a provider logo

Activity name : PutProviderLogoByLogoId

Edit a logo at providerlevel. Other endpoints can be used to set the logo as default for all employers or to set the logo as a aberrant provider logo at employer level.

path Parameters
logoId
required
string <uuid>

The unique identifier of a logo

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Request Body schema: application/json;version=2018-01-01
required
attribute
string <= 10 characters

the attribute of the logo.

name
string <= 50 characters

The name of the logo.

data
string

base64 encoded document file.

mimeType
string

The mimetype of the data.

Responses

Request samples

Content type
application/json;version=2018-01-01
{
  • "attribute": "Logo 1",
  • "name": "ProviderLogo",
  • "data": "YQ==",
  • "mimeType": "image/jpeg"
}

Response samples

Content type
application/json;version=2018-01-01
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": {
    }
}

Delete a logo at providerlevel

path Parameters
logoId
required
string <uuid>

The unique identifier of a logo

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": { }
}

Logo without properties at providerlevel

Activity name : GetProviderLogoOnlyByLogoId

Get the logo that is available at providerlevel, without additional properties. Other endpoints can be used to set the logo as default for all employers or to set the logo as a aberrant provider logo at employer level.

path Parameters
logoId
required
string <uuid>

The unique identifier of a logo

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json
{
  • "message": "Authorization has been denied for this request."
}

Employer

NL: Werkgever. Manage an employer

List of employers

Activity name : GetEmployersByUserId

Get a list of all employers accessible to the current user

Please note the following general remark regarding the Loket API. If an id is required as a path parameter, in almost all cases the UUID of the specific resource should be used. In the employer resource this corresponds to the the 'id' field, as is typical. (so do NOT use employerNumber as your path parameter for any following requests)

query Parameters
filter
string
Example: filter=cancellationPeriodTimeUnit.key eq 4

Filter the collection

orderBy
string^-?\w+(,-?\w+)*$
Example: orderBy=-companyName,address.houseNumber

Order the collection on one or more fields

pageNumber
integer <int32>
Default: 1
Example: pageNumber=2

Specifies which page should be returned

pageSize
integer <int32>
Default: 250
Example: pageSize=20

Specifies the number of objects per page

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json;version=2018-01-01
{
  • "totalSize": 650,
  • "pageSize": 250,
  • "totalPages": 3,
  • "currentPage": 2,
  • "version": {
    },
  • "messages": [
    ],
  • "_embedded": [
    ]
}

List of employers with fewer fields for performance reasons

Activity name : GetEmployersMinimizedByUser

Get a list of all employers accessible to the current user. With this endpoint we introduced the "Minimized" resource which contains fewer fields then /providers/employers. This version should increase performance when requesting employments for large employers.

query Parameters
filter
string
Example: filter=cancellationPeriodTimeUnit.key eq 4

Filter the collection

orderBy
string^-?\w+(,-?\w+)*$
Example: orderBy=-companyName,address.houseNumber

Order the collection on one or more fields

pageNumber
integer <int32>
Default: 1
Example: pageNumber=2

Specifies which page should be returned

pageSize
integer <int32>
Default: 250
Example: pageSize=20

Specifies the number of objects per page

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json;version=2018-01-01
{
  • "totalSize": 650,
  • "pageSize": 250,
  • "totalPages": 3,
  • "currentPage": 2,
  • "version": {
    },
  • "messages": [
    ],
  • "_embedded": []
}

Create an employer

Activity name : PostEmployerByProviderId

Create an employee for the provider (administratiekantoor) identified by the given providerId. Please take note of the following; a newly created Employer is not immediately accessible for the user. As this would require adding the Employer to a specific Loket team (which is a separate activity). Even after adding the Employer to a team, it may take a few minutes before the Employer is accessible for the user because of caching.

Metadata : Possible options for fields of the type 'metadata' can be acquired (GET) by adding /metadata to the POST URL.

Defaults : Default values for a new object can be acquired by adding `/defaults' to the POST URL.

path Parameters
providerId
required
string <uuid>

The unique identifier of a provider

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Request Body schema: application/json;version=2018-01-01
required

Employer to be created.

companyName
string (companyName) <= 70 characters

Name of the company

chamberOfCommerceNumber
string or null (chamberOfCommerceNumber) <= 35 characters

Chamber of commerce number. In Dutch "Kamer van koophandel" number

object or null <metadata> (sbi)

The 'Standard Industrial Classifications (Dutch SBI 2008, NACE and ISIC)' as defined bij the Dutch chamber of commerce

object or null <metadata> (legalForm)
object or null <metadata> (branch)
object (providerSettings)
object or null (contact)
object or null (components-schemas-contactInformation)
object (address)
object or null (deviatingPostalAddress)

Responses

Request samples

Content type
application/json;version=2018-01-01
{
  • "companyName": "Voorbeeld B.V.",
  • "chamberOfCommerceNumber": "18124676",
  • "sbi": {
    },
  • "legalForm": {
    },
  • "branch": {
    },
  • "providerSettings": {
    },
  • "contact": {
    },
  • "contactInformation": {
    },
  • "address": {
    },
  • "deviatingPostalAddress": {
    }
}

Response samples

Content type
application/json;version=2018-01-01
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": {
    }
}

Details of an employer

Activity name : GetEmployerByEmployerId

Get the details of a single employers

path Parameters
employerId
required
string <uuid>

The unique identifier of the employer

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json;version=2018-01-01
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": {
    }
}

Edit the details of an employer

Activity name: PutEmployerByEmployerId

Edit the details of an employer

Possible options for fields of the type 'metadata' can be acquired (GET) by adding /metadata to the PUT URL.

path Parameters
employerId
required
string <uuid>

The unique identifier of the employer

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Request Body schema: application/json;version=2018-01-01
required

Employer

companyName
string (companyName) <= 70 characters

Name of the company

chamberOfCommerceNumber
string or null (chamberOfCommerceNumber) <= 35 characters

Chamber of commerce number. In Dutch "Kamer van koophandel" number

object or null <metadata> (sbi)

The 'Standard Industrial Classifications (Dutch SBI 2008, NACE and ISIC)' as defined bij the Dutch chamber of commerce

object or null <metadata> (legalForm)
object or null <metadata> (branch)
object (providerSettings)
object or null (contact)
object or null (components-schemas-contactInformation)
object (address)
object or null (deviatingPostalAddress)

Responses

Request samples

Content type
application/json;version=2018-01-01
{
  • "companyName": "Voorbeeld B.V.",
  • "chamberOfCommerceNumber": "18124676",
  • "sbi": {
    },
  • "legalForm": {
    },
  • "branch": {
    },
  • "providerSettings": {
    },
  • "contact": {
    },
  • "contactInformation": {
    },
  • "address": {
    },
  • "deviatingPostalAddress": {
    }
}

Response samples

Content type
application/json;version=2018-01-01
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": {
    }
}

List of child employers accessible to the current user

Activity name : GetChildEmployersByEmployerId

Get a list of all employers accessible to the current user which are a child of the provided employer.

path Parameters
employerId
required
string <uuid>

The unique identifier of the employer

query Parameters
filter
string
Example: filter=cancellationPeriodTimeUnit.key eq 4

Filter the collection

orderBy
string^-?\w+(,-?\w+)*$
Example: orderBy=-companyName,address.houseNumber

Order the collection on one or more fields

pageNumber
integer <int32>
Default: 1
Example: pageNumber=2

Specifies which page should be returned

pageSize
integer <int32>
Default: 250
Example: pageSize=20

Specifies the number of objects per page

includeParent
boolean
Example: includeParent=true

Determines whether the information of the parent employer should be included in the response. If not provided, this parameter defaults to false and the response will not include the information of the parent.

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json;version=2018-01-01
{
  • "totalSize": 650,
  • "pageSize": 250,
  • "totalPages": 3,
  • "currentPage": 2,
  • "version": {
    },
  • "messages": [
    ],
  • "_embedded": [
    ]
}

Logo of an employer

Activity name : GetEmployerLogoByEmployerId

This activity is listed twice in the documentation due to the specified version caching path parameter. Including or exluding this parameter results in slightly different behaviour.

Caching: This resource changes very infrequently and can be cached for a longer period.

Get the logo of the employer. In case no logo is know the service will return a 404.

path Parameters
employerId
required
string <uuid>

The unique identifier of the employer

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json
{
  • "message": "Authorization has been denied for this request."
}

Delete the employer logo

Activity name: DeleteEmployerLogoByEmployerId

Delete the logo of an employer

path Parameters
employerId
required
string <uuid>

The unique identifier of the employer

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": { }
}

Upload a logo for the employer

Activity name : PostEmployerLogoByEmployerId

Upload a logo for the employer.

path Parameters
employerId
required
string <uuid>

The unique identifier of the employer

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Request Body schema: application/json;version=2018-01-01
required

Logo to be uploaded for the employer.

data
string

base64 encoded document file.

mimeType
string

The mimetype of the data.

Responses

Request samples

Content type
application/json;version=2018-01-01
{
  • "data": "YQ==",
  • "mimeType": "image/jpeg"
}

Response samples

Content type
application/json;version=2018-01-01
{
  • "messages": [
    ]
}

Logo of an employer

Activity name : GetEmployerLogoByEmployerId

This activity is listed twice in the documentation due to the specified version caching path parameter. Including or exluding this parameter results in slightly different behaviour.

Caching: This resource changes very infrequently and can be cached for a longer period.

Get the logo of the employer. In case no logo is know the service will return a 404.

path Parameters
employerId
required
string <uuid>

The unique identifier of the employer

version
required
string <uuid>

An optional guid generated for caching. The value does not influence the output of this function. The Employer resource returns the URI of the current logo.

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json
{
  • "message": "Authorization has been denied for this request."
}

Provider logo

Activity name : GetProviderLogoByEmployerId

This activity is listed twice in the documentation due to the specified version caching path parameter. Including or exluding this parameter results in slightly different behaviour.

Get the (deviating) provider logo of the employers. In case no logo is know the service will return a 404.

Caching: This resource changes very infrequently and can be cached for a longer time.

path Parameters
employerId
required
string <uuid>

The unique identifier of the employer

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json
{
  • "message": "Authorization has been denied for this request."
}

Provider logo

Activity name : GetProviderLogoByEmployerId

This activity is listed twice in the documentation due to the specified version caching path parameter. Including or exluding this parameter results in slightly different behaviour.

Get the (deviating) provider logo of the employers. In case no logo is know the service will return a 404.

Caching: This resource changes very infrequently and can be cached for a longer time.

path Parameters
employerId
required
string <uuid>

The unique identifier of the employer

version
required
string <uuid>

An optional guid generated for caching. The value does not influence the output of this function. The Employer resource returns the URI of the current logo.

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json
{
  • "message": "Authorization has been denied for this request."
}

Administration

NL: Administratie. Retrieve information about all administrations, both payroll administrations and non-payroll administrations.

List of administrations for an employer

Activity name : GetAdministrationsByEmployerId

Get a list of all administrations (both payroll and non-payroll) for an employer. This endpoint only returns properties that are shared between payroll and non-payroll administrations. For more detailed properties, use the respective endpoints for payroll and non-payroll administrations.

path Parameters
employerId
required
string <uuid>

The unique identifier of the employer

query Parameters
filter
string
Example: filter=cancellationPeriodTimeUnit.key eq 4

Filter the collection

orderBy
string^-?\w+(,-?\w+)*$
Example: orderBy=-companyName,address.houseNumber

Order the collection on one or more fields

pageNumber
integer <int32>
Default: 1
Example: pageNumber=2

Specifies which page should be returned

pageSize
integer <int32>
Default: 250
Example: pageSize=20

Specifies the number of objects per page

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json;version=2018-01-01
{
  • "totalSize": 650,
  • "pageSize": 250,
  • "totalPages": 3,
  • "currentPage": 2,
  • "version": {
    },
  • "messages": [
    ],
  • "_embedded": [
    ]
}

List of administrations

Activity name : GetAdministrationsByBearerToken



Get a list of all administrations (both payroll and non-payroll) the user has access to. For more detailed properties, use the respective endpoints for payroll and non-payroll administrations.

query Parameters
filter
string
Example: filter=cancellationPeriodTimeUnit.key eq 4

Filter the collection

orderBy
string^-?\w+(,-?\w+)*$
Example: orderBy=-companyName,address.houseNumber

Order the collection on one or more fields

pageNumber
integer <int32>
Default: 1
Example: pageNumber=2

Specifies which page should be returned

pageSize
integer <int32>
Default: 250
Example: pageSize=20

Specifies the number of objects per page

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json;version=2018-01-01
{
  • "totalSize": 650,
  • "pageSize": 250,
  • "totalPages": 3,
  • "currentPage": 2,
  • "version": {
    },
  • "messages": [
    ],
  • "_embedded": [
    ]
}

Employment

NL: Dienstverband. Manage an employment

List of employments for an employer

Activity name : GetEmploymentsByEmployerId

Get a list of employments for an employer

This endpoint only returns the employments that meet the filter settings set at the user level. Note that filter settings are set for a user <-> employer <-> client combination.

path Parameters
employerId
required
string <uuid>

The unique identifier of the employer

query Parameters
filter
string
Example: filter=cancellationPeriodTimeUnit.key eq 4

Filter the collection

orderBy
string^-?\w+(,-?\w+)*$
Example: orderBy=-companyName,address.houseNumber

Order the collection on one or more fields

pageNumber
integer <int32>
Default: 1
Example: pageNumber=2

Specifies which page should be returned

pageSize
integer <int32>
Default: 250
Example: pageSize=20

Specifies the number of objects per page

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json;version=2019-12-16
{
  • "totalSize": 650,
  • "pageSize": 250,
  • "totalPages": 3,
  • "currentPage": 2,
  • "version": {
    },
  • "messages": [
    ],
  • "_embedded": [
    ]
}

List of employments with fewer fields for performance reasons

Activity name : GetEmploymentsMinimizedByEmployerId

Get a list of employments for an employer. With this version we introduced the "Minimized" resource which contains fewer fields. This version should increase performance when requesting employments for large employer.

This endpoint only returns the employments that meet the filter settings set at the user level. Note that filter settings are set for a user <-> employer <-> client combination.

path Parameters
employerId
required
string <uuid>

The unique identifier of the employer

query Parameters
filter
string
Example: filter=cancellationPeriodTimeUnit.key eq 4

Filter the collection

orderBy
string^-?\w+(,-?\w+)*$
Example: orderBy=-companyName,address.houseNumber

Order the collection on one or more fields

pageNumber
integer <int32>
Default: 1
Example: pageNumber=2

Specifies which page should be returned

pageSize
integer <int32>
Default: 250
Example: pageSize=20

Specifies the number of objects per page

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json;version=2019-12-16
{
  • "totalSize": 650,
  • "pageSize": 250,
  • "totalPages": 3,
  • "currentPage": 2,
  • "version": {
    },
  • "messages": [
    ],
  • "_embedded": [
    ]
}

List of employments with additional entities

Activity name : GetEmploymentsComprehensiveByEmployerId

Availability: This is endpoint is available for the Loket.nl application only. It is not available for external parties

Get a list of employments for an employer. With this version we introduced the "Comprehensive" resource which contains additional entities.

This endpoint only returns the employments that meet the filter settings set at the user level. Note that filter settings are set for a user <-> employer <-> client combination.

path Parameters
employerId
required
string <uuid>

The unique identifier of the employer

query Parameters
referenceDate
string <date>
Example: referenceDate=2022-01-01

Set a reference date for choosing the date dependent data.

removeEmptyLines
boolean
Example: removeEmptyLines=true

When true and combined with a X-ReportInput header, the output only contains employments for which selected underlying data, such as wage, is available.

filter
string
Example: filter=cancellationPeriodTimeUnit.key eq 4

Filter the collection

orderBy
string^-?\w+(,-?\w+)*$
Example: orderBy=-companyName,address.houseNumber

Order the collection on one or more fields

pageNumber
integer <int32>
Default: 1
Example: pageNumber=2

Specifies which page should be returned

pageSize
integer <int32>
Default: 250
Example: pageSize=20

Specifies the number of objects per page

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json;version=2019-12-16
{
  • "totalSize": 650,
  • "pageSize": 250,
  • "totalPages": 3,
  • "currentPage": 2,
  • "version": {
    },
  • "messages": [
    ],
  • "_embedded": [
    ]
}

List of employments for an employee

Activity name : GetEmploymentsByEmployeeId

Get the list of employments for an employee

path Parameters
employeeId
required
string <uuid>

The unique identifier of the employee

query Parameters
filter
string
Example: filter=cancellationPeriodTimeUnit.key eq 4

Filter the collection

orderBy
string^-?\w+(,-?\w+)*$
Example: orderBy=-companyName,address.houseNumber

Order the collection on one or more fields

pageNumber
integer <int32>
Default: 1
Example: pageNumber=2

Specifies which page should be returned

pageSize
integer <int32>
Default: 250
Example: pageSize=20

Specifies the number of objects per page

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json;version=2019-12-16
{
  • "totalSize": 650,
  • "pageSize": 250,
  • "totalPages": 3,
  • "currentPage": 2,
  • "version": {
    },
  • "messages": [
    ],
  • "_embedded": [
    ]
}

Details of an employment

Activity name : GetEmploymentByEmploymentId

Get the details for an employment

path Parameters
employmentId
required
string <uuid>

The unique identifier of the employment

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json;version=2019-12-16
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": {
    }
}

Edit the details of an employment

Activity name : PutEmploymentByEmploymentId

Edit the details of an employment

Possible values for fields of the type 'metadata' can be acquired (GET) by adding /metadata to the URL

path Parameters
employmentId
required
string <uuid>

The unique identifier of the employment

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Request Body schema: application/json;version=2019-12-16
required

Employment to edit

historicalStartDate
string or null <date> (historicalStartDate)

The historical date on which the employee was first employed. This field is used when an employee has multiple employments in time. In most cases this field should be used as the date on which the employee started working for the company. NL: HistorischeDatumInDienst

commissionUntilDate
string or null <date> (commissionUntilDate)

The date on which the employment will end. NL: AanstellingTot

object <metadata> (typeOfEmployee)

A selection of pre defined employee-types for the employment. NL: SoortWerknemer

object <metadata> (employmentDurationTypeVerion2019-12-16)

A selection of pre defined durations for the employment. NL: SoortDienstverband

startDateContractOfIndefiniteDuration
string or null <date> (startDateContractOfIndefiniteDuration)

When did the value of employmentDurationType change for definite to indefinite. NL: Startdatum onbepaalde tijd This value should be te samen as the startDate if the contract was indefinite from the start.

object or null <metadata> (employmentContractType)

The type of employment applicable for the employment. NL: BasisDienstverband

object or null <metadata> (vacationCoupons)

Indication for vacation coupons (vakantiebonnen). This is only applies to a limited set of CLA`s. NL: Vakantiebonnen

object or null <metadata> (sendToExternalParty)

Indicates whether payroll information of this employment is sent to external pension funds. Attention: this indication ONLY applies regarding the information to pension funds. If NULL then setting according to regulation is leading. NL: AanleveringExternePartij

deviatingCLAExternalParty
integer or null <int32> (deviatingCLAExternalParty)

CLA (CAO) code in case of a deviating CLA for external parties . NL: CaoKlantgroepAfwijkend

deviatingCLATaxReturn
integer or null <int32> (deviatingCLATaxReturn) [ 1 .. 9999 ]

CLA (CAO) code in case of a deviating CLA for tax returns. NL: CAOUWV

incomeRelationshipNumber
integer <int32> (incomeRelationshipNumber) [ 0 .. 9999 ]

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. NL: NummerInkomstenVerhouding

object or null <metadata> (employeeProfileId)

References to an employeeprofile that is specified in the payroll administration level. NL: WerknemerProfielID

employeeProfileId is a metadata field within the payroll administration context. Possible values can be managed by the user.

professionCode
integer or null <int32> (professionCode) [ 1 .. 999 ]

A code field for a profession. This field only applies in case of a specific CLA (Bouw / Infra). Please leave empty if not applicable. NL: BeroepUWV

exemptionWorkRelatedExpenseScheme
boolean (exemptionWorkRelatedExpenseScheme)

Indicates whether an exemption (i.e. non-participation) on the work-related expense scheme (werkkostenregeling) applies for this employment. NL: WerkkostenRegelingUitsluiting

exemptionPremiumWaiverMarginalLabour
boolean (exemptionPremiumWaiverMarginalLabour)

Indicates whether an exemption (i.e. waiver) on the premium marginal labour (vrijstelling marginale arbeid) applies for this employment. NL: PremieVrijstellingMarginaleArbeid

object or null <metadata> (typeOfParticipation)

The type of participation (aard van deelnemerschap) is only applicable in case the person related to this employment is eligible for pension (product required). NL: AardDeelnemerschap

object or null <metadata> (valueOfParticipation)

The value of participation (waarde van deelnemerschap) is only applicable in case the person related to this employment is eligible for pension (product required). NL: WaardeDeelnemerschap

wachtgeldOldRegulation
boolean (wachtgeldOldRegulation)

Indicates whether the (old) wachtgeld regulation is applicable for the employment. NL: WachtgeldOudeRegeling

participation55plusRegulationUWV
boolean (participation55plusRegulationUWV)

Indicates whether the 55 plus regulation (55 plus regeling) is applicable for the employment. NL: Deelname55Plus

object <metadata> (essMutationSet)

References to a specified set of payrollcomponents that are to accessible via ESS for employee mutations. Standard-set means the standard set defined for the administration will be applied for this employment. NULL means no set will be defined for this employment (so no access to any components). NL : ExportsetID

essMutationSet is a metadata field within the werkgever/provider context. Possible values can be managed by the user.

object <metadata> (exemptionInsuranceObligation)

Indicates whether an exemption applies for the insurance obligation. If NULL than there is no exemption, thus insurance obligation applies in that case (verzekingsplicht). NL: CodeUitzondering

object or null <metadata> (specialIncomeRatio)

Indicates the special income ratio. NL: SpecialeInkomstenVerhouding

emailLeaveRequest
string or null (schemas-emailLeaveRequest) <= 255 characters

Recipient e-mail adress for notification in case of leave requests. NL: EmailVerlofaanvraag

object <metadata> (temporaryTaxExemption)

Indicates whether there a temporary tax exemption is to be applied for the employment. NL: TijdelijkeHeffingskorting

periodPayGradeAdjustment
integer or null <int32> (periodPayGradeAdjustment) [ 1 .. 52 ]

The values is used for two processes. First off, a message can be configured to notify the user(s) of a upcoming wage raise/negotiation based on the value of this field. Second, the value, in combination with signalSalaryScaleAdjustment, is used to signal a wage raises based on the payScale and ‘payGrade’. NL: PeriodeSalarisPeriodiek

signalPayGradeAdjustment
boolean (signalPayGradeAdjustment)

Indicates whether signaling regarding salary scale adjustments are enabled for the employment. NL: SalarisschaalSignaleren

commissionUntilDate1
string or null <date> (commissionUntilDate1)

Until date for commision #1. NL: AanstellingTot1

commissionUntilDate2
string or null <date> (commissionUntilDate2)

Until date for commision #2. NL: AanstellingTot2

commissionUntilDate3
string or null <date> (commissionUntilDate3)

Until date for commision #3. NL: AanstellingTot3

commissionUntilDate4
string or null <date> (commissionUntilDate4)

Until date for commision #4. NL: AanstellingTot4

commissionUntilDate5
string or null <date> (commissionUntilDate5)

Until date for commision #5. NL: AanstellingTot5

commissionUntilDate6
string or null <date> (commissionUntilDate6)

Until date for commision #6. NL: AanstellingTot6

isDirectorAndMajorShareholder
boolean or null (isDirectorAndMajorShareholder)

Indicates whether the employment can be classified as a director and major shareholder (Dutch: directeur-grootaandeelhouder or DGA). This field can be null in cases where it is unknown whether the employment can be classified as a director and major shareholder. NL: IsDirecteurGrootAandeelhouder

isPreviousOwner
boolean or null (isPreviousOwner)

Indicates whether the employment can be classified as a previous owner. This field can be null in cases where it is unknown whether the employment can be classified as a director and major shareholder. NL: IsVorigeEigenaar

isFamilyOfOwner
boolean or null (isFamilyOfOwner)

Indicates whether the employment can be classified as a previous owner. This field can be null in cases where it is unknown whether the employment can be classified as a director and major shareholder. NL: IsFamilieVanEigenaar

isOnCallEmployment
boolean (isOnCallEmploymentVerion2019-12-16)

Indicates whether the employment is an on-call employment. This field can be null in cases where it is unknown whether the employment is an on-call employment. NL: IsOproepkrachtOfInvalkracht

hasOnCallAppearanceObligation
boolean or null (hasOnCallAppearanceObligation)

In the case of an on-call employment this field indicates whether the employment has an appearance obligation. This field can be null in cases where it is unknown whether the employment has an appearance obligation. NL: SoortOproepkrachtOfInvalkracht

isGemoedsbezwaardNationalInsurance
boolean (isGemoedsbezwaardNationalInsurance)

Gemoedsbezwaard Volksverzekering. NL: IsGemoedsbezwaardVolksverzekering

isGemoedsbezwaardEmployeeInsurance
boolean (isGemoedsbezwaardEmployeeInsurance)

Gemoedsbezwaard Werknemerverzekering. NL: IsGemoedsbezwaardWerknemerverzekering

isAnonymousEmployee
boolean (isAnonymousEmployee)

An employee that wants to remain anonymous related to social security instances. NL: IsAnoniemeWerknemer

cancellationPeriodEmployee
integer or null <int32> (cancellationPeriodEmployee) [ 1 .. 1000 ]

The notice period an employee is required to give the employer when resigning. The unit of time that applies to this field is described in the noticePeriodTimeUnit property. NL: OpzegtermijnWerknemer

cancellationPeriodEmployer
integer or null <int32> (cancellationPeriodEmployer) [ 1 .. 1000 ]

The notice period an employer is required to give the employee when terminating the contract. The unit of time that applies to this field is described in the noticePeriodTimeUnit property. NL: OpzegtermijnWerkgever

object or null <metadata> (cancellationPeriodTimeUnit)

The unit of time used for the noticePeriodeEmployee and noticePeriodEmployer properties. NL: PeriodeOpzegTermijn

cancellationNoticeDate
string or null <date> (cancellationNoticeDate)

The date on which the notice was given by either the employee or the employer. NL: DatumOpzegging

startCancellationNoticePeriod
string or null <date> (startCancellationNoticePeriod)

The date on which the term of notice period starts. If the agrement states that a notice periode always starts on the first day of the month and the notice was given on the 15th the start notice periode will be the first day of the next month. NL: AanvangOpzegtermijn

namePayslip
string or null (namePayslip) <= 34 characters

Name that is visible on payslips for the employment. NL: NaamLoonstrook

calculateWorkingHours
boolean (calculateWorkingHours)

Automatically calculate working hours for the employment if the option automatically calculate hours is selected for a given period. NL: Completeren/Berekenen uren

writtenEmploymentContract
boolean (writtenEmploymentContract)

Did the employment and employer make a written contract? NL: Schriftelijke overeenkomst

Responses

Request samples

Content type
application/json;version=2019-12-16
{
  • "historicalStartDate": "2012-05-01",
  • "commissionUntilDate": "2019-01-01",
  • "typeOfEmployee": {
    },
  • "employmentDurationType": {
    },
  • "startDateContractOfIndefiniteDuration": "2018-05-08",
  • "employmentContractType": {
    },
  • "vacationCoupons": {
    },
  • "sendToExternalParty": {
    },
  • "deviatingCLAExternalParty": 2,
  • "deviatingCLATaxReturn": 2,
  • "incomeRelationshipNumber": 12,
  • "employeeProfileId": {
    },
  • "professionCode": 4,
  • "exemptionWorkRelatedExpenseScheme": false,
  • "exemptionPremiumWaiverMarginalLabour": false,
  • "typeOfParticipation": {
    },
  • "valueOfParticipation": {
    },
  • "wachtgeldOldRegulation": false,
  • "participation55plusRegulationUWV": false,
  • "essMutationSet": {
    },
  • "exemptionInsuranceObligation": {
    },
  • "specialIncomeRatio": {
    },
  • "emailLeaveRequest": "[email protected]",
  • "temporaryTaxExemption": {
    },
  • "periodPayGradeAdjustment": 2,
  • "signalPayGradeAdjustment": false,
  • "commissionUntilDate1": "2018-05-31",
  • "commissionUntilDate2": "2018-05-31",
  • "commissionUntilDate3": "2018-05-31",
  • "commissionUntilDate4": "2018-05-31",
  • "commissionUntilDate5": "2018-05-31",
  • "commissionUntilDate6": "2018-05-31",
  • "isDirectorAndMajorShareholder": false,
  • "isPreviousOwner": false,
  • "isFamilyOfOwner": false,
  • "isOnCallEmployment": true,
  • "hasOnCallAppearanceObligation": true,
  • "isGemoedsbezwaardNationalInsurance": true,
  • "isGemoedsbezwaardEmployeeInsurance": true,
  • "isAnonymousEmployee": true,
  • "cancellationPeriodEmployee": 1,
  • "cancellationPeriodEmployer": 1,
  • "cancellationPeriodTimeUnit": {
    },
  • "cancellationNoticeDate": "2018-05-31",
  • "startCancellationNoticePeriod": "2018-06-01",
  • "namePayslip": "Steve Jobs",
  • "calculateWorkingHours": true,
  • "writtenEmploymentContract": true
}

Response samples

Content type
application/json;version=2019-12-16
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": {
    }
}

Edit the type of an employment

Activity name : PatchTypeOfEmploymentCategoryTypeFieldsByEmploymentId

Edit a small subset of fields of an employment.

Possible values for fields of the type 'metadata' can be acquired (GET) by adding /metadata to the URL

path Parameters
employmentId
required
string <uuid>

The unique identifier of the employment

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Request Body schema: application/json;version=2019-12-16
required

Employment to edit

object <metadata>

A selection of special pre defined employment-types for the employment. NL: Type dienstverband

linkedEmployment
string or null <uuid> ^[{(]?[0-9A-F]{8}[-]?([0-9A-F]{4}[-]?){3}[0-9...

The unique identifier of an object (GUID/UUID)

Responses

Request samples

Content type
application/json;version=2019-12-16
{
  • "employmentCategoryType": {
    },
  • "linkedEmployment": "b14acd0d-75d7-4fc8-8b22-4a3924585cab"
}

Response samples

Content type
application/json;version=2019-12-16
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": {
    }
}

Delete an employment

Activity name : DeleteEmploymentByEmploymentId

Delete an employment. If the person linked to the employment no longer has any other employments, the person will also be deleted.

Deleting an employment is only possible under specific conditions. Information on these conditions can be obtained with: GetDeleteEmploymentInformationByEmploymentId

path Parameters
employmentId
required
string <uuid>

The unique identifier of the employment

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": { }
}

Delete employment information

Activity name : GetDeleteEmploymentInformationByEmploymentId

Get information about the validations that the employment must meet in order to be allowed to delete.

path Parameters
employmentId
required
string <uuid>

The unique identifier of the employment

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json;version=2019-12-16
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": {
    }
}

Terminate an employment.

Activity name : PatchTerminateByEmploymentId

Terminate an employment. Effectively, the endDate of the employment will be set to the given date.
Please note that setting the endDate for an employment affects multiple resources in Loket (e.g. wage, workingHours and absence). Note that the termination date is to be filled with the last day of employment.

If the termination needs to be reversed use the ../employments/{employmentId}/reinstate endpoint.
If the termination needs to be changed, use this endpoint to revise the termination data

The metadata for endOfEmploymentReason and endOfEmploymentReasonTaxAuthorities are included in the 'regular' metadata-endpoint of the Employment resource.

path Parameters
employmentId
required
string <uuid>

The unique identifier of the employment

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Request Body schema:
required

The request body contains an object containing fields related to termination of an employment.

endDate
string <date>

The date on which the employment ends (=last day of the employment).

object <metadata>

The reason for the end of the employment.

Note: as of 2020-01-01 endOfEmploymentReasonTaxAuthorities replaces this field as the main reason for the end of the employment. We say 'main reason' as in certain cases this field still has a purpose.

Please set this field to 8 (Other) unless one of the following integrations is used for this employment

  • UPA-pensioenaangifte
  • Cordares
  • APG-pensioenaangifte
  • Achmea
endOfEmploymentDueToIllness
boolean

Indicates whether the reason for the termination of an employment is due to long-term illness. Mandatory if endDate is filled, else leave empty.

createMdvEntry
boolean

Indicates whether an MDV-entry should automatically be generated (not sent) by Loket (Melding Dienstverband). This should typically only be used for Colland-related employments and if the module MDV is active for an employer, which means in most cases this indicator should be set to false.

Next to that, a message is ONLY generated when the employment is actually terminated by performing this action (=the employment did not already have an endDate before calling this endpoint).

object <metadata>

The reason for the end of the employment as specified by the Dutch Tax authorties.

Note: This field replaces endOfEmploymentReason as of 2020-01-01. endOfEmploymentReason will remain as a field in the resource as several integration require this field still.

Responses

Request samples

Content type
{
  • "endDate": "2018-10-23",
  • "endOfEmploymentReason": {
    },
  • "endOfEmploymentDueToIllness": false,
  • "createMdvEntry": false,
  • "endOfEmploymentReasonTaxAuthorities": {
    }
}

Response samples

Content type
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": { }
}

Undo termination for an employment.

Activity name : PatchReinstateByEmploymentId

reinstate for an employment.
Effectively, termination is reversed by using this endpoint and therefore the employment will be considered active again.

Maak een uitdienst melding ongedaan.
Effectief gezien, 'datum uit dienst' gegevens worden teruggedraaid waardoor het dienstverband weer als actief zal worden beschouwd in Loket

path Parameters
employmentId
required
string <uuid>

The unique identifier of the employment

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Request Body schema: application/json;version=2018-01-01

This endpoint does not require a request body. However, the Accept header does need to be set to ensure the correct resource version is used.

object

Responses

Request samples

Content type
application/json;version=2018-01-01
{ }

Response samples

Content type
application/json;version=2018-01-01
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": { }
}

Correct the start (employment) date for an employment.

Activity name : PatchCorrectStartDateByEmploymentId

Edit the starting date (i.e. the official first day of a contract) of an employment. Please note that changing the starting data for an employment affects multiple entities in Loket (e.g. wage-records etc).

  • With a correction of the starting date, you are responsible for the associated notifications.
path Parameters
employmentId
required
string <uuid>

The unique identifier of the employment

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Request Body schema: application/json;version=2018-01-01
required

The request body contains an object containing fields related to termination of an employment.

startDate
string <date>

The date on which this employment starts (=first day of the employment).

Responses

Request samples

Content type
application/json;version=2018-01-01
{
  • "startDate": "2018-01-01"
}

Response samples

Content type
application/json;version=2018-01-01
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": { }
}

Employee

NL: Persoon. Manage an employee

List of employees for an employer

Activity name : GetEmployeesByEmployerId

Get a list of all employees for the given employer

path Parameters
employerId
required
string <uuid>

The unique identifier of the employer

query Parameters
filter
string
Example: filter=cancellationPeriodTimeUnit.key eq 4

Filter the collection

orderBy
string^-?\w+(,-?\w+)*$
Example: orderBy=-companyName,address.houseNumber

Order the collection on one or more fields

pageNumber
integer <int32>
Default: 1
Example: pageNumber=2

Specifies which page should be returned

pageSize
integer <int32>
Default: 250
Example: pageSize=20

Specifies the number of objects per page

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

The default option is application/json;version=yyyy-MM-dd. For the export functionality two other options are supported:

  • text/csv;version=yyyy-MM-dd
  • application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;version=yyyy-MM-dd
X-ReportInput
string

Allows the user set what values are returnd in the "export" (csv or excel).

Responses

Response samples

Content type
{
  • "totalSize": 650,
  • "pageSize": 250,
  • "totalPages": 3,
  • "currentPage": 2,
  • "version": {
    },
  • "messages": [
    ],
  • "_embedded": [
    ]
}

Details of an employee

Activity name : GetEmployeeByEmployeeId

Get the details of a single employee

path Parameters
employeeId
required
string <uuid>

The unique identifier of the employee

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": {
    }
}

Edit the details of an employee

Activity name : PutEmployeeByEmployeeId

Edit the employee details
Possible values for fields of the type 'metadata' can be acquired (GET) by adding /metadata to the URL

path Parameters
employeeId
required
string <uuid>

The unique identifier of the employee

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Request Body schema:
required

Employee to edit.

employeeNumber
integer <int32> (employeeNumber) >= 1

The employee number to uniquely identify an employee within an employer

object (personalDetails)
object (contactInformation2021-03-29)
object or null (identityDocument)
object (travel)
object or null (schemas-address)
object or null (schemas-deviatingPostalAddress)
exclusionFromAbsenceStatus
boolean (exclusionFromAbsenceStatus)

Indicates whether the employee is excluded for any information of absence

Responses

Request samples

Content type
{
  • "employeeNumber": 156,
  • "personalDetails": {
    },
  • "contactInformation": {
    },
  • "identityDocument": {
    },
  • "travel": {
    },
  • "address": {
    },
  • "deviatingPostalAddress": {
    },
  • "exclusionFromAbsenceStatus": false
}

Response samples

Content type
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": {
    }
}

Change the email address for an employee

Activity name : PatchEmailByEmployeeId

Defaults : No defaults

path Parameters
employeeId
required
string <uuid>

The unique identifier of the employee

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Request Body schema: application/json;version=2018-12-31
required

Email address

emailAddress
string or null <= 255 characters ^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\...

The e-mail address of the employee.

Responses

Request samples

Content type
application/json;version=2018-12-31
{}

Response samples

Content type
application/json
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": { }
}

Citizen service number of an employee

Activity name : GetCitizenServiceNumberByEmployeeId

Get the citizen service number of an employee. BSN is separately authorized in Loket and is therefore designed to have its own activities.

path Parameters
employeeId
required
string <uuid>

The unique identifier of the employee

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json;version=2018-01-01
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": {
    }
}

Update the citizen service number of an employee

Activity name : PutCitizenServiceNumberByEmployeeId

Update the citizen service number of an employee. BSN is separately authorized in Loket and is therefore designed to have its own activities.

path Parameters
employeeId
required
string <uuid>

The unique identifier of the employee

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Request Body schema: application/json;version=2018-01-01
required

citizen service number to edit.

string or null (citizenServiceNumber) = 9 characters

The social security number of the employee used in communication with the Dutch tax authorities. The number has to be a valid Dutch citizen service number (BSN).

Responses

Request samples

Content type
application/json;version=2018-01-01
"042168588"

Response samples

Content type
application/json;version=2018-01-01
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": "042168588"
}

Photo of an employee

Activity name : GetEmployeePhotoByEmployeeId

Photo of the employee to use as an avatar/profile picture

Caching: This resource changes very infrequently and can be cached for a longer time.

path Parameters
employeeId
required
string <uuid>

The unique identifier of the employee

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json
{
  • "message": "Authorization has been denied for this request."
}

Post employee photo

Activity name : PostEmployeePhotoByEmployeeId

Photo of the employee to use as an avatar/profile picture

path Parameters
employeeId
required
string <uuid>

The unique identifier of the employee

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Request Body schema: application/json;version=2018-01-01
required

Logo to be uploaded for the employer.

data
string

base64 encoded document file.

mimeType
string

The mimetype of the data.

Responses

Request samples

Content type
application/json;version=2018-01-01
{
  • "data": "YQ==",
  • "mimeType": "image/jpeg"
}

Response samples

Content type
application/json
{
  • "message": "Authorization has been denied for this request."
}

Delete employee photo

Activity name : DeleteEmployeePhotoByEmployeeId

Photo of the employee to use as an avatar/profile picture

path Parameters
employeeId
required
string <uuid>

The unique identifier of the employee

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": { }
}

Photo of an employee

Activity name : GetEmployeePhotoByEmployeeIdAndVersion

Photo of the employee to use as an avatar/profile picture

Caching: This resource changes very infrequently and can be cached for a longer time.

path Parameters
employeeId
required
string <uuid>

The unique identifier of the employee

version
required
string <uuid>

An optional guid generated for caching. The value does not influence the output of this function. The Employee resource returns the URI of the current photo.

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json
{
  • "message": "Authorization has been denied for this request."
}

Create a new employee in Loket

This endpoint is in development and therefore not yet accessible

Activity name : PostEmployeeByEmployerId

This endpoint 'creates' an employee in Loket with its corresponding entities. This means creating a number of records including Employee, Employment, WorkingHours, Wage etc.

Before doing performing these steps, quite a number of validations are performed to ensure that the provided information can be used to create a functionally valid employee.

path Parameters
employerId
required
string <uuid>

The unique identifier of the employer

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Request Body schema: application/json;version=2018-01-01
required

Employee to be created

object (employee)
object or null (employment)
object or null (workingHours)
object or null (wage)
object or null (organizationalEntity)
object or null (socialSecurity)
object or null (fiscal)
object or null (otherPayrollVariables)
object (schemas-citizenServiceNumber)

Responses

Request samples

Content type
application/json;version=2018-01-01
{
  • "employeeData": {
    },
  • "employmentData": {
    },
  • "workingHoursData": {
    },
  • "wageData": {
    },
  • "organizationalEntityData": {
    },
  • "socialSecurityData": {
    },
  • "fiscalData": {
    },
  • "otherPayrollVariablesData": {
    },
  • "citizenServiceNumber": {
    }
}

Response samples

Content type
application/json;version=2018-01-01
{
  • "employeeId": "b14acd0d-75d7-4fc8-8b22-4a3924585cab",
  • "employmentId": "b14acd0d-75d7-4fc8-8b22-4a3924585cab"
}

Set the date on which to revoke ESS access

Activity name : PatchRevokeEmployeeSelfServiceAccessByEmployeeId

This endpoint allows the user to set the 'revokeEmployeeSelfServiceAccessOn'. This date indicates on what day the access to WerknemerLoket (Employee Self Service) will be revoked (this is done by scheduled tasks that run during the night). This is particularly useful for situations where for example the employer wants to restrict access at a specific date in the future, for example 1st of May in the next year.

The value may be set to NULL and thus clearing the date on which access would be revoked. Please note that this endpoint will not automatically 'unblock' an Employee, as that would require a specific action.

path Parameters
employeeId
required
string <uuid>

The unique identifier of the employee

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Request Body schema: application/json;version=2018-01-01
required

The request body contains an object containing fields related to termination of an employment.

revokeEmployeeSelfServiceAccessOn
string or null <date>

The date on which the Employees access to ESS (werknemer.loket) will be automatically revoked.

Responses

Request samples

Content type
application/json;version=2018-01-01
{
  • "revokeEmployeeSelfServiceAccessOn": "2018-10-23"
}

Response samples

Content type
application/json;version=2018-01-01
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": { }
}

Concept employee

NL: Concept Werknemer. Manage concept employees. In integrations with different applications it is sometimes necessary to use concept employee to create new employments within loket.nl. This is due to the fact that most systems don’t have all the fields required to create a new employment in loket.nl. Because for employee the validations are disabled. Allowing for the creation of a concept employee with only a subset of the fields that are required when creating a employment. At a later point the concept employee can be "promoted" to employee/employment using the Loket.nl interface. Please note that when a concept employee is promoted to an actual employee, the GUID of the employee will be identical to the concept employee from which it was created.

List of concept employee for an employer

Activity name : GetConceptEmployeesByEmployerId

Get a list of all concept employee for the given employer. Concept employee can be used as a template/prefill when creating a new employee/employment.
This function may also be used in case one does not have all the required fields to create a new employee/employment. The validations are disabled for a concept employee allowing one to create a concept employee filling only a subset of available fields, then later "promoting" the Concept employee in loket.nl to employee/employment.

path Parameters
employerId
required
string <uuid>

The unique identifier of the employer

query Parameters
filter
string
Example: filter=cancellationPeriodTimeUnit.key eq 4

Filter the collection

orderBy
string^-?\w+(,-?\w+)*$
Example: orderBy=-companyName,address.houseNumber

Order the collection on one or more fields

pageNumber
integer <int32>
Default: 1
Example: pageNumber=2

Specifies which page should be returned

pageSize
integer <int32>
Default: 250
Example: pageSize=20

Specifies the number of objects per page

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json;version=2018-01-01
{
  • "totalSize": 650,
  • "pageSize": 250,
  • "totalPages": 3,
  • "currentPage": 2,
  • "version": {
    },
  • "messages": [
    ],
  • "_embedded": [
    ]
}

Create a concept employee for an employer

Activity name : PostConceptEmployeeByEmployerId

Create a concept employee for an employer

* Possible options (metadata) for generic fields of the type \metadata" can be acquired (GET) by adding /metadata to the URL.
* Possible options dependent on a specific payrollAdministration can be acquired via ../providers/employers/conceptemployees/metadata/payrolladministration/{payrollAdministrationId}.
* Possible options for payGrade can be acquired via ../providers/employers/conceptemployees/metadata/payrolladministration/{payrollAdministrationId}/payscale/{payScaleKey}.
A payGrade has time based values dictating the wage for a given period. These values can be acquired by performing another metadata request to GET ../providers/employers/conceptemployees/metadata/payrolladministration/{payrollAdministrationId}/payscale/{payScaleKey}/paygrade/{payGradeKey}. This endpoint has the optional parameter "date" that may be used to specifying a measure date.

Defaults : Default values for a new object can be acquired by adding /defaults to the POST URL.


Default values that are dependent on the selected payroll administration can be acquired by adding /providers/employers/conceptemployees/defaults/payrolladministration/{payrollAdministrationId} to the POST URL.

NonPayrollAdministrations For nonPayrollAdministrations the equivalent MetaData-endpoints are also available as described above. However NO specific defaults endpoint is available for the nonPayrollAdministration.
"

path Parameters
employerId
required
string <uuid>

The unique identifier of the employer

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Request Body schema: application/json;version=2018-01-01
required

concept employee to create to the employer.

uniqueName
string [ 1 .. 255 ] characters

The unique name for this concept employment. It is commonly used as a displayname in the user interface to select this entry in a dropdown box.

object (employee)
object or null (employment)
object or null (workingHours)
object or null (wage)
object or null (organizationalEntity)
object or null (socialSecurity)
object or null (fiscal)
object or null (otherPayrollVariables)

Responses

Request samples

Content type
application/json;version=2018-01-01
{
  • "uniqueName": "Sollicitant 013",
  • "employeeData": {
    },
  • "employmentData": {
    },
  • "workingHoursData": {
    },
  • "wageData": {
    },
  • "organizationalEntityData": {
    },
  • "socialSecurityData": {
    },
  • "fiscalData": {
    },
  • "otherPayrollVariablesData": {
    }
}

Response samples

Content type
application/json;version=2018-01-01
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": {
    }
}

Details of a concept employee with fewer fields.

Activity name : GetConceptEmployeeMinimizedByConceptEmployeeId

Get the details of a concept employee with fewer fields

path Parameters
conceptEmployeeId
required
string <uuid>

The unique identifier of the concept employee

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json;version=2018-01-01
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": {
    }
}

Edit the details of a concept employee with fewer fields.

Activity name : PutConceptEmployeeMinimizedByConceptEmployeeId

Edit the details of a concept employee with fewer fields.

  • Possible options (metadata) for generic fields of the type "metadata" can be acquired (GET) by adding /metadata to the URL.
path Parameters
conceptEmployeeId
required
string <uuid>

The unique identifier of the concept employee

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Request Body schema: application/json;version=2018-01-01
required

Concept employee to edit.

object

The personal details of the employee. e.g. Name, civil status en gender

object or null

Contact information for the employee

object or null

The identification document of the employee

object or null

The address of the employee

iban
string or null <= 35 characters

International Bank Account Number. Only IBAN without spaces are accepted.

applyPayrollTaxDeduction
boolean

Indicates whether payroll tax deduction is appliclable (loonheffingskorting)

Responses

Request samples

Content type
application/json;version=2018-01-01
{
  • "personalDetails": {
    },
  • "contactInformation": {
    },
  • "identityDocument": {
    },
  • "address": {
    },
  • "iban": "NL52ABNA0424968264",
  • "applyPayrollTaxDeduction": true
}

Response samples

Content type
application/json;version=2018-01-01
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": {
    }
}

Details of a concept employee

Activity name : GetConceptEmployeeByConceptEmployeeId

Get the details of a concept employee

path Parameters
conceptEmployeeId
required
string <uuid>

The unique identifier of the concept employee

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json;version=2018-01-01
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": {
    }
}

Edit the details of a concept employee

Activity name : PutConceptEmployeeByConceptEmployeeId

Edit the details of a concept employee

  • Possible options (metadata) for generic fields of the type "metadata" can be acquired (GET) by adding /metadata to the URL.
  • Possible options dependent on a specific payrollAdministration can be acquired via ../providers/employers/conceptemployees/metadata/payrollAdministration/{payrollAdministrationId}.
  • Possible options for payGrade can be acquired via ../providers/employers/conceptemployees/metadata/payrolladministration/{payrollAdministrationId}/payscale/{payScaleKey}.

A payGrade has time based values dictating the wage for a given period. These values can be acquired by performing another metadata request ../providers/employers/conceptemployees/metadata/payscale/{payScaleKey}/paygrade/{payGradeKey}.

NonPayrollAdministrations For nonPayrollAdministrations the equivalent MetaData-endpoints are also available as described above. However NO specific defaults endpoint is available for the nonPayrollAdministration.

path Parameters
conceptEmployeeId
required
string <uuid>

The unique identifier of the concept employee

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Request Body schema: application/json;version=2018-01-01
required

Concept employee to edit.

uniqueName
string [ 1 .. 255 ] characters

The unique name for this concept employment. It is commonly used as a displayname in the user interface to select this entry in a dropdown box.

object (employee)
object or null (employment)
object or null (workingHours)
object or null (wage)
object or null (organizationalEntity)
object or null (socialSecurity)
object or null (fiscal)
object or null (otherPayrollVariables)

Responses

Request samples

Content type
application/json;version=2018-01-01
{
  • "uniqueName": "Sollicitant 013",
  • "employeeData": {
    },
  • "employmentData": {
    },
  • "workingHoursData": {
    },
  • "wageData": {
    },
  • "organizationalEntityData": {
    },
  • "socialSecurityData": {
    },
  • "fiscalData": {
    },
  • "otherPayrollVariablesData": {
    }
}

Response samples

Content type
application/json;version=2018-01-01
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": {
    }
}

Delete a concept employee

Activity name : DeleteConceptEmployeeByConceptEmployeeId

Delete a concept employee

path Parameters
conceptEmployeeId
required
string <uuid>

The unique identifier of the concept employee

query Parameters
deleteDocuments
boolean

If true, all underlying documents will be deleted.

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": { }
}

Citizen service number of a concept employee

Activity name : GetCitizenServiceNumberByConceptEmployeeId

Get the citizen service number (BSN) of a concept employee. BSN is separately authorized in Loket and is therefore designed to have its own activities.

path Parameters
conceptEmployeeId
required
string <uuid>

The unique identifier of the concept employee

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json;version=2018-01-01
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": "042168588"
}

Update the citizen service number of a concept employee

Activity name : PutCitizenServiceNumberByConceptEmployeeId

Update the citizen service number (BSN) of a concept employee BSN is separately authorized in Loket and is therefore designed to have its own activities.

path Parameters
conceptEmployeeId
required
string <uuid>

The unique identifier of the concept employee

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Request Body schema: application/json;version=2018-01-01
required

citizen service number to edit.

string or null (citizenServiceNumber) = 9 characters

The social security number of the employee used in communication with the Dutch tax authorities. The number has to be a valid Dutch citizen service number (BSN).

Responses

Request samples

Content type
application/json;version=2018-01-01
"042168588"

Response samples

Content type
application/json;version=2018-01-01
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": "042168588"
}

Convert a concept employee to an employee

Activity name : PatchConvertToEmployeeByConceptEmployeeId

This endpoint "converts" the conceptEmployee to an actual employee in Loket. This means creating a number of records including Employee, Employment, WorkingHours, Wage etc. If the promotion is successful the concept employee record will be deleted.

The GUID of the conceptEmployee will be copied over to the GUID of the newly created Employee.

Before performing these steps, quite a number of validations are performed to ensure that the provided information can be used to create a functionally valid employee.

If the employeeNumber is empty then this will be set automatically for the employee. (i.e. highest available number +1)

Additional functionality :

  • It is possible to call an alternative functionality closely related to this functionality. This additional functionality will perform the validation ONLY, and it will NOT convert the conceptEmployee to an actual employee even when all validation rules are successful. Other than not performing the actual step of converting the employee the endpoint will behave identically to the actual endpoint.
  • This functionality can be applied by setting the optional X-ValidateOnly header to true
path Parameters
conceptEmployeeId
required
string <uuid>

The unique identifier of the concept employee

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

X-ValidateOnly
boolean

If set to true only the validations will be performed no changes will be committed.

Responses

Response samples

Content type
application/json;version=2018-01-01
{ }

Absence

NL: Ziekmelding. Absences due to either sickness/illness or absence due to, for example, maternity or organ donation (in Dutch 'vangnet').

Please note: when adding or updating an Absence or AbsenceProgress there will be no additional 'Melding' created in Loket.nl . This legacy mechanism in the older Loket GUI will NOT be included in the newer version of Loket.nl

List of absences for an employee

Activity name : GetAbsencesByEmployeeId

Get a list of all absences for the given employee

path Parameters
employeeId
required
string <uuid>

The unique identifier of the employee

query Parameters
filter
string
Example: filter=cancellationPeriodTimeUnit.key eq 4

Filter the collection

orderBy
string^-?\w+(,-?\w+)*$
Example: orderBy=-companyName,address.houseNumber

Order the collection on one or more fields

pageNumber
integer <int32>
Default: 1
Example: pageNumber=2

Specifies which page should be returned

pageSize
integer <int32>
Default: 250
Example: pageSize=20

Specifies the number of objects per page

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json;version=2020-03-16
{
  • "totalSize": 650,
  • "pageSize": 250,
  • "totalPages": 3,
  • "currentPage": 2,
  • "version": {
    },
  • "messages": [
    ],
  • "_embedded": [
    ]
}

Create an Absence for an employee

Activity name : PostAbsenceByEmployeeId

Metadata : Possible options for fields of the type 'metadata' can be acquired (GET) by adding /metadata to the POST URL.

Defaults : Default values for a new object can be acquired by adding `/defaults' to the POST URL.

Add an Absence (=verzuimmelding) for an employee.

Please note that if this endpoint is called successfully both an absence (=verzuimmelding) AND one underlying absence progress (=verzuimverloop) will be created.

path Parameters
employeeId
required
string <uuid>

The unique identifier of the employee

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Request Body schema: application/json;version=2020-03-16
required

Add an Absence for an employee.

object <metadata> (causeOfAbsence)

The cause of the absence. This endpoint is intended for the registration of two types of absence:

  1. Illness/sickness

  2. "Vangnet" such as maternity leave, organ donation or adoption leave

Other absences such as Vacation days, unpayed leave and Personal leave are registerd using the leave endpoint

hoursWorkedOnFirstDayOfAbsence
integer or null (hoursWorkedOnFirstDayOfAbsence) [ 1 .. 8 ]

The number of hours worked on the first day of the absence.

object <metadata> (actionToBeTakenByOccupationalHealthAndSafetyService)

The desired action to be taken regarding the absence by the occupational health and safety service (arbodienst).

object or null <metadata> (expectedDuration)

The expected duration of the absence. If the expected duration is unknown, this field will be NULL.

isDisruptedEmploymentRelationship
boolean (isDisruptedEmploymentRelationship)

Indicates whether the employement relationship between employee and employer is disrupted.

isThirdPartyLiability
boolean or null (isThirdPartyLiability)

This field is related to accidentType. When accidentType is specified, this field indicates whether a third party is liable for the accident.

object or null <metadata> (accidentType)

The type of accident that led to the absence. This field will be NULL if the absence is not related to an accident.

isWorkRelatedIllness
boolean (isWorkRelatedIllness)

Beroepsziekte

expectedDateOfChildbirth
string or null <date> (expectedDateOfChildbirth)

Bevallingsdatum

expectedEndDateOfMaternityLeave
string or null <date> (expectedEndDateOfMaternityLeave)

verwachte datum einde zwangerschapsverlof

hasMobilityIssue
boolean or null (hasMobilityIssue)

This field indicates whether the Employee has an issue limiting its mobility.

isRecoveredWithinTwoWeeks
boolean (isRecoveredWithinTwoWeeks)

This field indicates whether the Employee is (expected) recoverd within two weeks, relating to a full recovery.

comments
string or null (comments) <= 4000 characters

Free text field to register any relevant information.

isHospitalised
boolean or null (isHospitalised)

Betreft het een ziekenhuisopnamen

object or null (contactInformation)
object or null (caseManager)
object or null (reintegration)
object

Responses

Request samples

Content type
application/json;version=2020-03-16
{
  • "causeOfAbsence": {
    },
  • "hoursWorkedOnFirstDayOfAbsence": 3,
  • "actionToBeTakenByOccupationalHealthAndSafetyService": {
    },
  • "expectedDuration": {
    },
  • "isDisruptedEmploymentRelationship": true,
  • "isThirdPartyLiability": false,
  • "accidentType": {
    },
  • "isWorkRelatedIllness": false,
  • "expectedDateOfChildbirth": "2018-01-21",
  • "expectedEndDateOfMaternityLeave": "2018-04-21",
  • "hasMobilityIssue": false,
  • "isRecoveredWithinTwoWeeks": false,
  • "comments": "Lorem ipsum dolor sit amet, id nibh adhuc omnium vix, ne nec eius inani aliquip.",
  • "isHospitalised": false,
  • "contactInformation": {
    },
  • "caseManager": {
    },
  • "reintegration": {
    },
  • "progress": {
    }
}

Response samples

Content type
application/json;version=2020-03-16
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": {
    }
}

Download the absence overview for an employee

Activity name : GetAbsenceOverviewByEmployeeId

Download the absence overview (verzuim) for a given time frame

Metadata : No metadata

path Parameters
employeeId
required
string <uuid>

The unique identifier of the employee

query Parameters
startDate
required
stringdate
Example: startDate=2020-08-01

The start date

endDate
required
stringdate
Example: endDate=2020-08-31

The end date

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": { }
}

Details of an Absence

Activity name : GetAbsenceByAbsenceId

Get the details of an Absence

path Parameters
absenceId
required
string <uuid>

The unique identifier of an absence

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json;version=2020-03-16
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": {
    }
}

Edit the details of a Absence

Activity name : PutAbsenceByAbsenceId

Metadata : Possible options for fields of the type 'metadata' can be acquired (GET) by adding /metadata to the PUT URL.

Edit the details of am Absence

path Parameters
absenceId
required
string <uuid>

The unique identifier of an absence

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Request Body schema: application/json;version=2020-03-16
required

Absence to edit.

object <metadata> (causeOfAbsence)

The cause of the absence. This endpoint is intended for the registration of two types of absence:

  1. Illness/sickness

  2. "Vangnet" such as maternity leave, organ donation or adoption leave

Other absences such as Vacation days, unpayed leave and Personal leave are registerd using the leave endpoint

hoursWorkedOnFirstDayOfAbsence
integer or null (hoursWorkedOnFirstDayOfAbsence) [ 1 .. 8 ]

The number of hours worked on the first day of the absence.

object <metadata> (actionToBeTakenByOccupationalHealthAndSafetyService)

The desired action to be taken regarding the absence by the occupational health and safety service (arbodienst).

object or null <metadata> (expectedDuration)

The expected duration of the absence. If the expected duration is unknown, this field will be NULL.

isDisruptedEmploymentRelationship
boolean (isDisruptedEmploymentRelationship)

Indicates whether the employement relationship between employee and employer is disrupted.

isThirdPartyLiability
boolean or null (isThirdPartyLiability)

This field is related to accidentType. When accidentType is specified, this field indicates whether a third party is liable for the accident.

object or null <metadata> (accidentType)

The type of accident that led to the absence. This field will be NULL if the absence is not related to an accident.

isWorkRelatedIllness
boolean (isWorkRelatedIllness)

Beroepsziekte

expectedDateOfChildbirth
string or null <date> (expectedDateOfChildbirth)

Bevallingsdatum

expectedEndDateOfMaternityLeave
string or null <date> (expectedEndDateOfMaternityLeave)

verwachte datum einde zwangerschapsverlof

hasMobilityIssue
boolean or null (hasMobilityIssue)

This field indicates whether the Employee has an issue limiting its mobility.

isRecoveredWithinTwoWeeks
boolean (isRecoveredWithinTwoWeeks)

This field indicates whether the Employee is (expected) recoverd within two weeks, relating to a full recovery.

comments
string or null (comments) <= 4000 characters

Free text field to register any relevant information.

isHospitalised
boolean or null (isHospitalised)

Betreft het een ziekenhuisopnamen

object or null (contactInformation)
object or null (caseManager)
object or null (reintegration)

Responses

Request samples

Content type
application/json;version=2020-03-16
{
  • "causeOfAbsence": {
    },
  • "hoursWorkedOnFirstDayOfAbsence": 3,
  • "actionToBeTakenByOccupationalHealthAndSafetyService": {
    },
  • "expectedDuration": {
    },
  • "isDisruptedEmploymentRelationship": true,
  • "isThirdPartyLiability": false,
  • "accidentType": {
    },
  • "isWorkRelatedIllness": false,
  • "expectedDateOfChildbirth": "2018-01-21",
  • "expectedEndDateOfMaternityLeave": "2018-04-21",
  • "hasMobilityIssue": false,
  • "isRecoveredWithinTwoWeeks": false,
  • "comments": "Lorem ipsum dolor sit amet, id nibh adhuc omnium vix, ne nec eius inani aliquip.",
  • "isHospitalised": false,
  • "contactInformation": {
    },
  • "caseManager": {
    },
  • "reintegration": {
    }
}

Response samples

Content type
application/json;version=2020-03-16
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": {
    }
}

Delete a specific absence record

Activity name : DeleteAbsenceByAbsenceId

Delete an existing absence (for an employee). If successful, this function also deletes the underlying absence progress records

path Parameters
absenceId
required
string <uuid>

The unique identifier of an absence

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": { }
}

Close an absence

Activity name : PatchCloseAbsenceByAbsenceId

A successful call to this endpoint will close the absence and the underlying absence progress (with an empty endDate).

path Parameters
absenceId
required
string <uuid>

The unique identifier of an absence

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Request Body schema: application/json;version=2020-03-16
required

The request body contains an object containing fields related to closing of an absence.

object <metadata>

date and reason for the closing/end of the absence

Responses

Request samples

Content type
application/json;version=2020-03-16
{
  • "endOfAbsence": {
    }
}

Response samples

Content type
application/json;version=2020-03-16
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": { }
}

Reopen an absence

Activity name : PatchReopenAbsenceByAbsenceId

When performing a successful call to this endpoint, then the absence and the underlying absence progress will we reopend. Both endOfAbsenceDate and endOfAbsenceReason will be set to null

path Parameters
absenceId
required
string <uuid>

The unique identifier of an absence

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Request Body schema: application/json;version=2020-03-16
required
object

Responses

Request samples

Content type
application/json;version=2020-03-16
{ }

Response samples

Content type
application/json;version=2020-03-16
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": { }
}

basic absence statistics

Activity name : GetAbsenceStatisticsDataByEmployerId

Get a basic overview of absence statistics for all employees of the given employer

path Parameters
employerId
required
string <uuid>

The unique identifier of the employer

query Parameters
startYearMonth
required
string
Example: startYearMonth=202401

The start year and month of the absence overview

endYearMonth
required
string
Example: endYearMonth=202412

The end year and month of the absence overview

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json;version=2018-01-01
{
  • "totalSize": 650,
  • "pageSize": 250,
  • "totalPages": 3,
  • "currentPage": 2,
  • "version": {
    },
  • "messages": [
    ],
  • "_embedded": [
    ]
}

Absence Progress

NL: Ziekteverloop. Absences due to either sickness/illness or absence due to, for example, maternity or organ donation (in Dutch 'vangnet'). One Absence contains one or more AbsenceProgress, indicating the degree of occupational disability over time of the absence.

Please note: when adding or updating an Absence or AbsenceProgress there will be no additional 'Melding' created in Loket.nl . This legacy mechanism in the older Loket GUI will NOT be included in the newer version of Loket.nl

List of absence progress for an absence

Activity name : GetAbsenceProgressByAbsenceId

Get a list of absence progress (verzuimverloop) for a specific absence (verzuimmelding).

path Parameters
absenceId
required
string <uuid>

The unique identifier of an absence

query Parameters
filter
string
Example: filter=cancellationPeriodTimeUnit.key eq 4

Filter the collection

orderBy
string^-?\w+(,-?\w+)*$
Example: orderBy=-companyName,address.houseNumber

Order the collection on one or more fields

pageNumber
integer <int32>
Default: 1
Example: pageNumber=2

Specifies which page should be returned

pageSize
integer <int32>
Default: 250
Example: pageSize=20

Specifies the number of objects per page

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json;version=2020-03-16
{
  • "totalSize": 650,
  • "pageSize": 250,
  • "totalPages": 3,
  • "currentPage": 2,
  • "version": {
    },
  • "messages": [
    ],
  • "_embedded": [
    ]
}

Create an Absence Progress for an Absence

Activity name : PostAbsenceProgressByAbsenceId

Metadata : Possible options for fields of the type 'metadata' can be acquired (GET) by adding /metadata to the POST URL.

Defaults : Default values for a new object can be acquired by adding `/defaults' to the POST URL.

Add an Absence Progress (=Ziekteverloop) for an employee. As is common with closed chain entities, the endDate of the previous record will be filled depending on the startDate of the new one.

Practically this means that a full recovery notification has been performed.

path Parameters
absenceId
required
string <uuid>

The unique identifier of an absence

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Request Body schema: application/json;version=2020-03-16
required

Add an Absence Progress for an Absence.

startDate
string <date>

start dat of the incapacityPercentage

incapacityPercentage
integer [ 1 .. 100 ]

percentage of not being able to work

object or null <metadata>

The type of work the work the employee is fulfilling when partly returning to work.

comments
string or null <= 4000 characters

Free text field to register any relevant information.

Responses

Request samples

Content type
application/json;version=2020-03-16
{
  • "startDate": "2018-01-21",
  • "incapacityPercentage": 100,
  • "typeOfWorkResumption": {
    },
  • "comments": "Lorem ipsum dolor sit amet, id nibh adhuc omnium vix, ne nec eius inani aliquip."
}

Response samples

Content type
application/json;version=2020-03-16
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": {
    }
}

Details of an Absence Progress

Activity name : GetAbsenceProgressByAbsenceProgressId

Get the details of an Absence Progress

path Parameters
absenceProgressId
required
string <uuid>

The unique identifier of an absence progress

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json;version=2020-03-16
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": {
    }
}

Edit the details of an absence progress

Activity name : PutAbsenceProgressByAbsenceProgressId

Metadata : Possible options for fields of the type 'metadata' can be acquired (GET) by adding /metadata to the PUT URL.

Edit the details of an absence progress

path Parameters
absenceProgressId
required
string <uuid>

The unique identifier of an absence progress

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Request Body schema: application/json;version=2020-03-16
required

Absence progress to edit.

startDate
string <date>

start dat of the incapacityPercentage

incapacityPercentage
integer [ 1 .. 100 ]

percentage of not being able to work

object or null <metadata>

The type of work the work the employee is fulfilling when partly returning to work.

comments
string or null <= 4000 characters

Free text field to register any relevant information.

Responses

Request samples

Content type
application/json;version=2020-03-16
{
  • "startDate": "2018-01-21",
  • "incapacityPercentage": 100,
  • "typeOfWorkResumption": {
    },
  • "comments": "Lorem ipsum dolor sit amet, id nibh adhuc omnium vix, ne nec eius inani aliquip."
}

Response samples

Content type
application/json;version=2020-03-16
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": {
    }
}

Delete a specific Absence Progress record

Activity name : DeleteAbsenceProgressByAbsenceProgressId

Delete an existing Absence Progress (for an employee). There always has to remain one record of absence progress for an absence. This last record is removed when the absence is deleted.

path Parameters
absenceProgressId
required
string <uuid>

The unique identifier of an absence progress

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": { }
}

Contact history

NL: Contact historie. History of all contacts with the employee

Contact history for an absence

Activity name : GetAbsenceContactHistoryByAbsenceId

Get the contacts history for a specific absence (verzuimmelding).

path Parameters
absenceId
required
string <uuid>

The unique identifier of an absence

query Parameters
filter
string
Example: filter=cancellationPeriodTimeUnit.key eq 4

Filter the collection

orderBy
string^-?\w+(,-?\w+)*$
Example: orderBy=-companyName,address.houseNumber

Order the collection on one or more fields

pageNumber
integer <int32>
Default: 1
Example: pageNumber=2

Specifies which page should be returned

pageSize
integer <int32>
Default: 250
Example: pageSize=20

Specifies the number of objects per page

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json;version=2018-01-01
{
  • "totalSize": 650,
  • "pageSize": 250,
  • "totalPages": 3,
  • "currentPage": 2,
  • "version": {
    },
  • "messages": [
    ],
  • "_embedded": [
    ]
}

Create a contact history for an Absence

Activity name : PostAbsenceContactHistoryByAbsenceId

Metadata : Possible options for fields of the type 'metadata' can be acquired (GET) by adding /metadata to the POST URL.

Defaults : Default values for a new object can be acquired by adding `/defaults' to the POST URL.

path Parameters
absenceId
required
string <uuid>

The unique identifier of an absence

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Request Body schema: application/json;version=2018-01-01
required

Add a record to the contact history for an absence.

contactDate
string <date>

The date on which the contact was initiated.

object <metadata>

The method of contacting the person

summary
string or null [ 1 .. 4000 ] characters

Summary of the contact.

Responses

Request samples

Content type
application/json;version=2018-01-01
{
  • "contactDate": "2018-01-01",
  • "contactMethod": {
    },
  • "summary": "string"
}

Response samples

Content type
application/json;version=2018-01-01
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": {
    }
}

Details of a contact history

Activity name : GetAbsenceContactHistoryByAbsenceContactHistoryId

Get the details of a contact

path Parameters
absencecontactHistoryId
required
string <uuid>

The unique identifier of the record

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json;version=2020-03-16
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": {
    }
}

Edit the details of a contact history

Activity name : PutAbsenceContactHistoryByAbsenceContactHistoryId

Metadata : Possible options for fields of the type 'metadata' can be acquired (GET) by adding /metadata to the PUT URL.

Edit the details of a contact history

path Parameters
absencecontactHistoryId
required
string <uuid>

The unique identifier of the record

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Request Body schema: application/json;version=2020-03-16
required

Absence progress to edit.

contactDate
string <date>

The date on which the contact was initiated.

object <metadata>

The method of contacting the person

summary
string or null [ 1 .. 4000 ] characters

Summary of the contact.

Responses

Request samples

Content type
application/json;version=2020-03-16
{
  • "contactDate": "2018-01-01",
  • "contactMethod": {
    },
  • "summary": "string"
}

Response samples

Content type
application/json;version=2020-03-16
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": {
    }
}

Delete a specific record

Activity name : DeleteAbsenceContactHistoryByAbsenceContactHistoryId

Delete an existing record from the contact history

path Parameters
absencecontactHistoryId
required
string <uuid>

The unique identifier of the record

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": { }
}

Healthcare Insurance Act

NL: WerknemerZVW. The configuration of the Healthcare Insurance Act indications determines the calculation of the premiums in the payroll calculation processes for this employment

List of Healthcare Insurance Act records for an employment

Activity name: GetHealthcareInsuranceActConfigurationsByEmploymentId


Get the list of Healthcare Insurance Act configuration records for an employment

path Parameters
employmentId
required
string <uuid>

The unique identifier of the employment

query Parameters
filter
string
Example: filter=cancellationPeriodTimeUnit.key eq 4

Filter the collection

orderBy
string^-?\w+(,-?\w+)*$
Example: orderBy=-companyName,address.houseNumber

Order the collection on one or more fields

pageNumber
integer <int32>
Default: 1
Example: pageNumber=2

Specifies which page should be returned

pageSize
integer <int32>
Default: 250
Example: pageSize=20

Specifies the number of objects per page

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json;version=2018-01-01
{
  • "totalSize": 650,
  • "pageSize": 250,
  • "totalPages": 3,
  • "currentPage": 2,
  • "version": {
    },
  • "messages": [
    ],
  • "_embedded": [
    ]
}

Create a Healthcare Insurance Act record for an employment

Activity name: PostHealthcareInsuranceActConfigurationByEmploymentId


Create a Healthcare Insurance Act configuration record for an employment

Metadata : Possible options for fields of the type 'metadata' can be acquired (GET) by adding /metadata to the POST URL.

Defaults : Default values for a new object can be acquired by adding `/defaults' to the POST URL.

path Parameters
employmentId
required
string <uuid>

The unique identifier of the employment

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Request Body schema: application/json;version=2018-01-01
required

Healthcare Insurance Act record to add to the employment.

startDate
string <date>

The start date of the entity.

A (linked chain)[./#section/Data/Date-chains] is maintained within this resource.

object <metadata>

Indicates what type of Health Care Insurance Act (Zvw) is applicable for this employment

additionalContributionEmployer
number or null <double> [ 0.01 .. 9999.99 ] ^(\d{1,4})(\.\d{1,2})?$

If applicable, please enter any additional contribution (extra bijdrage werkgever) for the employer in relation to the Healthcare Insurance Act (Zorgverzekeringswet).

nominalPremium
number or null <double> [ 0.01 .. 9999.99 ] ^(\d{1,4})(\.\d{1,2})?$

A nominal premium (nominale premie) for the Healthcare Insurance Act may be registered here, if applicable.

additionalPremium
number or null <double> [ 0.01 .. 9999.99 ] ^(\d{1,4})(\.\d{1,2})?$

Additional premium (aanvullende premie) on top of the nomial premium may be registered here, if applicable.

Responses

Request samples

Content type
application/json;version=2018-01-01
{
  • "startDate": "2018-01-01",
  • "healthcareInsuranceActType": {
    },
  • "additionalContributionEmployer": 320,
  • "nominalPremium": 320,
  • "additionalPremium": 120
}

Response samples

Content type
application/json;version=2018-01-01
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": {
    }
}

Details of a Healthcare Insurance Act record

Activity name: GetHealthcareInsuranceActConfigurationByHealthcareInsuranceActConfigurationId

Get the details of a Healthcare Insurance Act configuration record

path Parameters
healthcareInsuranceActConfigurationId
required
string <uuid>

The unique identifier of the Healthcare Insurance Act record

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json;version=2018-01-01
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": {
    }
}

Edit the details of a Healthcare Insurance Act record

Activity name: PutHealthcareInsuranceActConfigurationByHealthcareInsuranceActConfigurationId

Edit the details for a Healthcare Insurance Act record

Metadata : Possible options for fields of the type 'metadata' can be acquired (GET) by adding /metadata to the PUT URL.

path Parameters
healthcareInsuranceActConfigurationId
required
string <uuid>

The unique identifier of the Healthcare Insurance Act record

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Request Body schema: application/json;version=2018-01-01
required

Healthcare Insurance Act record to edit.

startDate
string <date>

The start date of the entity.

A (linked chain)[./#section/Data/Date-chains] is maintained within this resource.

object <metadata>

Indicates what type of Health Care Insurance Act (Zvw) is applicable for this employment

additionalContributionEmployer
number or null <double> [ 0.01 .. 9999.99 ] ^(\d{1,4})(\.\d{1,2})?$

If applicable, please enter any additional contribution (extra bijdrage werkgever) for the employer in relation to the Healthcare Insurance Act (Zorgverzekeringswet).

nominalPremium
number or null <double> [ 0.01 .. 9999.99 ] ^(\d{1,4})(\.\d{1,2})?$

A nominal premium (nominale premie) for the Healthcare Insurance Act may be registered here, if applicable.

additionalPremium
number or null <double> [ 0.01 .. 9999.99 ] ^(\d{1,4})(\.\d{1,2})?$

Additional premium (aanvullende premie) on top of the nomial premium may be registered here, if applicable.

Responses

Request samples

Content type
application/json;version=2018-01-01
{
  • "startDate": "2018-01-01",
  • "healthcareInsuranceActType": {
    },
  • "additionalContributionEmployer": 320,
  • "nominalPremium": 320,
  • "additionalPremium": 120
}

Response samples

Content type
application/json;version=2018-01-01
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": {
    }
}

Delete a specific Healthcare Insurance Act record

Activity name: DeleteHealthcareInsuranceActConfigurationByHealthcareInsuranceActConfigurationId

Delete a Healthcare Insurance Act record for the employment

path Parameters
healthcareInsuranceActConfigurationId
required
string <uuid>

The unique identifier of the Healthcare Insurance Act record

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": { }
}

Occupational disability

NL: WAO/WIA. In case of occupational disabilities these can be manged here

List of occupational disabilities for an employee

Activity name : GetOccupationalDisabilitiesByEmployeeId

Get the list of occupational disabilities for an employee. This endpoint returns occupational disability information regarding the Occupational Disability Insurance Act (WAO) and Work Capacity Act (WIA).

path Parameters
employeeId
required
string <uuid>

The unique identifier of the employee

query Parameters
filter
string
Example: filter=cancellationPeriodTimeUnit.key eq 4

Filter the collection

orderBy
string^-?\w+(,-?\w+)*$
Example: orderBy=-companyName,address.houseNumber

Order the collection on one or more fields

pageNumber
integer <int32>
Default: 1
Example: pageNumber=2

Specifies which page should be returned

pageSize
integer <int32>
Default: 250
Example: pageSize=20

Specifies the number of objects per page

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json;version=2018-01-01
{
  • "totalSize": 650,
  • "pageSize": 250,
  • "totalPages": 3,
  • "currentPage": 2,
  • "version": {
    },
  • "messages": [
    ],
  • "_embedded": [
    ]
}

Applicationsets

NL: Voorgedefineerde sets met bijvoorbeeld producten, rechten en exportvelden.

List of applicationsets for an employer

Activity name: GetEmployerApplicationsetsByEmployerId


Get the list of Applicationsets for an employer.

path Parameters
employerId
required
string <uuid>

The unique identifier of the employer

query Parameters
filter
string
Example: filter=cancellationPeriodTimeUnit.key eq 4

Filter the collection

orderBy
string^-?\w+(,-?\w+)*$
Example: orderBy=-companyName,address.houseNumber

Order the collection on one or more fields

pageNumber
integer <int32>
Default: 1
Example: pageNumber=2

Specifies which page should be returned

pageSize
integer <int32>
Default: 250
Example: pageSize=20

Specifies the number of objects per page

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json;version=2018-01-01
{
  • "totalSize": 650,
  • "pageSize": 250,
  • "totalPages": 3,
  • "currentPage": 2,
  • "version": {
    },
  • "messages": [
    ],
  • "_embedded": [
    ]
}

Create an applicationset for an employer

Activity name: PostApplicationSetByEmployerId


Create an applicationset for an employer.

path Parameters
employerId
required
string <uuid>

The unique identifier of the employer

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Request Body schema: application/json;version=2018-01-01
required

Applicationset to add to the employer.

applicationSetType
string
Enum: "Products" "ExportDataTemplate" "Rights"

The type of the set

name
string <= 50

Name of the exportset

data
string

Contains an array of objects in json structure.

Responses

Request samples

Content type
application/json;version=2018-01-01
{
  • "applicationSetType": "Products",
  • "name": "Exportset Dienstverband",
  • "data": "json object"
}

Response samples

Content type
application/json;version=2018-01-01
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": {
    }
}

Edit the details of an applicationset

Activity name: PutEmployerApplicationSetByApplicationSetId

Edit the details for an applicationset.

path Parameters
applicationSetId
required
string <uuid>

The unique identifier of the Applicationset

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Request Body schema: application/json;version=2018-01-01
required

Applicationset to edit.

name
string <= 50

Name of the exportset

data
string

Contains an array of objects in json structure.

Responses

Request samples

Content type
application/json;version=2018-01-01
{
  • "name": "Exportset Dienstverband",
  • "data": "json object"
}

Response samples

Content type
application/json;version=2018-01-01
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": {
    }
}

Delete a specific applicationset

Activity name: DeleteEmployerApplicationSetByApplicationSetId

Delete an applicationset for the employer

path Parameters
applicationSetId
required
string <uuid>

The unique identifier of the Applicationset

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": { }
}

List of applicationsets for a provider

Activity name: GetApplicationsetsByProviderId


Get the list of Applicationsets for a provider.

path Parameters
providerId
required
string <uuid>

The unique identifier of a provider

query Parameters
filter
string
Example: filter=cancellationPeriodTimeUnit.key eq 4

Filter the collection

orderBy
string^-?\w+(,-?\w+)*$
Example: orderBy=-companyName,address.houseNumber

Order the collection on one or more fields

pageNumber
integer <int32>
Default: 1
Example: pageNumber=2

Specifies which page should be returned

pageSize
integer <int32>
Default: 250
Example: pageSize=20

Specifies the number of objects per page

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json;version=2018-01-01
{
  • "totalSize": 650,
  • "pageSize": 250,
  • "totalPages": 3,
  • "currentPage": 2,
  • "version": {
    },
  • "messages": [
    ],
  • "_embedded": [
    ]
}

Create an applicationset for a provider

Activity name: PostApplicationSetByProviderId


Create an applicationset for a provider.

path Parameters
providerId
required
string <uuid>

The unique identifier of a provider

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Request Body schema: application/json;version=2018-01-01
required

Applicationset to add to the provider.

applicationSetType
string
Enum: "Products" "ExportDataTemplate" "Rights"

The type of the set

name
string <= 50

Name of the exportset

data
string

Contains an array of objects in json structure.

Responses

Request samples

Content type
application/json;version=2018-01-01
{
  • "applicationSetType": "Products",
  • "name": "Exportset Dienstverband",
  • "data": "json object"
}

Response samples

Content type
application/json;version=2018-01-01
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": {
    }
}

Edit the details of an applicationset

Activity name: PutProviderApplicationSetByApplicationSetId

Edit the details for an applicationset.

path Parameters
applicationSetId
required
string <uuid>

The unique identifier of the Applicationset

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Request Body schema: application/json;version=2018-01-01
required

Applicationset to edit.

name
string <= 50

Name of the exportset

data
string

Contains an array of objects in json structure.

Responses

Request samples

Content type
application/json;version=2018-01-01
{
  • "name": "Exportset Dienstverband",
  • "data": "json object"
}

Response samples

Content type
application/json;version=2018-01-01
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": {
    }
}

Delete a specific applicationset

Activity name: DeleteProviderApplicationSetByApplicationSetId

Delete an applicationset for the provider

path Parameters
applicationSetId
required
string <uuid>

The unique identifier of the Applicationset

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": { }
}

List of applicationsets for a user

Activity name: GetApplicationsetsByUserId


Get the list of Applicationsets for a user.

path Parameters
userId
required
string <uuid>

The unique identifier of an user

query Parameters
filter
string
Example: filter=cancellationPeriodTimeUnit.key eq 4

Filter the collection

orderBy
string^-?\w+(,-?\w+)*$
Example: orderBy=-companyName,address.houseNumber

Order the collection on one or more fields

pageNumber
integer <int32>
Default: 1
Example: pageNumber=2

Specifies which page should be returned

pageSize
integer <int32>
Default: 250
Example: pageSize=20

Specifies the number of objects per page

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json;version=2018-01-01
{
  • "totalSize": 650,
  • "pageSize": 250,
  • "totalPages": 3,
  • "currentPage": 2,
  • "version": {
    },
  • "messages": [
    ],
  • "_embedded": [
    ]
}

Create an applicationset for a user

Activity name: PostApplicationSetByUserId


Create an applicationset for a user.

path Parameters
userId
required
string <uuid>

The unique identifier of an user

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Request Body schema: application/json;version=2018-01-01
required

Applicationset to add to the user.

applicationSetType
string
Enum: "Products" "ExportDataTemplate" "Rights"

The type of the set

name
string <= 50

Name of the exportset

data
string

Contains an array of objects in json structure.

Responses

Request samples

Content type
application/json;version=2018-01-01
{
  • "applicationSetType": "Products",
  • "name": "Exportset Dienstverband",
  • "data": "json object"
}

Response samples

Content type
application/json;version=2018-01-01
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": {
    }
}

Edit the details of an applicationset for a user

Activity name: PutUserApplicationSetByApplicationSetId

Edit the details for an applicationset.

path Parameters
applicationSetId
required
string <uuid>

The unique identifier of the Applicationset

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Request Body schema: application/json;version=2018-01-01
required

Applicationset to edit.

name
string <= 50

Name of the exportset

data
string

Contains an array of objects in json structure.

Responses

Request samples

Content type
application/json;version=2018-01-01
{
  • "name": "Exportset Dienstverband",
  • "data": "json object"
}

Response samples

Content type
application/json;version=2018-01-01
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": {
    }
}

Delete a specific applicationset for a user

Activity name: DeleteUserApplicationSetByApplicationSetId

Delete an applicationset for the user

path Parameters
applicationSetId
required
string <uuid>

The unique identifier of the Applicationset

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": { }
}

List of applicationsets provided by the Loket application

Activity name: GetLoketApplicationsetsByBearerToken


Get the list of Applicationsets for an employer.

query Parameters
filter
string
Example: filter=cancellationPeriodTimeUnit.key eq 4

Filter the collection

orderBy
string^-?\w+(,-?\w+)*$
Example: orderBy=-companyName,address.houseNumber

Order the collection on one or more fields

pageNumber
integer <int32>
Default: 1
Example: pageNumber=2

Specifies which page should be returned

pageSize
integer <int32>
Default: 250
Example: pageSize=20

Specifies the number of objects per page

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json;version=2018-01-01
{
  • "totalSize": 650,
  • "pageSize": 250,
  • "totalPages": 3,
  • "currentPage": 2,
  • "version": {
    },
  • "messages": [
    ],
  • "_embedded": [
    ]
}

Assessment

Initiate an assessment. (External).

Initiate assessment

Activity name : PostInitiateAssessmentByConceptEmployeeId

Metadata: No metadata available. No defaults available.

Initiate the proces to perform an assessment for a concept employee.

path Parameters
conceptEmployeeId
required
string <uuid>

The unique identifier of the concept employee

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Request Body schema: application/json;version=2018-01-01
required

Contactinformation of the assessment.

withIq
boolean

The type of the assessment

Responses

Request samples

Content type
application/json;version=2018-01-01
{
  • "withIq": true
}

Response samples

Content type
application/json
{
  • "totalSize": 650,
  • "pageSize": 250,
  • "totalPages": 3,
  • "currentPage": 2,
  • "version": {
    },
  • "messages": [
    ],
  • "_embedded": [
    ]
}

List of assessments

Activity name : GetAssessmentsByEmployerId

Retrieve a list of assessments.

path Parameters
employerId
required
string <uuid>

The unique identifier of the employer

query Parameters
filter
string
Example: filter=cancellationPeriodTimeUnit.key eq 4

Filter the collection

orderBy
string^-?\w+(,-?\w+)*$
Example: orderBy=-companyName,address.houseNumber

Order the collection on one or more fields

pageNumber
integer <int32>
Default: 1
Example: pageNumber=2

Specifies which page should be returned

pageSize
integer <int32>
Default: 250
Example: pageSize=20

Specifies the number of objects per page

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json;version=2018-01-01
{
  • "totalSize": 650,
  • "pageSize": 250,
  • "totalPages": 3,
  • "currentPage": 2,
  • "version": {
    },
  • "messages": [
    ],
  • "_embedded": []
}

Audit trail

NL: Mutatieverslag. Allows the user to see the changes that were made over time

Download the audit trail for the payroll period data

Activity name : GetPayrollPeriodDataAuditTrailByPayrollAdministrationId

Returns the changes that were made in the payroll period data from the given start up to and including the given end date.

path Parameters
payrollAdministrationId
required
string <uuid>

The unique identifier of an administration

query Parameters
startDate
required
stringdate
Example: startDate=2020-08-01

The start date

endDate
required
stringdate
Example: endDate=2020-08-31

The end date

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": { }
}

Get the employer data audit trail

Activity name : GetEmployerDataAuditTrailByEmployerId

Get the mutations for the all the tables linked to the employer containing employer-related data.

path Parameters
employerId
required
string <uuid>

The unique identifier of the employer

query Parameters
startDate
required
stringdate
Example: startDate=2020-08-01

The start date

endDate
required
stringdate
Example: endDate=2020-08-31

The end date

filter
string
Example: filter=cancellationPeriodTimeUnit.key eq 4

Filter the collection

orderBy
string^-?\w+(,-?\w+)*$
Example: orderBy=-companyName,address.houseNumber

Order the collection on one or more fields

pageNumber
integer <int32>
Default: 1
Example: pageNumber=2

Specifies which page should be returned

pageSize
integer <int32>
Default: 250
Example: pageSize=20

Specifies the number of objects per page

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json;version=2018-01-01
{
  • "totalSize": 650,
  • "pageSize": 250,
  • "totalPages": 3,
  • "currentPage": 2,
  • "version": {
    },
  • "messages": [
    ],
  • "_embedded": [
    ]
}

Get the employee data audit trail

Activity name : GetEmployeeDataAuditTrailByEmployerId

Get the mutations for the all the tables linked to the employee (this includes employment and underlying entities).

path Parameters
employerId
required
string <uuid>

The unique identifier of the employer

query Parameters
startDate
required
stringdate
Example: startDate=2020-08-01

The start date

endDate
required
stringdate
Example: endDate=2020-08-31

The end date

filter
string
Example: filter=cancellationPeriodTimeUnit.key eq 4

Filter the collection

orderBy
string^-?\w+(,-?\w+)*$
Example: orderBy=-companyName,address.houseNumber

Order the collection on one or more fields

pageNumber
integer <int32>
Default: 1
Example: pageNumber=2

Specifies which page should be returned

pageSize
integer <int32>
Default: 250
Example: pageSize=20

Specifies the number of objects per page

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json;version=2018-01-01
{
  • "totalSize": 650,
  • "pageSize": 250,
  • "totalPages": 3,
  • "currentPage": 2,
  • "version": {
    },
  • "messages": [
    ],
  • "_embedded": [
    ]
}

Get payroll period data audit trail

Activity name : GetPayrollPeriodDataAuditTrailByPayrollAdministrationId

Get the audit trail for the payroll period data. This endpoint requires either the set of query parameters startDate and endDate or the query parameter payrollPeriodId to be set. Request with none or all of these three query parameters are not supported.

path Parameters
payrollAdministrationId
required
string <uuid>

The unique identifier of an administration

query Parameters
startDate
stringdate
Example: startDate=2020-08-01

The start date

endDate
stringdate
Example: endDate=2020-08-31

The end date

payrollPeriodId
integer <int32>
Example: payrollPeriodId=202308

The unique identifier of the payroll period

filter
string
Example: filter=cancellationPeriodTimeUnit.key eq 4

Filter the collection

orderBy
string^-?\w+(,-?\w+)*$
Example: orderBy=-companyName,address.houseNumber

Order the collection on one or more fields

pageNumber
integer <int32>
Default: 1
Example: pageNumber=2

Specifies which page should be returned

pageSize
integer <int32>
Default: 250
Example: pageSize=20

Specifies the number of objects per page

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json;version=2018-01-01
{
  • "totalSize": 650,
  • "pageSize": 250,
  • "totalPages": 3,
  • "currentPage": 2,
  • "version": {
    },
  • "messages": [
    ],
  • "_embedded": [
    ]
}

Audit trail payroll run

Download the audit trail for the employment payroll data

Activity name : GetEmploymentPayrollDataAuditTrailByPayrollAdministrationId

Returns the changes that were made in the payroll data for the employments.

This includes resources such as (allmost all payroll related resources except payroll period data which has its own audit trail download):

  • Wage
  • Working hours
  • Bennefits and deductions
  • Employment
  • Fiscal properties
  • Organizational entity
path Parameters
payrollAdministrationId
required
string <uuid>

The unique identifier of an administration

query Parameters
startDate
required
stringdate
Example: startDate=2020-08-01

The start date

endDate
required
stringdate
Example: endDate=2020-08-31

The end date

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": { }
}

Employer user authorizations

The authorizations for the user

Activity name : GetEmployerUserAuthorizationsByEmployerIdAndUserId

List the available authorizations for the user - employer combination. Note that the employer user can have a different set of authorizations per employer.

path Parameters
employerId
required
string <uuid>

The unique identifier of an employer

userId
required
string <uuid>

The unique identifier of an user

query Parameters
filter
string
Example: filter=cancellationPeriodTimeUnit.key eq 4

Filter the collection

orderBy
string^-?\w+(,-?\w+)*$
Example: orderBy=-companyName,address.houseNumber

Order the collection on one or more fields

pageNumber
integer <int32>
Default: 1
Example: pageNumber=2

Specifies which page should be returned

pageSize
integer <int32>
Default: 250
Example: pageSize=20

Specifies the number of objects per page

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json;version=2018-01-01
{
  • "totalSize": 650,
  • "pageSize": 250,
  • "totalPages": 3,
  • "currentPage": 2,
  • "version": {
    },
  • "messages": [
    ],
  • "_embedded": [
    ]
}

Manage the employer user authorizations

Activity name : PatchEmployerUserAuthorizationsByEmployerIdAndUserId

Manage the employer user authorizations and authorizationSet.

Note: Currently the authorizationSet doesnt do anything in regard to which authorizations are enabled or disabled. It only functions as a guide to the GUI to visualize and save the authorizations linked to the authorizationSet Only the authorizations with isEnabled set to true are saved all other authorizations will be disabled.

path Parameters
employerId
required
string <uuid>

The unique identifier of an employer

userId
required
string <uuid>

The unique identifier of an user

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Request Body schema: application/json;version=2018-01-01
required
object or null <metadata> (authorizationSet)
Array of objects (authorizations)

Responses

Request samples

Content type
application/json;version=2018-01-01
{
  • "authorizationSet": {
    },
  • "authorizations": [
    ]
}

Response samples

Content type
application/json;version=2018-01-01
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": { }
}

The authorization set for the user for the employer

Activity name : GetEmployerUserAuthorizationSetByEmployerIdAndUserId

Get the authorization set for the user - employer combination. Note that the employer user can have a different set of authorizations per employer.

path Parameters
employerId
required
string <uuid>

The unique identifier of an employer

userId
required
string <uuid>

The unique identifier of an user

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json;version=2018-01-01
{
  • "totalSize": 650,
  • "pageSize": 250,
  • "totalPages": 3,
  • "currentPage": 2,
  • "version": {
    },
  • "messages": [
    ],
  • "content": {
    }
}

Provider user authorizations

The authorizations for the provider user

Activity name : GetProviderUserAuthorizationsByUserId

List the available authorizations for the provider user

path Parameters
userId
required
string <uuid>

The unique identifier of an user

query Parameters
filter
string
Example: filter=cancellationPeriodTimeUnit.key eq 4

Filter the collection

orderBy
string^-?\w+(,-?\w+)*$
Example: orderBy=-companyName,address.houseNumber

Order the collection on one or more fields

pageNumber
integer <int32>
Default: 1
Example: pageNumber=2

Specifies which page should be returned

pageSize
integer <int32>
Default: 250
Example: pageSize=20

Specifies the number of objects per page

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json;version=2018-01-01
{
  • "totalSize": 650,
  • "pageSize": 250,
  • "totalPages": 3,
  • "currentPage": 2,
  • "version": {
    },
  • "messages": [
    ],
  • "_embedded": [
    ]
}

Manage the Provider user authorizations

Activity name : PatchProviderUserAuthorizationsByUserId

Manage the Provider user authorizations and authorizationSet

Note: Currently the authorizationSet doesnt do anything in regard to which authorizations are enabled or disabled. It only functions as a guide to the GUI to visualize and save the authorizations linked to the authorizationSet Only the authorizations with isEnabled set to true are saved all other authorizations will be disabled. There are two exceptions

path Parameters
userId
required
string <uuid>

The unique identifier of an user

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Request Body schema: application/json;version=2018-01-01
required
object or null <metadata> (authorizationSet)
Array of objects (authorizations)

Responses

Request samples

Content type
application/json;version=2018-01-01
{
  • "authorizationSet": {
    },
  • "authorizations": [
    ]
}

Response samples

Content type
application/json;version=2018-01-01
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": { }
}

The authorization set for the user for the Provider

Activity name : GetProviderUserAuthorizationSetByUserId

Get the authorization set for the provider user

path Parameters
userId
required
string <uuid>

The unique identifier of an user

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json;version=2018-01-01
{
  • "totalSize": 650,
  • "pageSize": 250,
  • "totalPages": 3,
  • "currentPage": 2,
  • "version": {
    },
  • "messages": [
    ],
  • "content": {
    }
}

Authorization sets

NL: Autorisatie sets.

List of authorization sets

Activity name : GetAuthorizationSetsByProviderId

List the available authorization sets.

path Parameters
providerId
required
string <uuid>

The unique identifier of a provider

query Parameters
filter
string
Example: filter=cancellationPeriodTimeUnit.key eq 4

Filter the collection

orderBy
string^-?\w+(,-?\w+)*$
Example: orderBy=-companyName,address.houseNumber

Order the collection on one or more fields

pageNumber
integer <int32>
Default: 1
Example: pageNumber=2

Specifies which page should be returned

pageSize
integer <int32>
Default: 250
Example: pageSize=20

Specifies the number of objects per page

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json;version=2018-01-01
{
  • "totalSize": 650,
  • "pageSize": 250,
  • "totalPages": 3,
  • "currentPage": 2,
  • "version": {
    },
  • "messages": [
    ],
  • "_embedded": [
    ]
}

Create an AuthorizationSet for an provider

Activity name : PostAuthorizationSetByProviderId

Create an authorization set.

path Parameters
providerId
required
string <uuid>

The unique identifier of a provider

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Request Body schema: application/json;version=2018-01-01
required

authorizationSet to add.

description
string <= 50 characters
Array of objects (authorizations)

Responses

Request samples

Content type
application/json;version=2018-01-01
{
  • "description": "HRM Rechten",
  • "authorizations": [
    ]
}

Response samples

Content type
application/json;version=2018-01-01
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": {
    }
}

Details of a authorization set

Activity name : GetAuthorizationSetByAuthorizationSetId

Details of an authorization set.

path Parameters
authorizationSetId
required
string <uuid>

The unique identifier of an authorization set

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json;version=2018-01-01
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": {
    }
}

Edit the details of an authorizationset

Activity name : PutAuthorizationSetByAuthorizationSetId

Edit the details of an authorizationset.

path Parameters
authorizationSetId
required
string <uuid>

The unique identifier of an authorization set

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Request Body schema: application/json;version=2018-01-01
required

Autorizationset to edit.

description
string <= 50 characters
Array of objects (authorizations)

Responses

Request samples

Content type
application/json;version=2018-01-01
{
  • "description": "HRM Rechten",
  • "authorizations": [
    ]
}

Response samples

Content type
application/json;version=2018-01-01
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": {
    }
}

Delete a specific AuthorizationSet

Activity name: DeleteAuthorizationSetByAuthorizationSetId

Delete an AuthorizationSet.

path Parameters
authorizationSetId
required
string <uuid>

The unique identifier of an authorization set

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": { }
}

Authorizations

NL: Autorisaties (toegestane activities). Acquire the autorizations the user has for the given provider or employer

List of authorized activities with regard to the employer

Activity name : GetAuthorizationsByEmployerId

Get the array of activities the user is authenticated for with regard to the specified employer

path Parameters
employerId
required
string <uuid>

The unique identifier of the employer

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
{
  • "totalSize": 650,
  • "pageSize": 250,
  • "totalPages": 3,
  • "currentPage": 2,
  • "version": {
    },
  • "messages": [
    ],
  • "_embedded": [
    ]
}

List of authorized activities with regard to the provider

Activity name : GetAuthorizationsByProviderId

Get the array of activities the user is authenticated for with regard to the specified provider. This endpoint is only accessible for providerusers.

path Parameters
providerId
required
string <uuid>

The unique identifier of a provider

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json;version=2018-01-01
{
  • "totalSize": 650,
  • "pageSize": 250,
  • "totalPages": 3,
  • "currentPage": 2,
  • "version": {
    },
  • "messages": [
    ],
  • "_embedded": [
    ]
}

Base for employment fund calculation

NL: FondsGrondslag. The base used in the calculation of the employment fund contribution

List of bases for employment fund calculations.

Activity name : GetBasesForEmploymentFundCalculationByEmploymentId

Get a list of the bases (money) that are used in employment fund calculations.

path Parameters
employmentId
required
string <uuid>

The unique identifier of the employment

query Parameters
filter
string
Example: filter=cancellationPeriodTimeUnit.key eq 4

Filter the collection

orderBy
string^-?\w+(,-?\w+)*$
Example: orderBy=-companyName,address.houseNumber

Order the collection on one or more fields

pageNumber
integer <int32>
Default: 1
Example: pageNumber=2

Specifies which page should be returned

pageSize
integer <int32>
Default: 250
Example: pageSize=20

Specifies the number of objects per page

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json;version=2018-01-01
{
  • "totalSize": 650,
  • "pageSize": 250,
  • "totalPages": 3,
  • "currentPage": 2,
  • "version": {
    },
  • "messages": [
    ],
  • "_embedded": [
    ]
}

Add a base for employment fund calculation

Activity name : PostBaseForEmploymentFundCalculationByEmploymentId

Metadata : Possible options for fields of the type "metadata" can be acquired (GET) by adding /metadata to the POST URL.

Defaults : Default values for a new object can be acquired by adding `/defaults" to the POST URL.

Add a base for employment fund calculation.

path Parameters
employmentId
required
string <uuid>

The unique identifier of the employment

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Request Body schema: application/json;version=2018-01-01
required
startDate
string <date>

The date on which this base for calculation starts.

A (linked chain)[./#section/Data/Date-chains] per base for calculation is maintained within this resource. So multiple bases can be active at the same time for different payrollcomponents

endDate
string or null <date>

The end date of the entity. The date is up to and including.

base
number <double> [ 0.01 .. 999999.99 ] ^(\d{1,6})(\.\d{1,2})?$

The base (amount of money) to be used in the fund calculation

object <metadata> (payrollComponentReadOnlyFalse)

A payroll component is the link to the salary calculation. In this case only specific payrollcomponents are available. The payroll components that are reserved for use as the base for fund calculations

payrollComponent is a metadata field within the payroll administration context. Possible values can be managed by the user.

Responses

Request samples

Content type
application/json;version=2018-01-01
{
  • "startDate": "2018-01-01",
  • "endDate": "2018-10-23",
  • "base": 25000,
  • "payrollComponent": {
    }
}

Response samples

Content type
application/json;version=2018-01-01
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": {
    }
}

Details of an base for employment fund calculations

Activity name : GetBaseForEmploymentFundCalculationByBaseForEmploymentFundCalculationId

Get the details of a base for employment fund calculations.

path Parameters
baseforemploymentfundcalculationId
required
string <uuid>

The unique identifier of a base for employment fund calculation

query Parameters
filter
string
Example: filter=cancellationPeriodTimeUnit.key eq 4

Filter the collection

orderBy
string^-?\w+(,-?\w+)*$
Example: orderBy=-companyName,address.houseNumber

Order the collection on one or more fields

pageNumber
integer <int32>
Default: 1
Example: pageNumber=2

Specifies which page should be returned

pageSize
integer <int32>
Default: 250
Example: pageSize=20

Specifies the number of objects per page

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json;version=2018-01-01
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": {
    }
}

Change the properties of a base for employment fund calculation

Activity name : PutBaseForEmploymentFundCalculationByBaseForEmploymentFundCalculationId

Metadata : Possible options for fields of the type "metadata" can be acquired (GET) by adding /metadata to the PUT URL.

Edit the properties of a base for employment calculation

path Parameters
baseforemploymentfundcalculationId
required
string <uuid>

The unique identifier of a base for employment fund calculation

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Request Body schema: application/json;version=2018-01-01
required

to edit

startDate
string <date>

The date on which this base for calculation starts.

A (linked chain)[./#section/Data/Date-chains] per base for calculation is maintained within this resource. So multiple bases can be active at the same time for different payrollcomponents

endDate
string or null <date>

The end date of the entity. The date is up to and including.

base
number <double> [ 0.01 .. 999999.99 ] ^(\d{1,6})(\.\d{1,2})?$

The base (amount of money) to be used in the fund calculation

Responses

Request samples

Content type
application/json;version=2018-01-01
{
  • "startDate": "2018-01-01",
  • "endDate": "2018-10-23",
  • "base": 25000
}

Response samples

Content type
application/json;version=2018-01-01
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": {
    }
}

Delete a specific record

Activity name : DeleteBaseForEmploymentFundCalculationByBaseForEmploymentFundCalculationId

Delete an existing base for employment fund calculation

path Parameters
baseforemploymentfundcalculationId
required
string <uuid>

The unique identifier of a base for employment fund calculation

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": { }
}

Base for calculation

NL: Grondslag. The base used in certain calculation. Like the base amount to calculate leave allowance over

List of bases for calculations.

Activity name : GetBasesForCalculationByEmploymentId

Get a list of the bases (money) that are used as the base for certain calculations.

path Parameters
employmentId
required
string <uuid>

The unique identifier of the employment

query Parameters
filter
string
Example: filter=cancellationPeriodTimeUnit.key eq 4

Filter the collection

orderBy
string^-?\w+(,-?\w+)*$
Example: orderBy=-companyName,address.houseNumber

Order the collection on one or more fields

pageNumber
integer <int32>
Default: 1
Example: pageNumber=2

Specifies which page should be returned

pageSize
integer <int32>
Default: 250
Example: pageSize=20

Specifies the number of objects per page

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json;version=2018-01-01
{
  • "totalSize": 650,
  • "pageSize": 250,
  • "totalPages": 3,
  • "currentPage": 2,
  • "version": {
    },
  • "messages": [
    ],
  • "_embedded": [
    ]
}

Add a base for calculation

Activity name : PostBaseForCalculationByEmploymentId

Metadata : Possible options for fields of the type 'metadata' can be acquired (GET) by adding /metadata to the POST URL.

Defaults : Default values for a new object can be acquired by adding /defaults to the POST URL.

Add a base for calculation record.

path Parameters
employmentId
required
string <uuid>

The unique identifier of the employment

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Request Body schema: application/json;version=2018-01-01
required

Add a base for calculation record.

startDate
string <date>

The date on which this base starts.

A (linked chain)[./#section/Data/Date-chains] per base is maintained within this resource. So multiple bases can be active at the same time but one specific base can never be active multiple times at the same time.

endDate
string or null <date>

The end date of the entity. The date is up to and including.

object or null

Only set a value for the underlying fields if you want to deviate from the values as defined by the selected base. Set deviations to null if no deviations apply.

Deviating is done on either all the fields or none.

object <metadata>

This fields indicates how the age based minimum is applied

object <metadata>

This fields indicates how the age based maximum is applied

object <metadata>

base is a metadata field within the payroll administration context. Possible values can be managed by the user.

Responses

Request samples

Content type
application/json;version=2018-01-01
{
  • "startDate": "2018-01-01",
  • "endDate": "2018-10-23",
  • "deviations": {
    },
  • "ageBasedMinimum": {
    },
  • "ageBasedMaximum": {
    },
  • "base": {
    }
}

Response samples

Content type
application/json;version=2018-01-01
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": {
    }
}

Details of an base for calculation

Activity name : GetBaseForCalculationByBaseForCalculationId

Get the details of a base for calculation.

path Parameters
baseforcalculationId
required
string <uuid>

The unique identifier of a base for calculation

query Parameters
filter
string
Example: filter=cancellationPeriodTimeUnit.key eq 4

Filter the collection

orderBy
string^-?\w+(,-?\w+)*$
Example: orderBy=-companyName,address.houseNumber

Order the collection on one or more fields

pageNumber
integer <int32>
Default: 1
Example: pageNumber=2

Specifies which page should be returned

pageSize
integer <int32>
Default: 250
Example: pageSize=20

Specifies the number of objects per page

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json;version=2018-01-01
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": {
    }
}

Change the properties of a base for calculation

Activity name : PutBaseForCalculationByBaseForCalculationId

Metadata : Possible options for fields of the type 'metadata' can be acquired (GET) by adding /metadata to the PUT URL.

Edit the properties of a base for calculation

path Parameters
baseforcalculationId
required
string <uuid>

The unique identifier of a base for calculation

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Request Body schema: application/json;version=2018-01-01
required

to edit

startDate
string <date>

The date on which this base starts.

A (linked chain)[./#section/Data/Date-chains] per base is maintained within this resource. So multiple bases can be active at the same time but one specific base can never be active multiple times at the same time.

endDate
string or null <date>

The end date of the entity. The date is up to and including.

object or null

Only set a value for the underlying fields if you want to deviate from the values as defined by the selected base. Set deviations to null if no deviations apply.

Deviating is done on either all the fields or none.

object <metadata>

This fields indicates how the age based minimum is applied

object <metadata>

This fields indicates how the age based maximum is applied

Responses

Request samples

Content type
application/json;version=2018-01-01
{
  • "startDate": "2018-01-01",
  • "endDate": "2018-10-23",
  • "deviations": {
    },
  • "ageBasedMinimum": {
    },
  • "ageBasedMaximum": {
    }
}

Response samples

Content type
application/json;version=2018-01-01
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": {
    }
}

Delete a specific record

Activity name : DeleteBaseForCalculationByBaseForCalculationId

Delete an existing base for calculation

path Parameters
baseforcalculationId
required
string <uuid>

The unique identifier of a base for calculation

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": { }
}

Collective bases for calculation

Create bases for calculation for multiple employments

Activity name : PostCollectiveBasesForCalculationByEmployerId

Create new bases for calculations for multiple employments of an employer

path Parameters
employerId
required
string <uuid>

The unique identifier of the employer

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Request Body schema: application/json;version=2018-01-01
required

Stuff to add.

Array
employmentId
string <uuid> ^[{(]?[0-9A-F]{8}[-]?([0-9A-F]{4}[-]?){3}[0-9...

The unique identifier of an object (GUID/UUID)

startDate
string <date>

The date on which this base starts.

A (linked chain)[./#section/Data/Date-chains] per base is maintained within this resource. So multiple bases can be active at the same time but one specific base can never be active multiple times at the same time.

endDate
string or null <date>

The end date of the entity. The date is up to and including.

object or null

Only set a value for the underlying fields if you want to deviate from the values as defined by the selected base. Set deviations to null if no deviations apply.

Deviating is done on either all the fields or none.

object <metadata>

This fields indicates how the age based minimum is applied

object <metadata>

This fields indicates how the age based maximum is applied

object <metadata>

base is a metadata field within the payroll administration context. Possible values can be managed by the user.

Responses

Request samples

Content type
application/json;version=2018-01-01
[
  • {
    }
]

Response samples

Content type
application/json;version=2018-01-01
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": {
    }
}

Set base for calculation enddate for multiple employments

Activity name : PatchCollectiveBasesForCalculationByEmployerId

Set the base for calculation enddate for multiple employments of an employer

path Parameters
employerId
required
string <uuid>

The unique identifier of the employer

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Request Body schema: application/json;version=2018-01-01
required

Stuff to change.

Array
employmentId
string <uuid> ^[{(]?[0-9A-F]{8}[-]?([0-9A-F]{4}[-]?){3}[0-9...

The unique identifier of an object (GUID/UUID)

endDate
string <date>

The end date of the entity. The date is up to and including.

baseForCalculationId
string <uuid> ^[{(]?[0-9A-F]{8}[-]?([0-9A-F]{4}[-]?){3}[0-9...

The unique identifier of an object (GUID/UUID)

Responses

Request samples

Content type
application/json;version=2018-01-01
[
  • {
    }
]

Response samples

Content type
application/json;version=2018-01-01
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": {
    }
}

Benefit in kind type

NL: Soort verstrekking. Benefit in kind type

List benefit in kind types for an employer

Activity name : GetBenefitInKindTypesByEmployerId

Get a list of the benefit in kind types for an employer.

Note: The benefit in kind types defined at the employer level can be used as value for the field typeOfBenefitInKind in the BenefitInKind resource at the employment level.

path Parameters
employerId
required
string <uuid>

The unique identifier of the employer

query Parameters
filter
string
Example: filter=cancellationPeriodTimeUnit.key eq 4

Filter the collection

orderBy
string^-?\w+(,-?\w+)*$
Example: orderBy=-companyName,address.houseNumber

Order the collection on one or more fields

pageNumber
integer <int32>
Default: 1
Example: pageNumber=2

Specifies which page should be returned

pageSize
integer <int32>
Default: 250
Example: pageSize=20

Specifies the number of objects per page

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json;version=2018-01-01
{
  • "totalSize": 650,
  • "pageSize": 250,
  • "totalPages": 3,
  • "currentPage": 2,
  • "version": {
    },
  • "messages": [
    ],
  • "_embedded": [
    ]
}

Add an benefit in kind type for an employer

path Parameters
employerId
required
string <uuid>

The unique identifier of the employer

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Request Body schema: application/json;version=2018-01-01
required

Add an benefit in kind type

description
string [ 1 .. 50 ] characters ^[\s\S]*\S[\s\S]*$

The description of the benifit in kind type

Responses

Request samples

Content type
application/json;version=2018-01-01
{
  • "description": "Laptop"
}

Response samples

Content type
application/json;version=2018-01-01
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": {
    }
}

Details of an benefit in kind type

Activity name : GetBenefitInKindTypeByBenefitInKindTypeId

Get the details of an benefit in kind type

path Parameters
benefitInKindTypeId
required
string <uuid>

The unique identifier of the record

query Parameters
filter
string
Example: filter=cancellationPeriodTimeUnit.key eq 4

Filter the collection

orderBy
string^-?\w+(,-?\w+)*$
Example: orderBy=-companyName,address.houseNumber

Order the collection on one or more fields

pageNumber
integer <int32>
Default: 1
Example: pageNumber=2

Specifies which page should be returned

pageSize
integer <int32>
Default: 250
Example: pageSize=20

Specifies the number of objects per page

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json;version=2018-01-01
{
  • "totalSize": 650,
  • "pageSize": 250,
  • "totalPages": 3,
  • "currentPage": 2,
  • "version": {
    },
  • "messages": [
    ],
  • "_embedded": [
    ]
}

Edit an benefit in kind type record

path Parameters
benefitInKindTypeId
required
string <uuid>

The unique identifier of the record

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Request Body schema: application/json;version=2018-01-01
required
description
string [ 1 .. 50 ] characters ^[\s\S]*\S[\s\S]*$

The description of the benifit in kind type

Responses

Request samples

Content type
application/json;version=2018-01-01
{
  • "description": "Laptop"
}

Response samples

Content type
application/json;version=2018-01-01
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": {
    }
}

Delete an benefit in kind type record

Activity name : DeleteBenefitInKindTypeByBenefitInKindTypeId

Delete an existing benefit in kind type record

path Parameters
benefitInKindTypeId
required
string <uuid>

The unique identifier of the record

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": { }
}

Benefits and deductions

NL: Toeslagen. Payroll component data for part of, one or multiple payroll period(s). If the same payrollComponent.Key is also present in the payroll period data for a payroll period then, depending on the configuration in payroll period data the two values will either be 1) added up; or 2) payroll period data will overwrite the BenefitsAndDeduction for the given payroll period. Only certain payroll components are usable as a Benefit and Deduction, the corresponding categories are listed in payrollComponent.category in this resource.

Per payroll component a so called 'broken chain' business logic applies. This means that the records for that payroll component may NOT overlap each other, based on startDate and endDate of each record. Also, if an existing record in the chain is not closed and a subsequent record is created than Loket will automatically set the endDate for the already existing record.

list of benefits and deductions

Activity name : GetBenefitsAndDeductionsByEmploymentId

Get a list of benefits and deductions for the employment

path Parameters
employmentId
required
string <uuid>

The unique identifier of the employment

query Parameters
filter
string
Example: filter=cancellationPeriodTimeUnit.key eq 4

Filter the collection

orderBy
string^-?\w+(,-?\w+)*$
Example: orderBy=-companyName,address.houseNumber

Order the collection on one or more fields

pageNumber
integer <int32>
Default: 1
Example: pageNumber=2

Specifies which page should be returned

pageSize
integer <int32>
Default: 250
Example: pageSize=20

Specifies the number of objects per page

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json;version=2018-01-01
{
  • "totalSize": 650,
  • "pageSize": 250,
  • "totalPages": 3,
  • "currentPage": 2,
  • "version": {
    },
  • "messages": [
    ],
  • "_embedded": [
    ]
}

Add a benefit or deduction record for the employment

Activity name : PostBenefitsAndDeductionsByEmploymentId

Add a benefit or deduction for the employment

Metadata : Possible options for fields of the type 'metadata' can be acquired (GET) by adding /metadata to the POST URL.

Defaults : Default values for a new object can be acquired by adding /defaults to the POST URL.

path Parameters
employmentId
required
string <uuid>

The unique identifier of the employment

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Request Body schema: application/json;version=2018-01-01
required

benefits and deductions record add to the employment.

startDate
string <date>

The start date for the information in the record.

A (linked chain)[./#section/Data/Date-chains] per payroll component is maintained with this resource.

endDate
string or null <date>

The end date for the information in the record.

object <metadata>

A payroll component is the link to the salary calculation. By setting the value of a component the salary calculation will take this value into account when calculating the wage of the employment.

payrollComponent is a metadata field within the payroll administration context. Possible values can be managed by the user.

value
number [ 0.01 .. 99999.99 ]

The value for the selected payroll component.

Responses

Request samples

Content type
application/json;version=2018-01-01
{
  • "startDate": "1995-05-21",
  • "endDate": "2019-08-24",
  • "payrollComponent": {
    },
  • "value": 50.87
}

Response samples

Content type
application/json;version=2018-01-01
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": {
    }
}

Detail of a benefit or deduction record

Activity name : GetBenefitsAndDeductionsBybenefitsAndDeductionsId

Get a benefit or deduction for the employment

path Parameters
benefitsanddeductionsId
required
string <uuid>

The unique identifier of the benefits and deductions data

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json;version=2018-01-01
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": {
    }
}

Edit the details of a benefit or deduction record

Activity name : PutBenefitsAndDeductionsByBenefitsAndDeductionsId

Update a benefit or deduction for the employment Metadata : Possible options for fields of the type 'metadata' can be acquired (GET) by adding /metadata to the POST URL.

path Parameters
benefitsanddeductionsId
required
string <uuid>

The unique identifier of the benefits and deductions data

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Request Body schema: application/json;version=2018-01-01
required

data to edit.

startDate
string <date>

The start date for the information in the record.

A (linked chain)[./#section/Data/Date-chains] per payroll component is maintained within this resource.

endDate
string or null <date>

The end date for the information in the record.

value
number [ 0.01 .. 99999.99 ]

The value for the selected payroll component.

Responses

Request samples

Content type
application/json;version=2018-01-01
{
  • "startDate": "1995-05-21",
  • "endDate": "2019-08-24",
  • "value": 50.87
}

Response samples

Content type
application/json;version=2018-01-01
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": {
    }
}

Delete a specific benefit or deduction record

Activity name : DeleteBenefitsAndDeductionsByBenefitsAndDeductionsId

Delete a benefit or deduction for the employment

path Parameters
benefitsanddeductionsId
required
string <uuid>

The unique identifier of the benefits and deductions data

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": { }
}

Benefits and deductions import

NL: Toeslagen. Het exporteren -en importeren van toeslagen.

Get data to create an importfile

Activity name : GetBenefitsAndDeductionsImportDataByPayrollAdministrationId

Returns, for the given payrolladministration, a set of data that can be used as a base for importing benefits and deductions through a csv file.

Note that on importing, the columnnames must be in Dutch. (Clientnr, PersnrVerl, Persnr, Naam, Ingangsdatum, Component, Omschrijving, Toeslag )

path Parameters
payrollAdministrationId
required
string <uuid>

The unique identifier of an administration

query Parameters
filter
string
Example: filter=cancellationPeriodTimeUnit.key eq 4

Filter the collection

orderBy
string^-?\w+(,-?\w+)*$
Example: orderBy=-companyName,address.houseNumber

Order the collection on one or more fields

pageNumber
integer <int32>
Default: 1
Example: pageNumber=2

Specifies which page should be returned

pageSize
integer <int32>
Default: 250
Example: pageSize=20

Specifies the number of objects per page

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json;version=2018-01-01
{
  • "version": {
    },
  • "messages": [
    ],
  • "_embedded": [
    ]
}

Import benefits and deductions via a csv file

Activity name : PostBenefitsAndDeductionsImportDataByPayrollAdministrationId

Imports a csv file containing benefits and deduction records.

path Parameters
payrollAdministrationId
required
string <uuid>

The unique identifier of an administration

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Request Body schema: application/json;version=2018-01-01
required

csv file to be uploaded.

mimeType
string
Value: "text/csv"

The type of file to import. Currently only csv is supported

data
string

base64 encoded file.

Responses

Request samples

Content type
application/json;version=2018-01-01
{
  • "mimeType": "text/csv",
  • "data": "YQ=="
}

Response samples

Content type
application/json;version=2018-01-01
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": {
    }
}

Social security benefits

NL: Sociale uitkering. The configuration of these social security benefits determines how these are handled in the payroll calculation processes for this employment. This is a deviation from what is configured at payroll administration level.

List of social security benefits records for an employment

Activity name: GetSocialSecurityBenefitsByEmploymentId


Get the list of social security benefits records for an employment

path Parameters
employmentId
required
string <uuid>

The unique identifier of the employment

query Parameters
filter
string
Example: filter=cancellationPeriodTimeUnit.key eq 4

Filter the collection

orderBy
string^-?\w+(,-?\w+)*$
Example: orderBy=-companyName,address.houseNumber

Order the collection on one or more fields

pageNumber
integer <int32>
Default: 1
Example: pageNumber=2

Specifies which page should be returned

pageSize
integer <int32>
Default: 250
Example: pageSize=20

Specifies the number of objects per page

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json;version=2018-01-01
{
  • "totalSize": 650,
  • "pageSize": 250,
  • "totalPages": 3,
  • "currentPage": 2,
  • "version": {
    },
  • "messages": [
    ],
  • "_embedded": [
    ]
}

Create a social security benefits record for an employment

Activity name: PostSocialSecurityBenefitByEmploymentId


Create a social security benefits record for an employment
Metadata : Possible options for fields of the type 'metadata' can be acquired (GET) by adding /metadata to the POST URL.

Defaults : Default values for a new object can be acquired by adding `/defaults' to the POST URL.

path Parameters
employmentId
required
string <uuid>

The unique identifier of the employment

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Request Body schema: application/json;version=2018-01-01
required

Social security record to add to the employment.

startDate
string <date>

The start date of the entity. Valide values are either the startDate of the employment or the firstday of a payrolling year.

A (broken chain)[./#section/Data/Date-chains] is maintained within this resource.

endDate
string or null <date>

The end date of the entity. The date is up to and including.

object
object (benefitPostGet)

Responses

Request samples

Content type
application/json;version=2018-01-01
{
  • "startDate": "2018-01-01",
  • "endDate": "2018-10-23",
  • "supplementation": {
    },
  • "benefit": {
    }
}

Response samples

Content type
application/json;version=2018-01-01
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": {
    }
}

Details of a social security benefits record

Activity name: GetSocialSecurityBenefitBySocialSecurityBenefitId

Get the details of a social security benefits record

path Parameters
socialSecurityBenefitId
required
string <uuid>

The unique identifier of the social security record

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json;version=2018-01-01
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": {
    }
}

Edit the details of a social security benefits record

Activity name: PutSocialSecurityBenefitBySocialSecurityBenefitId Metadata : Possible options for fields of the type 'metadata' can be acquired (GET) by adding /metadata to the PUT URL.

Edit the details for a social security record

path Parameters
socialSecurityBenefitId
required
string <uuid>

The unique identifier of the social security record

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Request Body schema: application/json;version=2018-01-01
required

Social security record to edit.

startDate
string <date>

The start date of the entity. Valide values are either the startDate of the employment or the firstday of a payrolling year.

A (broken chain)[./#section/Data/Date-chains] is maintained within this resource.

endDate
string or null <date>

The end date of the entity. The date is up to and including.

object
object (benefitPut)

Responses

Request samples

Content type
application/json;version=2018-01-01
{
  • "startDate": "2018-01-01",
  • "endDate": "2018-10-23",
  • "supplementation": {
    },
  • "benefit": {
    }
}

Response samples

Content type
application/json;version=2018-01-01
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": {
    }
}

Delete a specific social security benefits record

Activity name: DeleteSocialSecurityBenefitBySocialSecurityBenefitId

Delete a social security record for the employment

path Parameters
socialSecurityBenefitId
required
string <uuid>

The unique identifier of the social security record

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": { }
}

Pension benefit

NL: Pensioen uitkering. Pension benefit

List pension benefit

Activity name : GetPensionBenefitsByEmploymentId

Get a list of the pension benefits of the employment.

Note: Loket.nl has different ways to register pension benefit.

path Parameters
employmentId
required
string <uuid>

The unique identifier of the employment

query Parameters
filter
string
Example: filter=cancellationPeriodTimeUnit.key eq 4

Filter the collection

orderBy
string^-?\w+(,-?\w+)*$
Example: orderBy=-companyName,address.houseNumber

Order the collection on one or more fields

pageNumber
integer <int32>
Default: 1
Example: pageNumber=2

Specifies which page should be returned

pageSize
integer <int32>
Default: 250
Example: pageSize=20

Specifies the number of objects per page

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json;version=2018-01-01
{
  • "totalSize": 650,
  • "pageSize": 250,
  • "totalPages": 3,
  • "currentPage": 2,
  • "version": {
    },
  • "messages": [
    ],
  • "_embedded": [
    ]
}

Add a pension benefit for an employment

Activity name : PostPensionBenefitByEmploymentId

Metadata : No metadata

Defaults : No default values

path Parameters
employmentId
required
string <uuid>

The unique identifier of the employment

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Request Body schema: application/json;version=2018-01-01
required

Add a pension benefit

startDate
string <date>

The date on which this pension benefit starts

A (broken chain)[./#section/Data/Date-chains] is maintained within this resource.

payout
number <double> [ 0 .. 100000 ] ^(\d{1,8})(\.\d{1,2})?$

The ammount of (gross) pension received

Responses

Request samples

Content type
application/json;version=2018-01-01
{
  • "startDate": "2018-01-01",
  • "payout": 2569
}

Response samples

Content type
application/json;version=2018-01-01
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": {
    }
}

Details of an pension benefit

Activity name : GetPensionBenefitByPensionBenefitId

Get the details of a pension benefit

path Parameters
pensionBenefitId
required
string <uuid>

The unique identifier of the record

query Parameters
filter
string
Example: filter=cancellationPeriodTimeUnit.key eq 4

Filter the collection

orderBy
string^-?\w+(,-?\w+)*$
Example: orderBy=-companyName,address.houseNumber

Order the collection on one or more fields

pageNumber
integer <int32>
Default: 1
Example: pageNumber=2

Specifies which page should be returned

pageSize
integer <int32>
Default: 250
Example: pageSize=20

Specifies the number of objects per page

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json;version=2018-01-01
{
  • "totalSize": 650,
  • "pageSize": 250,
  • "totalPages": 3,
  • "currentPage": 2,
  • "version": {
    },
  • "messages": [
    ],
  • "_embedded": [
    ]
}

Edit a pension benefit record

Activity name : PutPensionBenefitByPensionBenefitId

Metadata : No metadata

path Parameters
pensionBenefitId
required
string <uuid>

The unique identifier of the record

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Request Body schema: application/json;version=2018-01-01
required
startDate
string <date>

The date on which this pension benefit starts

A (broken chain)[./#section/Data/Date-chains] is maintained within this resource.

payout
number <double> [ 0 .. 100000 ] ^(\d{1,8})(\.\d{1,2})?$

The ammount of (gross) pension received

Responses

Request samples

Content type
application/json;version=2018-01-01
{
  • "startDate": "2018-01-01",
  • "payout": 2569
}

Response samples

Content type
application/json;version=2018-01-01
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": {
    }
}

Delete a pension benefit record

Activity name : DeletePensionBenefitByPensionBenefitId

Delete an existing pension benefit record

path Parameters
pensionBenefitId
required
string <uuid>

The unique identifier of the record

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": { }
}

Benefit in kind

NL: Verstrekking. Benefit in kind

List Benefits in kind

Activity name: GetBenefitsInKindByEmploymentId Get a list of the Benefits in kind of the employment.

path Parameters
employmentId
required
string <uuid>

The unique identifier of the employment

query Parameters
filter
string
Example: filter=cancellationPeriodTimeUnit.key eq 4

Filter the collection

orderBy
string^-?\w+(,-?\w+)*$
Example: orderBy=-companyName,address.houseNumber

Order the collection on one or more fields

pageNumber
integer <int32>
Default: 1
Example: pageNumber=2

Specifies which page should be returned

pageSize
integer <int32>
Default: 250
Example: pageSize=20

Specifies the number of objects per page

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json;version=2018-01-01
{
  • "totalSize": 650,
  • "pageSize": 250,
  • "totalPages": 3,
  • "currentPage": 2,
  • "version": {
    },
  • "messages": [
    ],
  • "_embedded": [
    ]
}

Add a Benefit in kind for an employment

Activity name : PostBenefitInKindByEmploymentId

Metadata: Possible options for fields of the type 'metadata' can be acquired(GET)by adding /metadata to the POST URL.

Defaults: Default values for a new object can be acquired by adding `/defaults' to the POST URL.

path Parameters
employmentId
required
string <uuid>

The unique identifier of the employment

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Request Body schema: application/json;version=2018-01-01
required

Add a benefit in kind

startDate
string <date>

The date on which this BenefitInKind starts.

So multiple Benefits in kind can be active at the same time but one specific BenefitsInKind can never be active multiple times at the same time.

endDate
string or null <date>

The end date of the entity. The date is up to and including.

object <metadata>

The benefit in kind of the employment. benefitinkind is a metadata field within the employer context. Possible values can be managed by the user.

brand
string or null <= 30 characters

The brand of the benefit in kind.

type
string or null <= 30 characters

The type of the benefit in kind.

value
number >= 0 ^(\d{1,5})(\.\d{1,2})?$

The value for the selected benefit of kind.

supplier
string or null <= 30 characters

The supplier of the benefit in kind.

particularities
string or null <= 4000 characters

Extra information about the benefit in kind

Responses

Request samples

Content type
application/json;version=2018-01-01
{
  • "startDate": "2018-01-01",
  • "endDate": "2018-10-23",
  • "benefitInKindType": {
    },
  • "brand": "Apple",
  • "type": "Iphone 11",
  • "value": 1100,
  • "supplier": "Mediamarkt",
  • "particularities": "geen bijzonderheden"
}

Response samples

Content type
application/json;version=2018-01-01
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": {
    }
}

Details of an benefit in kind

Activity name : GetBenefitInKindByBenefitInKindId

Get the details of a benefit in kind

path Parameters
benefitInKindId
required
string <uuid>

The unique identifier of the record

query Parameters
filter
string
Example: filter=cancellationPeriodTimeUnit.key eq 4

Filter the collection

orderBy
string^-?\w+(,-?\w+)*$
Example: orderBy=-companyName,address.houseNumber

Order the collection on one or more fields

pageNumber
integer <int32>
Default: 1
Example: pageNumber=2

Specifies which page should be returned

pageSize
integer <int32>
Default: 250
Example: pageSize=20

Specifies the number of objects per page

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json;version=2018-01-01
{
  • "totalSize": 650,
  • "pageSize": 250,
  • "totalPages": 3,
  • "currentPage": 2,
  • "version": {
    },
  • "messages": [
    ],
  • "_embedded": [
    ]
}

Edit a benefit in kind record

Activity name : PutBenefitInKindByBenefitInKindId

Metadata : Possible options for fields of the type 'metadata' can be acquired (GET) by adding / metadata to the PUT URL.

path Parameters
benefitInKindId
required
string <uuid>

The unique identifier of the record

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Request Body schema: application/json;version=2018-01-01
required
startDate
string <date>

The date on which this BenefitInKind starts.

So multiple Benefits in kind can be active at the same time but one specific BenefitsInKind can never be active multiple times at the same time.

endDate
string or null <date>

The end date of the entity. The date is up to and including.

object <metadata>

The benefit in kind of the employment. benefitinkind is a metadata field within the employer context. Possible values can be managed by the user.

brand
string or null <= 30 characters

The brand of the benefit in kind.

type
string or null <= 30 characters

The type of the benefit in kind.

value
number >= 0 ^(\d{1,5})(\.\d{1,2})?$

The value for the selected benefit of kind.

supplier
string or null <= 30 characters

The supplier of the benefit in kind.

particularities
string or null <= 4000 characters

Extra information about the benefit in kind

Responses

Request samples

Content type
application/json;version=2018-01-01
{
  • "startDate": "2018-01-01",
  • "endDate": "2018-10-23",
  • "benefitInKindType": {
    },
  • "brand": "Apple",
  • "type": "Iphone 11",
  • "value": 1100,
  • "supplier": "Mediamarkt",
  • "particularities": "geen bijzonderheden"
}

Response samples

Content type
application/json;version=2018-01-01
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": {
    }
}

Delete a benefit in kind record

Activity name : DeleteBenefitInKindByBenefitInKindId

Delete an existing benefit in kind record

path Parameters
benefitInKindId
required
string <uuid>

The unique identifier of the record

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": { }
}

Collective benefits and deductions

Create benefits and deductions for multiple employments

Activity name : PostCollectiveBenefitsAndDeductionsByEmployerId

Create new benefits and deduction records for multiple employments of an employer

path Parameters
employerId
required
string <uuid>

The unique identifier of the employer

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Request Body schema: application/json;version=2018-01-01
required

BenefitsAndDeductions to add.

Array
employmentId
string <uuid> ^[{(]?[0-9a-fA-F]{8}[-]?([0-9a-fA-F]{4}[-]?){...

The unique identifier of an object (GUID/UUID)

startDate
string <date>

The start date for the information in the record.

A (linked chain)[./#section/Data/Date-chains] is maintained within this resource.

value
number or null <double> [ 0.01 .. 99999.99 ]

The value for the component

object <metadata>

A payroll component is the link to the salary calculation. By setting the value of a component the salary calculation will take this value into account when calculating the wage of the employment.

payrollComponent is a metadata field within the payroll administration context. Possible values can be managed by the user.

Responses

Request samples

Content type
application/json;version=2018-01-01
[
  • {
    }
]

Response samples

Content type
application/json;version=2018-01-01
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": {
    }
}

Close benefits and deductions for multiple employments

Activity name : PutCollectiveBenefitsAndDeductionsByEmployerId

Set the endDate for benefits and deduction records for multiple employments of an employer

path Parameters
employerId
required
string <uuid>

The unique identifier of the employer

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Request Body schema: application/json;version=2018-01-01
required

BenefitsAndDeductions to put.

Array
employmentId
string <uuid> ^[{(]?[0-9a-fA-F]{8}[-]?([0-9a-fA-F]{4}[-]?){...

The unique identifier of an object (GUID/UUID)

benefitAndDeductionId
string <uuid> ^[{(]?[0-9a-fA-F]{8}[-]?([0-9a-fA-F]{4}[-]?){...

The unique identifier of an object (GUID/UUID)

endDate
string <date>

The end date for the information in the record.

Responses

Request samples

Content type
application/json;version=2018-01-01
[
  • {
    }
]

Response samples

Content type
application/json;version=2018-01-01
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": {
    }
}

Billable items

Overview of number of billable items per employer

Activity name : GetBillableItemsByProviderId

Get a list of all billable items for the provider.

path Parameters
providerId
required
string <uuid>

The unique identifier of a provider

query Parameters
startDate
required
stringdate
Example: startDate=2020-08-01

The start date

endDate
required
stringdate
Example: endDate=2020-08-31

The end date

filter
string
Example: filter=cancellationPeriodTimeUnit.key eq 4

Filter the collection

orderBy
string^-?\w+(,-?\w+)*$
Example: orderBy=-companyName,address.houseNumber

Order the collection on one or more fields

pageNumber
integer <int32>
Default: 1
Example: pageNumber=2

Specifies which page should be returned

pageSize
integer <int32>
Default: 250
Example: pageSize=20

Specifies the number of objects per page

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json;version=2018-01-01
{
  • "totalSize": 650,
  • "pageSize": 250,
  • "totalPages": 3,
  • "currentPage": 2,
  • "version": {
    },
  • "messages": [
    ],
  • "_embedded": [
    ]
}

Billable item

NL: Factureerbare items. Manage billable items for the employer

List of billable items for an employer

Activity name : GetBillableItemsByEmployerId

Get a list of all billable items for the employer.

path Parameters
employerId
required
string <uuid>

The unique identifier of the employer

query Parameters
filter
string
Example: filter=cancellationPeriodTimeUnit.key eq 4

Filter the collection

orderBy
string^-?\w+(,-?\w+)*$
Example: orderBy=-companyName,address.houseNumber

Order the collection on one or more fields

pageNumber
integer <int32>
Default: 1
Example: pageNumber=2

Specifies which page should be returned

pageSize
integer <int32>
Default: 250
Example: pageSize=20

Specifies the number of objects per page

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json;version=2018-01-01
{
  • "totalSize": 650,
  • "pageSize": 250,
  • "totalPages": 3,
  • "currentPage": 2,
  • "version": {
    },
  • "messages": [
    ],
  • "_embedded": [
    ]
}

Collective action

NL: Endpoints waarmee inzicht in de status van collective acties kan worden verkregen.

List of collective actions for a user

Activity name : GetCollectiveActionsByBearerToken

A list of collective actions for a user

query Parameters
filter
string
Example: filter=cancellationPeriodTimeUnit.key eq 4

Filter the collection

orderBy
string^-?\w+(,-?\w+)*$
Example: orderBy=-companyName,address.houseNumber

Order the collection on one or more fields

pageNumber
integer <int32>
Default: 1
Example: pageNumber=2

Specifies which page should be returned

pageSize
integer <int32>
Default: 250
Example: pageSize=20

Specifies the number of objects per page

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json;version=2018-01-01
{
  • "totalSize": 650,
  • "pageSize": 250,
  • "totalPages": 3,
  • "currentPage": 2,
  • "version": {
    },
  • "messages": [
    ],
  • "_embedded": [
    ]
}

List of messages of a collective action

Activity name : GetCollectiveActionMessagesByCollectiveActionId

Get the messages of all collectiveActionItems of a single collective action

path Parameters
collectiveActionId
required
string <uuid>
Example: b14acd0d-75d7-4fc8-8b22-4a3924585cab

The unique identifier of the collective action

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json;version=2018-01-01
{
  • "totalSize": 650,
  • "pageSize": 250,
  • "totalPages": 3,
  • "currentPage": 2,
  • "version": {
    },
  • "messages": [
    ],
  • "_embedded": [
    ]
}

Fiscal company car

NL: Werknemer auto fiscaal. Registration of company car for fiscal (tax-related) purposes

List of fiscal company cars for an employment

Activity name: GetFiscalCompanyCarsByEmploymentId


Get the list of fiscal company cars for an employment.

Please note this resource is related for the registration of the company car for tax purposes. This is NOT directly related to the registration of the company car(s) related to the HRM-module 'Verstrekking'

path Parameters
employmentId
required
string <uuid>

The unique identifier of the employment

query Parameters
filter
string
Example: filter=cancellationPeriodTimeUnit.key eq 4

Filter the collection

orderBy
string^-?\w+(,-?\w+)*$
Example: orderBy=-companyName,address.houseNumber

Order the collection on one or more fields

pageNumber
integer <int32>
Default: 1
Example: pageNumber=2

Specifies which page should be returned

pageSize
integer <int32>
Default: 250
Example: pageSize=20

Specifies the number of objects per page

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json;version=2018-01-01
{
  • "totalSize": 650,
  • "pageSize": 250,
  • "totalPages": 3,
  • "currentPage": 2,
  • "version": {
    },
  • "messages": [
    ],
  • "_embedded": [
    ]
}

Create a fiscal company car record for an employment

Activity name: PostFiscalCompanyCarByEmploymentId


Create a fiscal company cars record for an employment.

Please note this resource is related for the registration of the company car for tax purposes and will be included in the salary calculations. This is NOT directly related to the registration of the company car(s) related to the HRM-module Verstrekking

Metadata : Possible options for fields of the type 'metadata' can be acquired (GET) by adding /metadata to the POST URL.

Defaults : Default values for a new object can be acquired by adding `/defaults' to the POST URL.

path Parameters
employmentId
required
string <uuid>

The unique identifier of the employment

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Request Body schema: application/json;version=2018-01-01
required

Fiscal Company Car record to add to the employment.

startDate
string <date>

The start date of the entity.

A (broken chain)[./#section/Data/Date-chains] is maintained within this resource.

endDate
string or null <date>

The end date of the entity. The date is up to and including.

licensePlateNumber
string or null [ 0 .. 15 ] characters

Vehicle registration number (license plate) of the fiscal company car. The number should be provided with or without any hyphens (-).

dateOfFirstAdmission
string or null <date>

First day of admission for the vehicle (datum eerste toelating). It is possible to acquire a value for this field based on the RDW-registration by calling that supplementary endpoint.

valueForTaxPurposes
number or null <double> [ 0.01 .. 999999.99 ] ^(\d{1,6})(.\d{1,2})?$

The value of the car for tax purposes. This field may only be NULL if a reason for no additional tax liability (reden voor geen bijtelling) is provided. It is possible to acquire a value for this field based on the RDW-registration by calling that supplementary endpoint.

object <metaData>

Indication for what additional tax liability percentage (bijtelling) should be used for calculating the tax liabiltiy in the payroll process.

It is possible to acquire a value for this field based on the RDW-registration of the vehicle registration number (license plate) by calling that supplementary endpoint.

object or null <metaData>

In case the employment does have a fiscal company car but no additional tax liability should be applied, then the reason should be provided for the payroll tax return.

deviatingAdditionalTaxLiability
number or null <double> [ 0.01 .. 999999.99 ] ^(\d{1,6})(.\d{1,2})?$

Normally Loket will calculate the applicable tax liability based on the value and tax liability group of the car. However this field may OVERRIDE any other values, and in that case this amount will be applied as the applicable tax liability amount.

taxableBenefitForPrivateUse
number or null <double> [ 0.01 .. 999999.99 ] ^(\d{1,6})(.\d{1,2})?$

Taxable benefit for private use (eigen bijdrage van de werknemer) may be entered here, this will lower the tax liability to be paid in the payrolling process.

Responses

Request samples

Content type
application/json;version=2018-01-01
{
  • "startDate": "2021-01-01",
  • "endDate": "2023-10-23",
  • "licensePlateNumber": "GP586D",
  • "dateOfFirstAdmission": "2018-01-01",
  • "valueForTaxPurposes": 20000,
  • "additionalTaxLiabilityGroup": {
    },
  • "reasonForNoAdditionalTaxLiability": {
    },
  • "deviatingAdditionalTaxLiability": 20000,
  • "taxableBenefitForPrivateUse": 2000
}

Response samples

Content type
application/json;version=2018-01-01
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": {
    }
}

Details of a fiscal company car record

Activity name: GetFiscalCompanyCarByFiscalCompanyCarId

Get the details of fiscal company car

Please note this resource is related for the registration of the company car for tax purposes. This is NOT directly related to the registration of the company car(s) related to the HRM-module Verstrekking

path Parameters
fiscalCompanyCarId
required
string <uuid>

The unique identifier of the fiscal company car

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json;version=2018-01-01
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": {
    }
}

Edit the details of a fiscal company car record

Activity name: PutFiscalCompanyCarByFiscalCompanyCarId

Edit the details for a fiscal company car record.

Please note this resource is related for the registration of the company car for tax purposes. This is NOT directly related to the registration of the company car(s) related to the HRM-module Verstrekking

Metadata : Possible options for fields of the type 'metadata' can be acquired (GET) by adding /metadata to the PUT URL.

path Parameters
fiscalCompanyCarId
required
string <uuid>

The unique identifier of the fiscal company car

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Request Body schema: application/json;version=2018-01-01
required

Company Car to edit.

startDate
string <date>

The start date of the entity.

A (broken chain)[./#section/Data/Date-chains] is maintained within this resource.

endDate
string or null <date>

The end date of the entity. The date is up to and including.

licensePlateNumber
string or null [ 0 .. 15 ] characters

Vehicle registration number (license plate) of the fiscal company car. The number should be provided with or without any hyphens (-).

dateOfFirstAdmission
string or null <date>

First day of admission for the vehicle (datum eerste toelating). It is possible to acquire a value for this field based on the RDW-registration by calling that supplementary endpoint.

valueForTaxPurposes
number or null <double> [ 0.01 .. 999999.99 ] ^(\d{1,6})(.\d{1,2})?$

The value of the car for tax purposes. This field may only be NULL if a reason for no additional tax liability (reden voor geen bijtelling) is provided. It is possible to acquire a value for this field based on the RDW-registration by calling that supplementary endpoint.

object <metaData>

Indication for what additional tax liability percentage (bijtelling) should be used for calculating the tax liabiltiy in the payroll process.

It is possible to acquire a value for this field based on the RDW-registration of the vehicle registration number (license plate) by calling that supplementary endpoint.

object or null <metaData>

In case the employment does have a fiscal company car but no additional tax liability should be applied, then the reason should be provided for the payroll tax return.

deviatingAdditionalTaxLiability
number or null <double> [ 0.01 .. 999999.99 ] ^(\d{1,6})(.\d{1,2})?$

Normally Loket will calculate the applicable tax liability based on the value and tax liability group of the car. However this field may OVERRIDE any other values, and in that case this amount will be applied as the applicable tax liability amount.

taxableBenefitForPrivateUse
number or null <double> [ 0.01 .. 999999.99 ] ^(\d{1,6})(.\d{1,2})?$

Taxable benefit for private use (eigen bijdrage van de werknemer) may be entered here, this will lower the tax liability to be paid in the payrolling process.

Responses

Request samples

Content type
application/json;version=2018-01-01
{
  • "startDate": "2021-01-01",
  • "endDate": "2023-10-23",
  • "licensePlateNumber": "GP586D",
  • "dateOfFirstAdmission": "2018-01-01",
  • "valueForTaxPurposes": 20000,
  • "additionalTaxLiabilityGroup": {
    },
  • "reasonForNoAdditionalTaxLiability": {
    },
  • "deviatingAdditionalTaxLiability": 20000,
  • "taxableBenefitForPrivateUse": 2000
}

Response samples

Content type
application/json;version=2018-01-01
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": {
    }
}

Delete a specific fiscal company car record

Activity name: DeleteFiscalCompanyCarByFiscalCompanyCarId

Delete a fiscal company car record for the employment

Please note this resource is related for the registration of the company car for tax purposes. This is NOT directly related to the registration of the company car(s) related to the HRM-module Verstrekking

path Parameters
fiscalCompanyCarId
required
string <uuid>

The unique identifier of the fiscal company car

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": { }
}

Acquire the additional tax liability by the license plate number (company car)

Activity name: GetAdditionalTaxliabilityByLicensePlateNumber

This endpoint allows the user to acquire values for specific properties in the company car resource. This endpoint will require a license plate number (vehicle registration number), and will return aggregated data based on its RDW-registration.

query Parameters
licensePlateNumber
required
string
Example: licensePlateNumber=52LRX4

A valid vehicle registration (license plate) number.

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json;version=2018-01-01
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": {
    }
}

Fiscal company car import

Import fiscal company cars via a csv file

Activity name : PostFiscalCompanyCarImportDataByPayrollAdministrationId

Imports a csv file containing fiscal company car records.

path Parameters
payrollAdministrationId
required
string <uuid>

The unique identifier of an administration

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Request Body schema: application/json;version=2018-01-01
required

csv file to be uploaded.

mimeType
string
Value: "text/csv"

The type of file to import. Currently only csv is supported

data
string

base64 encoded file.

Responses

Request samples

Content type
application/json;version=2018-01-01
{
  • "mimeType": "text/csv",
  • "data": "YQ=="
}

Response samples

Content type
application/json;version=2018-01-01
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": {
    }
}

Company car

NL: Werknemer auto. Registration of company car for HRM purposes

List of company cars for an employment

Activity name: GetCompanyCarsByEmploymentId


Get the list of company cars for an employment.

Please note this resource is related for the registration of the company car for HRM purposes. This resource is NOT related to the registration of the fiscal company car(s) which is used in salary calculations.

path Parameters
employmentId
required
string <uuid>

The unique identifier of the employment

query Parameters
filter
string
Example: filter=cancellationPeriodTimeUnit.key eq 4

Filter the collection

orderBy
string^-?\w+(,-?\w+)*$
Example: orderBy=-companyName,address.houseNumber

Order the collection on one or more fields

pageNumber
integer <int32>
Default: 1
Example: pageNumber=2

Specifies which page should be returned

pageSize
integer <int32>
Default: 250
Example: pageSize=20

Specifies the number of objects per page

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json;version=2018-01-01
{
  • "totalSize": 650,
  • "pageSize": 250,
  • "totalPages": 3,
  • "currentPage": 2,
  • "version": {
    },
  • "messages": [
    ],
  • "_embedded": [
    ]
}

Create a company car record for an employment

Activity name: PostCompanyCarByEmploymentId


Create a company car record for an employment.

Please note this resource is related for the registration of the company car for HRM purposes. This resource is NOT related to the registration of the fiscal company car(s) which is used in salary calculations.

Metadata : Possible options for fields of the type 'metadata' can be acquired (GET) by adding /metadata to the POST URL.

Defaults : There are no defaults available.

path Parameters
employmentId
required
string <uuid>

The unique identifier of the employment

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Request Body schema: application/json;version=2018-01-01
required

Company Car record to add to the employment.

startDate
string <date>

The start date of the entity.

endDate
string or null <date>

The end date of the entity. The date is up to and including.

brand
string or null <= 25

Brand of the vehicle.

model
string or null <= 25

Model of the vehicle.

licensePlateNumber
string [ 1 .. 8 ] characters

Vehicle registration number (license plate) of the company car. The number should be provided with or without any hyphens (-).

fuelCardNumber
string or null <= 20

Registration number of the fuel card.

object <metaData>

Indication of the ownership of the company car.

supplier
string or null <= 30

Name of the company the delivered the company car.

object or null

Details of the leasecontract

catalogValue
number or null <double> <= 999999.99 ^(\d{1,6})(.\d{1,2})?$

The catalog value of the car.

kilometersPrivateUse
integer or null <int32>

The number kilometers per year the employee can use the car for private purposes.

comments
string or null <= 4000

Any comments on the car or the contract.

Responses

Request samples

Content type
application/json;version=2018-01-01
{
  • "startDate": "2021-01-01",
  • "endDate": "2023-10-23",
  • "brand": "Volvo",
  • "model": "V60",
  • "licensePlateNumber": "GP586D",
  • "fuelCardNumber": "B100.323.903",
  • "leaseOrBuy": {
    },
  • "supplier": "Leasemaatschappij Tilburg",
  • "lease": {
    },
  • "catalogValue": 20000,
  • "kilometersPrivateUse": 10000,
  • "comments": "This car is very nice"
}

Response samples

Content type
application/json;version=2018-01-01
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": {
    }
}

Details of a company car record

Activity name: GetCompanyCarByCompanyCarId

Get the details of a company car

Please note this resource is related for the registration of the company car for HRM purposes. This resource is NOT related to the registration of the fiscal company car(s) which is used in salary calculations.

path Parameters
companyCarId
required
string <uuid>

The unique identifier of the company car

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json;version=2018-01-01
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": {
    }
}

Edit the details of a company car record

Activity name: PutCompanyCarByCompanyCarId

Edit the details for a company car record.

Please note this resource is related for the registration of the company car for HRM purposes. This resource is NOT related to the registration of the fiscal company car(s) which is used in salary calculations.

Metadata : Possible options for fields of the type 'metadata' can be acquired (GET) by adding /metadata to the PUT URL.

path Parameters
companyCarId
required
string <uuid>

The unique identifier of the company car

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Request Body schema: application/json;version=2018-01-01
required

Company Car to edit.

startDate
string <date>

The start date of the entity.

endDate
string or null <date>

The end date of the entity. The date is up to and including.

brand
string or null <= 25

Brand of the vehicle.

model
string or null <= 25

Model of the vehicle.

licensePlateNumber
string [ 1 .. 8 ] characters

Vehicle registration number (license plate) of the company car. The number should be provided with or without any hyphens (-).

fuelCardNumber
string or null <= 20

Registration number of the fuel card.

object <metaData>

Indication of the ownership of the company car.

supplier
string or null <= 30

Name of the company the delivered the company car.

object or null

Details of the leasecontract

catalogValue
number or null <double> <= 999999.99 ^(\d{1,6})(.\d{1,2})?$

The catalog value of the car.

kilometersPrivateUse
integer or null <int32>

The number kilometers per year the employee can use the car for private purposes.

comments
string or null <= 4000

Any comments on the car or the contract.

Responses

Request samples

Content type
application/json;version=2018-01-01
{
  • "startDate": "2021-01-01",
  • "endDate": "2023-10-23",
  • "brand": "Volvo",
  • "model": "V60",
  • "licensePlateNumber": "GP586D",
  • "fuelCardNumber": "B100.323.903",
  • "leaseOrBuy": {
    },
  • "supplier": "Leasemaatschappij Tilburg",
  • "lease": {
    },
  • "catalogValue": 20000,
  • "kilometersPrivateUse": 10000,
  • "comments": "This car is very nice"
}

Response samples

Content type
application/json;version=2018-01-01
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": {
    }
}

Delete a specific company car record

Activity name: DeleteCompanyCarByCompanyCarId

Delete a company car record for the employment

Please note this resource is related for the registration of the company car for HRM purposes. This resource is NOT related to the registration of the fiscal company car(s) which is used in salary calculations.

path Parameters
companyCarId
required
string <uuid>

The unique identifier of the company car

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": { }
}

Custom field

NL: Eigen veld. Custom field

List custom fields for an employer

Activity name : GetCustomFieldsByEmployerId

Get a list of the custom fields for an employer.

Note: The custom fields defined at the employer level can be used at the employee and employment level.

path Parameters
employerId
required
string <uuid>

The unique identifier of the employer

query Parameters
filter
string
Example: filter=cancellationPeriodTimeUnit.key eq 4

Filter the collection

orderBy
string^-?\w+(,-?\w+)*$
Example: orderBy=-companyName,address.houseNumber

Order the collection on one or more fields

pageNumber
integer <int32>
Default: 1
Example: pageNumber=2

Specifies which page should be returned

pageSize
integer <int32>
Default: 250
Example: pageSize=20

Specifies the number of objects per page

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json;version=2018-01-01
{
  • "totalSize": 650,
  • "pageSize": 250,
  • "totalPages": 3,
  • "currentPage": 2,
  • "version": {
    },
  • "messages": [
    ],
  • "_embedded": [
    ]
}

Add a custom field for an employer

path Parameters
employerId
required
string <uuid>

The unique identifier of the employer

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Request Body schema: application/json;version=2018-01-01
required

Add a custom field

description
string <= 50 characters

The description for the custom field which can be used at the employee and employment level

Responses

Request samples

Content type
application/json;version=2018-01-01
{
  • "description": "Shoe size"
}

Response samples

Content type
application/json;version=2018-01-01
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": {
    }
}

Details of a custom field

Activity name : GetCustomFieldByCustomFieldId

Get the details of a custom field

path Parameters
customFieldId
required
string <uuid>

The unique identifier of the record

query Parameters
filter
string
Example: filter=cancellationPeriodTimeUnit.key eq 4

Filter the collection

orderBy
string^-?\w+(,-?\w+)*$
Example: orderBy=-companyName,address.houseNumber

Order the collection on one or more fields

pageNumber
integer <int32>
Default: 1
Example: pageNumber=2

Specifies which page should be returned

pageSize
integer <int32>
Default: 250
Example: pageSize=20

Specifies the number of objects per page

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json;version=2018-01-01
{
  • "totalSize": 650,
  • "pageSize": 250,
  • "totalPages": 3,
  • "currentPage": 2,
  • "version": {
    },
  • "messages": [
    ],
  • "_embedded": [
    ]
}

Edit a custom field record

path Parameters
customFieldId
required
string <uuid>

The unique identifier of the record

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Request Body schema: application/json;version=2018-01-01
required
description
string <= 50 characters

The description for the custom field which can be used at the employee and employment level

Responses

Request samples

Content type
application/json;version=2018-01-01
{
  • "description": "Shoe size"
}

Response samples

Content type
application/json;version=2018-01-01
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": {
    }
}

Delete a custom field record

Activity name : DeleteCustomFieldByCustomFieldId

Delete an existing custom field record

path Parameters
customFieldId
required
string <uuid>

The unique identifier of the record

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": { }
}

Employment custom field

NL: Dienstverband eigen veld. Employment custom field

List employment custom fields for an employment

Activity name : GetEmploymentCustomFieldsByEmploymentId

Get a list of the custom fields for an employment.

Note: custom fields are user defined at the employer level.

path Parameters
employmentId
required
string <uuid>

The unique identifier of the employment

query Parameters
filter
string
Example: filter=cancellationPeriodTimeUnit.key eq 4

Filter the collection

orderBy
string^-?\w+(,-?\w+)*$
Example: orderBy=-companyName,address.houseNumber

Order the collection on one or more fields

pageNumber
integer <int32>
Default: 1
Example: pageNumber=2

Specifies which page should be returned

pageSize
integer <int32>
Default: 250
Example: pageSize=20

Specifies the number of objects per page

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json;version=2018-01-01
{
  • "totalSize": 650,
  • "pageSize": 250,
  • "totalPages": 3,
  • "currentPage": 2,
  • "version": {
    },
  • "messages": [
    ],
  • "_embedded": [
    ]
}

Add an employment custom field for an employment

Activity name : PostEmploymentCustomFieldByEmploymentId

Metadata: Possible options for fields of the type 'metadata' can be acquired (GET) by adding /metadata to the POST URL.

path Parameters
employmentId
required
string <uuid>

The unique identifier of the employment

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Request Body schema: application/json;version=2018-01-01
required

Add a custom field

object <metadata>

The custom field as defined at the employer-level. The value can only be set in the POST (it cannot be changed with a PUT).

value
string <= 255 characters

The value for the custom field for the employment

Responses

Request samples

Content type
application/json;version=2018-01-01
{
  • "customField": {
    },
  • "value": "41"
}

Response samples

Content type
application/json;version=2018-01-01
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": {
    }
}

Details of an employment custom field

Activity name : GetEmploymentCustomFieldByEmploymentCustomFieldId

Get the details of a custom field

path Parameters
employmentCustomFieldId
required
string <uuid>

The unique identifier of the record

query Parameters
filter
string
Example: filter=cancellationPeriodTimeUnit.key eq 4

Filter the collection

orderBy
string^-?\w+(,-?\w+)*$
Example: orderBy=-companyName,address.houseNumber

Order the collection on one or more fields

pageNumber
integer <int32>
Default: 1
Example: pageNumber=2

Specifies which page should be returned

pageSize
integer <int32>
Default: 250
Example: pageSize=20

Specifies the number of objects per page

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json;version=2018-01-01
{
  • "totalSize": 650,
  • "pageSize": 250,
  • "totalPages": 3,
  • "currentPage": 2,
  • "version": {
    },
  • "messages": [
    ],
  • "_embedded": [
    ]
}

Edit an employment custom field record

Activity name : PutEmploymentCustomFieldByEmploymentCustomFieldId

Metadata : Possible options for fields of the type 'metadata' can be acquired (GET) by adding / metadata to the PUT URL.

path Parameters
employmentCustomFieldId
required
string <uuid>

The unique identifier of the record

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Request Body schema: application/json;version=2018-01-01
required
value
string <= 255 characters

The value for the custom field for the employment

Responses

Request samples

Content type
application/json;version=2018-01-01
{
  • "value": "41"
}

Response samples

Content type
application/json;version=2018-01-01
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": {
    }
}

Delete an employment custom field record

Activity name : DeleteEmploymentCustomFieldByEmploymentCustomFieldId

Delete an existing custom field record

path Parameters
employmentCustomFieldId
required
string <uuid>

The unique identifier of the record

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": { }
}

Employee custom field

NL: Persoon eigen veld. Employee custom field

List employee custom fields for an employee

Activity name : GetEmployeeCustomFieldsByEmployeeId

Get a list of the custom fields for an employee.

Note: custom fields are user defined at the employer level.

path Parameters
employeeId
required
string <uuid>

The unique identifier of the employee

query Parameters
filter
string
Example: filter=cancellationPeriodTimeUnit.key eq 4

Filter the collection

orderBy
string^-?\w+(,-?\w+)*$
Example: orderBy=-companyName,address.houseNumber

Order the collection on one or more fields

pageNumber
integer <int32>
Default: 1
Example: pageNumber=2

Specifies which page should be returned

pageSize
integer <int32>
Default: 250
Example: pageSize=20

Specifies the number of objects per page

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json;version=2018-01-01
{
  • "totalSize": 650,
  • "pageSize": 250,
  • "totalPages": 3,
  • "currentPage": 2,
  • "version": {
    },
  • "messages": [
    ],
  • "_embedded": [
    ]
}

Add an employee custom field for an employee

Activity name : PostEmployeeCustomFieldByEmployeeId

Metadata: Possible options for fields of the type 'metadata' can be acquired (GET) by adding /metadata to the POST URL.

path Parameters
employeeId
required
string <uuid>

The unique identifier of the employee

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Request Body schema: application/json;version=2018-01-01
required

Add a custom field

object <metadata>

The custom field as defined at the employer-level. The value can only be set in the POST (it cannot be changed with a PUT).

value
string <= 255 characters

The value for the custom field for the employee

Responses

Request samples

Content type
application/json;version=2018-01-01
{
  • "customField": {
    },
  • "value": "41"
}

Response samples

Content type
application/json;version=2018-01-01
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": {
    }
}

Details of an employee custom field

Activity name : GetEmployeeCustomFieldByEmployeeCustomFieldId

Get the details of a custom field

path Parameters
employeeCustomFieldId
required
string <uuid>

The unique identifier of the record

query Parameters
filter
string
Example: filter=cancellationPeriodTimeUnit.key eq 4

Filter the collection

orderBy
string^-?\w+(,-?\w+)*$
Example: orderBy=-companyName,address.houseNumber

Order the collection on one or more fields

pageNumber
integer <int32>
Default: 1
Example: pageNumber=2

Specifies which page should be returned

pageSize
integer <int32>
Default: 250
Example: pageSize=20

Specifies the number of objects per page

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json;version=2018-01-01
{
  • "totalSize": 650,
  • "pageSize": 250,
  • "totalPages": 3,
  • "currentPage": 2,
  • "version": {
    },
  • "messages": [
    ],
  • "_embedded": [
    ]
}

Edit an employee custom field record

Activity name : PutEmployeeCustomFieldByEmployeeCustomFieldId

Metadata : No metadata available for this endpoint

path Parameters
employeeCustomFieldId
required
string <uuid>

The unique identifier of the record

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Request Body schema: application/json;version=2018-01-01
required
value
string <= 255 characters

The value for the custom field for the employee

Responses

Request samples

Content type
application/json;version=2018-01-01
{
  • "value": "41"
}

Response samples

Content type
application/json;version=2018-01-01
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": {
    }
}

Delete an employee custom field record

Activity name : DeleteEmployeeCustomFieldByEmployeeCustomFieldId

Delete an existing custom field record

path Parameters
employeeCustomFieldId
required
string <uuid>

The unique identifier of the record

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": { }
}

Provider dashboard

NL: Go to the provider dashboard

Dashboard for a provider

Activity name : GetProviderDashboardByProviderId

Get the url for the PowerBI dashboard for this provider. Please note: the PowerBI dashboard is only accessible for users with an assigned dashboard license.

path Parameters
providerId
required
string <uuid>

The unique identifier of a provider

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json;version=2018-01-01
{}

Employer dashboard

NL: Werkgever HR dashboard. Go to the Qlik employer dashboard

Dashboard of an employer

Activity name : GetEmployerDashboardByEmployerId

Get the url for the Qlik dashboard for this employer. Please note: the Qlik dashboard is only accessible for users with an assigned Qlik dashboard licenses.

path Parameters
employerId
required
string <uuid>

The unique identifier of the employer

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json;version=2018-01-01
{}

Dashboard licenses

Get the list dashboard licenses

Activity name : GetDashboardLicensesByEmployerId

Get the list dashboard licenses

path Parameters
employerId
required
string <uuid>

The unique identifier of the employer

query Parameters
filter
string
Example: filter=cancellationPeriodTimeUnit.key eq 4

Filter the collection

orderBy
string^-?\w+(,-?\w+)*$
Example: orderBy=-companyName,address.houseNumber

Order the collection on one or more fields

pageNumber
integer <int32>
Default: 1
Example: pageNumber=2

Specifies which page should be returned

pageSize
integer <int32>
Default: 250
Example: pageSize=20

Specifies the number of objects per page

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json;version=2018-01-01
{
  • "totalSize": 650,
  • "pageSize": 250,
  • "totalPages": 3,
  • "currentPage": 2,
  • "version": {
    },
  • "messages": [
    ],
  • "_embedded": [
    ]
}

Edit the dashboard license

Activity name: PutDashboardLicensesByEmployerId

Edit the dashboard licenses

Metadata : There is no metadata endpoint for this resource.

path Parameters
employerId
required
string <uuid>

The unique identifier of the employer

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Request Body schema: application/json;version=2018-01-01
required

Edit dashboard users

Array
object or null

Responses

Request samples

Content type
application/json;version=2018-01-01
[
  • {
    }
]

Response samples

Content type
application/json;version=2018-01-01
{
  • "totalSize": 650,
  • "pageSize": 250,
  • "totalPages": 3,
  • "currentPage": 2,
  • "version": {
    },
  • "messages": [
    ],
  • "_embedded": [
    ]
}

Declarations

NL: Declaraties/werknemermutaties. Declarations can be created by the employee in Werknemerloket. After that the declarations will be subsequently reviewed and processed in the payrolling process. Please note that this ONLY includes the declarations via Werknemerloket, in general mutations are registered via payrollPeriodData

List of declarations for an employment

Activity name : GetDeclarationsByEmploymentId

Returns a list of declarations for the employments of the employer

path Parameters
employmentId
required
string <uuid>

The unique identifier of the employment

query Parameters
filter
string
Example: filter=cancellationPeriodTimeUnit.key eq 4

Filter the collection

orderBy
string^-?\w+(,-?\w+)*$
Example: orderBy=-companyName,address.houseNumber

Order the collection on one or more fields

pageNumber
integer <int32>
Default: 1
Example: pageNumber=2

Specifies which page should be returned

pageSize
integer <int32>
Default: 250
Example: pageSize=20

Specifies the number of objects per page

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json;version=2018-01-01
{
  • "totalSize": 650,
  • "pageSize": 250,
  • "totalPages": 3,
  • "currentPage": 2,
  • "version": {
    },
  • "messages": [
    ],
  • "_embedded": [
    ]
}

Create a declaration for an employment

Activity name : PostDeclarationByEmploymentId

Add a declaration for an employment. This can be only be done by the employee.

path Parameters
employmentId
required
string <uuid>

The unique identifier of the employment

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Request Body schema: application/json;version=2018-01-01
required
object <metadata>

A payroll component is the link to the salary calculation. By setting the value of a component the salary calculation will take this value into account when calculating the wage of the employment for the given payroll period.

calculatedDistanceByRoutingService
number or null <double> [ 0.01 .. 99999999.99 ] ^(\d{1,8})(\.\d{1,2})?$

The value calulated by the routing service

numberOfUnits
number <double> [ 0.01 .. 99999999.99 ] ^(\d{1,8})(\.\d{1,2})?$

The number of units requested

declarationDate
string <date>

The date to which the declaration is applicable. As requested by the employee.

declarationComment
string or null <= 1000 characters

The comment left by the employee

reasonForDeviatingFromCalculatedDistance
string or null <= 1000 characters

The reason why the employee deviated form the calculated distance.

Array of objects or null

If applicable contains the addresses of stops used to calculate the route. The order of the items in the array is equal to the order of the route taken.

Responses

Request samples

Content type
application/json;version=2018-01-01
{
  • "payrollComponent": {
    },
  • "calculatedDistanceByRoutingService": 8,
  • "numberOfUnits": 8,
  • "declarationDate": "2017-11-01",
  • "declarationComment": "Overwerk project X",
  • "reasonForDeviatingFromCalculatedDistance": "There were some ongoing road works i had to get around",
  • "route": [
    ]
}

Response samples

Content type
application/json;version=2018-01-01
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": {
    }
}

Details of a declaration

Activity name : GetDeclarationByDeclarationId

Get the details of a declaration

path Parameters
declarationId
required
string <uuid>

The unique identifier of the declaration

query Parameters
filter
string
Example: filter=cancellationPeriodTimeUnit.key eq 4

Filter the collection

orderBy
string^-?\w+(,-?\w+)*$
Example: orderBy=-companyName,address.houseNumber

Order the collection on one or more fields

pageNumber
integer <int32>
Default: 1
Example: pageNumber=2

Specifies which page should be returned

pageSize
integer <int32>
Default: 250
Example: pageSize=20

Specifies the number of objects per page

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json;version=2018-01-01
{
  • "totalSize": 650,
  • "pageSize": 250,
  • "totalPages": 3,
  • "currentPage": 2,
  • "messages": [
    ],
  • "content": {
    }
}

Edit a declaration for an employment

Activity name : PutDeclarationByDeclarationId

Edit a declaration for an employment. This is usually done by the employee.

path Parameters
declarationId
required
string <uuid>

The unique identifier of the declaration

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Request Body schema: application/json;version=2018-01-01
required
object <metadata>

A payroll component is the link to the salary calculation. By setting the value of a component the salary calculation will take this value into account when calculating the wage of the employment for the given payroll period.

calculatedDistanceByRoutingService
number or null <double> [ 0.01 .. 99999999.99 ] ^(\d{1,8})(\.\d{1,2})?$

The value calulated by the routing service

numberOfUnits
number <double> [ 0.01 .. 99999999.99 ] ^(\d{1,8})(\.\d{1,2})?$

The number of units requested

declarationDate
string <date>

The date to which the declaration is applicable. As requested by the employee.

declarationComment
string or null <= 1000 characters

The comment left by the employee

reasonForDeviatingFromCalculatedDistance
string or null <= 1000 characters

The reason why the employee deviated form the calculated distance.

Array of objects or null

If applicable contains the addresses of stops used to calculate the route. The order of the items in the array is equal to the order of the route taken.

Responses

Request samples

Content type
application/json;version=2018-01-01
{
  • "payrollComponent": {
    },
  • "calculatedDistanceByRoutingService": 8,
  • "numberOfUnits": 8,
  • "declarationDate": "2017-11-01",
  • "declarationComment": "Overwerk project X",
  • "reasonForDeviatingFromCalculatedDistance": "There were some ongoing road works i had to get around",
  • "route": [
    ]
}

Response samples

Content type
application/json;version=2018-01-01
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": {
    }
}

Delete a declaration

Activity name : DeleteDeclarationByDeclarationId

Delete a declaration including attachment if applicable.

path Parameters
declarationId
required
string <uuid>

The unique identifier of the declaration

header Parameters
Authorization
required
string^Bearer\s[\w-]+$
Example: Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Accept
required
string
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

Responses

Response samples

Content type
application/json
{
  • "version": {
    },
  • "messages": [
    ],
  • "content": { }
}

Audit trail of a declaration

Activity name : GetDeclarationAuditTrailByDeclarationId

Get the audit trail of a declaration

path Parameters
declarationId
required
string <uuid>

The unique identifier of the declaration

query Parameters