adsum API, leave package (1.0.0)

Download OpenAPI specification:

License: GPL-2.0-or-later

The operations of the leave package, merged into the published contract when the package is installed (see WebVision\Adsum\Core\Shared\Api\Contract\OpenApiDocument). Linted on its own.

Leave

Leave types, policies, balances, ledger, requests, sickness, allocations, absence calendar.

List leave types of the company

Sort allow-list: name, category.

Authorizations:
bearerAuthsessionCookie
query Parameters
page
integer >= 1
Default: 1
perPage
integer [ 1 .. 200 ]
Default: 50
sort
string
Examples: sort=-startDate,employee

Comma-separated property names; a leading "-" sorts descending.

category
string (AbsenceCategory)
Enum: "vacation" "specialLeave" "unpaid" "timeOffInLieu" "sickness" "childSickness" "parental" "education" "compensatoryLeave"

Category of an absence, shared by leave, calendar, time tracking and reporting.

active
boolean
eligibleForMe
boolean

Only active types whose eligibility conditions hold for the caller today.

header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ],
  • "meta": {
    }
}

Create a leave type

Authorizations:
bearerAuthsessionCookie
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Idempotency-Key
string <uuid>

Client-generated key (UUID) making a POST safe to retry. A repeated key with an identical body returns the original response; with a different body it yields 422. While the first request with the key still runs, a repetition yields 409 (idempotency-request-in-progress) and does nothing; after a server error the key is free again.

Request Body schema: application/json
required
required
object (LocalisedText) non-empty

Names per language; unique per company and language, case-insensitive. Responses also carry the resolved name.

colour
required
string^#[0-9a-fA-F]{6}$
icon
required
string <= 50 characters
category
required
string (AbsenceCategory)
Enum: "vacation" "specialLeave" "unpaid" "timeOffInLieu" "sickness" "childSickness" "parental" "education" "compensatoryLeave"

Category of an absence, shared by leave, calendar, time tracking and reporting.

creditsWorkingTime
boolean

Whether absences of this type are credited as working time when the company uses the absence accounting timeCredit. Defaults by category; always false for timeOffInLieu.

consumes
required
string (LeaveConsumption)
Enum: "leaveLedger" "workingTimeAccount" "nothing"

What taking this leave consumes. Only vacation consumes the leave ledger, only timeOffInLieu the working-time account.

halfDaysAllowed
required
boolean
carriesStatutoryMinimum
boolean

Marks the vacation type that carries the statutory minimum. At most one per company.

Days (number) or null
maxNegativeBalanceDays
number multiple of 0.5 >= 0
Default: 0

A quantity of leave days in half-day steps.

required
object (AttachmentRequirement)
certificateRequiredFromDay
integer or null >= 1

Sickness types only: overrides the company default.

required
Array of objects (EligibilityCondition)
active
required
boolean
payrollClass
required
string
Enum: "paid" "unpaid" "partial"

Payroll classification, owned by the leave type; reporting only maps leave types to wage-type codes. No effect on balances.

payrollPercentage
integer or null [ 1 .. 99 ]

Required for partial, forbidden otherwise.

countingBasis
string
Default: "workingDays"
Enum: "workingDays" "workingDaysIncludingHolidays" "calendarDays"

Which dates a request of the type counts. workingDays counts scheduled working days only; workingDaysIncludingHolidays also public holidays on a scheduled working day; calendarDays every date, without half days and never with a policy in hours. The attendance target of a counted holiday or day off stays 0.

encashmentRule
string
Default: "never"
Enum: "never" "onExitOnly" "aboveStatutoryMinimum" "any"

When the balance may be paid out; only for types that consume the leave ledger, and never any for vacation, whose statutory minimum is paid out only when the employment ends.

hourlyRequestsAllowed
boolean
Default: false

Whether employees request the type by the hour. Only with countingBasis workingDays, and for a type consuming the leave ledger only while all its policies use unit hours.

workingAbsence
boolean
Default: false

Whether the employee works on an absence of this type, such as a code sprint, a business trip or a training. Only for a type that credits working time. On such a day the planned time counts for the part of the day the absence covers, and the time tracked on the day replaces it as far as it goes beyond the rest of the day, independent of the company's absence accounting; the credit never comes on top of the tracked time.

contingentAmount
number or null > 0

What a person takes of this type per leave year without approval, in the contingentUnit (at most 366 days or 8784 hours). Only for a working absence; set together with contingentUnit, or both empty for a type without a contingent, whose requests follow the approval rules. HR may set another amount for one employee.

contingentUnit
string or null
Enum: "days" "hours" null

The unit of contingentAmount. Days count the share of the day each requested part covers, hours the scheduled working time of the requested parts.

Responses

Request samples

Content type
application/json
{
  • "names": {
    },
  • "colour": "string",
  • "icon": "string",
  • "category": "vacation",
  • "creditsWorkingTime": true,
  • "consumes": "leaveLedger",
  • "halfDaysAllowed": true,
  • "carriesStatutoryMinimum": true,
  • "quotaPerOccasionDays": 1.5,
  • "maxNegativeBalanceDays": 0,
  • "attachmentRequirement": {
    },
  • "certificateRequiredFromDay": 1,
  • "eligibilityConditions": [
    ],
  • "active": true,
  • "payrollClass": "paid",
  • "payrollPercentage": 1,
  • "countingBasis": "workingDays",
  • "encashmentRule": "never",
  • "hourlyRequestsAllowed": false,
  • "workingAbsence": false,
  • "contingentAmount": 1,
  • "contingentUnit": "days"
}

Response samples

Content type
application/json
{
  • "names": {
    },
  • "colour": "string",
  • "icon": "string",
  • "category": "vacation",
  • "creditsWorkingTime": true,
  • "consumes": "leaveLedger",
  • "halfDaysAllowed": true,
  • "carriesStatutoryMinimum": true,
  • "quotaPerOccasionDays": 1.5,
  • "maxNegativeBalanceDays": 0,
  • "attachmentRequirement": {
    },
  • "certificateRequiredFromDay": 1,
  • "eligibilityConditions": [
    ],
  • "active": true,
  • "payrollClass": "paid",
  • "payrollPercentage": 1,
  • "countingBasis": "workingDays",
  • "encashmentRule": "never",
  • "hourlyRequestsAllowed": false,
  • "workingAbsence": false,
  • "contingentAmount": 1,
  • "contingentUnit": "days",
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "name": "string",
  • "approvalRequired": true
}

Get a leave type

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/json
{
  • "names": {
    },
  • "colour": "string",
  • "icon": "string",
  • "category": "vacation",
  • "creditsWorkingTime": true,
  • "consumes": "leaveLedger",
  • "halfDaysAllowed": true,
  • "carriesStatutoryMinimum": true,
  • "quotaPerOccasionDays": 1.5,
  • "maxNegativeBalanceDays": 0,
  • "attachmentRequirement": {
    },
  • "certificateRequiredFromDay": 1,
  • "eligibilityConditions": [
    ],
  • "active": true,
  • "payrollClass": "paid",
  • "payrollPercentage": 1,
  • "countingBasis": "workingDays",
  • "encashmentRule": "never",
  • "hourlyRequestsAllowed": false,
  • "workingAbsence": false,
  • "contingentAmount": 1,
  • "contingentUnit": "days",
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "name": "string",
  • "approvalRequired": true
}

Replace a leave type

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

If-Match
required
string

ETag of the representation being modified (optimistic locking). A stale value yields 412.

Request Body schema: application/json
required
required
object (LocalisedText) non-empty

Names per language; unique per company and language, case-insensitive. Responses also carry the resolved name.

colour
required
string^#[0-9a-fA-F]{6}$
icon
required
string <= 50 characters
category
required
string (AbsenceCategory)
Enum: "vacation" "specialLeave" "unpaid" "timeOffInLieu" "sickness" "childSickness" "parental" "education" "compensatoryLeave"

Category of an absence, shared by leave, calendar, time tracking and reporting.

creditsWorkingTime
boolean

Whether absences of this type are credited as working time when the company uses the absence accounting timeCredit. Defaults by category; always false for timeOffInLieu.

consumes
required
string (LeaveConsumption)
Enum: "leaveLedger" "workingTimeAccount" "nothing"

What taking this leave consumes. Only vacation consumes the leave ledger, only timeOffInLieu the working-time account.

halfDaysAllowed
required
boolean
carriesStatutoryMinimum
boolean

Marks the vacation type that carries the statutory minimum. At most one per company.

Days (number) or null
maxNegativeBalanceDays
number multiple of 0.5 >= 0
Default: 0

A quantity of leave days in half-day steps.

required
object (AttachmentRequirement)
certificateRequiredFromDay
integer or null >= 1

Sickness types only: overrides the company default.

required
Array of objects (EligibilityCondition)
active
required
boolean
payrollClass
required
string
Enum: "paid" "unpaid" "partial"

Payroll classification, owned by the leave type; reporting only maps leave types to wage-type codes. No effect on balances.

payrollPercentage
integer or null [ 1 .. 99 ]

Required for partial, forbidden otherwise.

countingBasis
string
Default: "workingDays"
Enum: "workingDays" "workingDaysIncludingHolidays" "calendarDays"

Which dates a request of the type counts. workingDays counts scheduled working days only; workingDaysIncludingHolidays also public holidays on a scheduled working day; calendarDays every date, without half days and never with a policy in hours. The attendance target of a counted holiday or day off stays 0.

encashmentRule
string
Default: "never"
Enum: "never" "onExitOnly" "aboveStatutoryMinimum" "any"

When the balance may be paid out; only for types that consume the leave ledger, and never any for vacation, whose statutory minimum is paid out only when the employment ends.

hourlyRequestsAllowed
boolean
Default: false

Whether employees request the type by the hour. Only with countingBasis workingDays, and for a type consuming the leave ledger only while all its policies use unit hours.

workingAbsence
boolean
Default: false

Whether the employee works on an absence of this type, such as a code sprint, a business trip or a training. Only for a type that credits working time. On such a day the planned time counts for the part of the day the absence covers, and the time tracked on the day replaces it as far as it goes beyond the rest of the day, independent of the company's absence accounting; the credit never comes on top of the tracked time.

contingentAmount
number or null > 0

What a person takes of this type per leave year without approval, in the contingentUnit (at most 366 days or 8784 hours). Only for a working absence; set together with contingentUnit, or both empty for a type without a contingent, whose requests follow the approval rules. HR may set another amount for one employee.

contingentUnit
string or null
Enum: "days" "hours" null

The unit of contingentAmount. Days count the share of the day each requested part covers, hours the scheduled working time of the requested parts.

Responses

Request samples

Content type
application/json
{
  • "names": {
    },
  • "colour": "string",
  • "icon": "string",
  • "category": "vacation",
  • "creditsWorkingTime": true,
  • "consumes": "leaveLedger",
  • "halfDaysAllowed": true,
  • "carriesStatutoryMinimum": true,
  • "quotaPerOccasionDays": 1.5,
  • "maxNegativeBalanceDays": 0,
  • "attachmentRequirement": {
    },
  • "certificateRequiredFromDay": 1,
  • "eligibilityConditions": [
    ],
  • "active": true,
  • "payrollClass": "paid",
  • "payrollPercentage": 1,
  • "countingBasis": "workingDays",
  • "encashmentRule": "never",
  • "hourlyRequestsAllowed": false,
  • "workingAbsence": false,
  • "contingentAmount": 1,
  • "contingentUnit": "days"
}

Response samples

Content type
application/json
{
  • "names": {
    },
  • "colour": "string",
  • "icon": "string",
  • "category": "vacation",
  • "creditsWorkingTime": true,
  • "consumes": "leaveLedger",
  • "halfDaysAllowed": true,
  • "carriesStatutoryMinimum": true,
  • "quotaPerOccasionDays": 1.5,
  • "maxNegativeBalanceDays": 0,
  • "attachmentRequirement": {
    },
  • "certificateRequiredFromDay": 1,
  • "eligibilityConditions": [
    ],
  • "active": true,
  • "payrollClass": "paid",
  • "payrollPercentage": 1,
  • "countingBasis": "workingDays",
  • "encashmentRule": "never",
  • "hourlyRequestsAllowed": false,
  • "workingAbsence": false,
  • "contingentAmount": 1,
  • "contingentUnit": "days",
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "name": "string",
  • "approvalRequired": true
}

Delete an unused leave type

A type with policies, ledger entries or requests answers 409; archive it with active false instead.

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/problem+json
{
  • "type": "../dictionary",
  • "title": "string",
  • "status": 0,
  • "detail": "string",
  • "instance": "../dictionary",
  • "code": 0,
  • "correlationId": "string",
  • "violations": [
    ],
  • "dependents": [
    ]
}

List the contingents set for single employees on a leave type

The employees whose contingent of the type differs from the amount of the type, by name and year.

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
query Parameters
page
integer >= 1
Default: 1
perPage
integer [ 1 .. 200 ]
Default: 50
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ],
  • "meta": {
    }
}

Set the contingent of one employee for a leave type

Replaces the amount of the type for the employee in the named leave year, or in every year without one; an amount for a year wins over the one for every year. An amount of 0 takes the contingent from the employee. Only a type with a contingent takes one, otherwise 422.

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
employeeId
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Request Body schema: application/json
required
amount
required
number >= 0

The contingent in the unit of the type; 0 takes it away.

year
integer or null [ 2000 .. 2100 ]

The leave year, named after the calendar year it starts in. Without it, or null, the amount holds in every year.

Responses

Request samples

Content type
application/json
{
  • "amount": 0,
  • "year": 2000
}

Response samples

Content type
application/json
{
  • "employee": {
    },
  • "unit": "days",
  • "amount": 0,
  • "year": 0
}

Remove the contingent set for one employee

The employee has the amount of the type again. Without year the one for every year is removed.

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
employeeId
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
query Parameters
year
integer >= 2000

The leave year of the contingent to remove.

header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/problem+json
{
  • "type": "../dictionary",
  • "title": "string",
  • "status": 0,
  • "detail": "string",
  • "instance": "../dictionary",
  • "code": 0,
  • "correlationId": "string",
  • "violations": [
    ],
  • "dependents": [
    ]
}

List the registered eligibility condition kinds

Authorizations:
bearerAuthsessionCookie
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

Get the leave settings of the company

Authorizations:
bearerAuthsessionCookie
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/json
{
  • "changeReason": {
    },
  • "pastDatesWindowDays": 7,
  • "minimumStaffingPercent": 1,
  • "expiryReminderLeadDays": 60,
  • "compensatoryLeaveTypeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "compensatoryValidityDays": 90,
  • "hourlyRequestStepSeconds": 300
}

Replace the leave settings

Does not contain visibility settings or cancellation approval; those are organisation settings and approval rules.

Authorizations:
bearerAuthsessionCookie
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

If-Match
required
string

ETag of the representation being modified (optimistic locking). A stale value yields 412.

Request Body schema: application/json
required
object (ChangeReasonInput)

Why the change is made, stored with the change set in the same transaction and never changed: shown with every history entry of the change set to exactly the readers of those entries. Not stored when nothing changes.

pastDatesWindowDays
required
integer [ 0 .. 366 ]
Default: 7
minimumStaffingPercent
required
integer or null [ 1 .. 100 ]
expiryReminderLeadDays
required
integer [ 1 .. 366 ]
Default: 60
required
Uuid (string) or null

The type of the company, of category compensatoryLeave, on which compensatory days are booked; null while there is none. Optional in an update, which then keeps it.

compensatoryValidityDays
required
integer [ 1 .. 730 ]
Default: 90

How long compensatory days stay valid. Optional in an update, which then keeps it.

hourlyRequestStepSeconds
required
integer
Default: 900
Enum: 300 900 1800 3600

The step of start and end of hourly requests. Optional in an update, which then keeps it.

Responses

Request samples

Content type
application/json
{
  • "changeReason": {
    },
  • "pastDatesWindowDays": 7,
  • "minimumStaffingPercent": 1,
  • "expiryReminderLeadDays": 60,
  • "compensatoryLeaveTypeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "compensatoryValidityDays": 90,
  • "hourlyRequestStepSeconds": 300
}

Response samples

Content type
application/json
{
  • "changeReason": {
    },
  • "pastDatesWindowDays": 7,
  • "minimumStaffingPercent": 1,
  • "expiryReminderLeadDays": 60,
  • "compensatoryLeaveTypeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "compensatoryValidityDays": 90,
  • "hourlyRequestStepSeconds": 300
}

List the leave settings of every country of the company's offices

Authorizations:
bearerAuthsessionCookie
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

Get the leave settings of one country of the company

Authorizations:
bearerAuthsessionCookie
path Parameters
countryCode
required
string^[A-Z]{2}$

ISO 3166-1 alpha-2 code of a country the company has an office in.

header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/json
{
  • "countryCode": "string",
  • "sicknessCertificateFromDay": 1,
  • "expireOnlyAfterReminder": true,
  • "defaults": {
    },
  • "isDefault": true
}

Replace the leave settings of one country of the company

A value equal to the country package's default follows the package from then on.

Authorizations:
bearerAuthsessionCookie
path Parameters
countryCode
required
string^[A-Z]{2}$

ISO 3166-1 alpha-2 code of a country the company has an office in.

header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

If-Match
required
string

ETag of the representation being modified (optimistic locking). A stale value yields 412.

Request Body schema: application/json
required
sicknessCertificateFromDay
required
integer or null >= 1
expireOnlyAfterReminder
required
boolean

Responses

Request samples

Content type
application/json
{
  • "sicknessCertificateFromDay": 1,
  • "expireOnlyAfterReminder": true
}

Response samples

Content type
application/json
{
  • "countryCode": "string",
  • "sicknessCertificateFromDay": 1,
  • "expireOnlyAfterReminder": true,
  • "defaults": {
    },
  • "isDefault": true
}

List leave policies

Sort allow-list: name, validFrom.

Authorizations:
bearerAuthsessionCookie
query Parameters
page
integer >= 1
Default: 1
perPage
integer [ 1 .. 200 ]
Default: 50
sort
string
Examples: sort=-startDate,employee

Comma-separated property names; a leading "-" sorts descending.

leaveTypeId
string <uuid> (Uuid)
Examples: leaveTypeId=0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ],
  • "meta": {
    }
}

Create a leave policy

Rejected with 422 when the annual days undercut the statutory minimum or an equally specific policy overlaps.

Authorizations:
bearerAuthsessionCookie
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Idempotency-Key
string <uuid>

Client-generated key (UUID) making a POST safe to retry. A repeated key with an identical body returns the original response; with a different body it yields 422. While the first request with the key still runs, a repetition yields 409 (idempotency-request-in-progress) and does nothing; after a server error the key is free again.

Request Body schema: application/json
required
leaveTypeId
required
string <uuid> (Uuid)
name
required
string [ 1 .. 100 ] characters
annualDays
required
number (Days) multiple of 0.5

A quantity of leave days in half-day steps.

referenceDaysPerWeek
required
integer [ 1 .. 7 ]
Default: 5
accrualMode
required
string
Enum: "yearlyUpfront" "monthlyProRata" "periodicQuota"

periodicQuota grants quotaPerPeriod every period, valid for the period; the unused rest is carried into the next period as periodCarryOver allows and expires otherwise.

quotaPeriod
string or null
Enum: "week" "month" "everyNDays" null
quotaPeriodAnchor
string or null

For week the weekday it starts on (1 Monday to 7 Sunday), for month the day (1 to 28, or lastDay for periods ending on the last day of the month), for everyNDays the number of days (2 to 366) counted from the employment start.

quotaPerPeriod
number or null

The quota of each period, in days (a multiple of 0.5), or seconds under hours. For the statutory vacation type the quotas of a year reach at least the statutory minimum.

object
prorateFirstPeriod
boolean
Default: false

Whether a first period begun before the hire grants a share by calendar days instead of the full quota.

penaltyDeductionAllowed
boolean
Default: false

Whether penalties of the core penalty account may deduct leave of this policy; for statutory vacation never below the statutory minimum.

allowUsageBeforeAccrual
boolean
Default: true
rounding
required
string
Default: "nearestHalfDay"
Enum: "nearestHalfDay" "upToHalfDay" "downToHalfDay"
exitYearStatutoryFull
boolean
Default: true
required
object (CarryOverRule)
validFrom
required
string <date> (Date)
Date (string) or null
required
object (PolicyScope)

Empty lists mean no restriction. The policy with the most restricted criteria wins.

unit
string (LeaveUnit)
Enum: "days" "hours"

Ledger unit of this policy; hours makes every day cost its scheduled seconds. Default days.

object (CarryOverExpiry)
leaveYearStart
string^(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$
Default: "01-01"

Month and day (MM-DD) the leave year starts on; grants, pro-rating, carry-over, expiry and the statutory minimum follow it. Not 29 February. All policies of a leave type share it. German law counts the calendar year.

Responses

Request samples

Content type
application/json
{
  • "leaveTypeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "name": "string",
  • "annualDays": 1.5,
  • "referenceDaysPerWeek": 5,
  • "accrualMode": "yearlyUpfront",
  • "quotaPeriod": "week",
  • "quotaPeriodAnchor": "string",
  • "quotaPerPeriod": 0,
  • "periodCarryOver": {
    },
  • "prorateFirstPeriod": false,
  • "penaltyDeductionAllowed": false,
  • "allowUsageBeforeAccrual": true,
  • "rounding": "nearestHalfDay",
  • "exitYearStatutoryFull": true,
  • "carryOver": {
    },
  • "validFrom": "2026-10-01",
  • "validUntil": "2026-10-01",
  • "scope": {
    },
  • "unit": "days",
  • "carryOverExpiry": {
    },
  • "leaveYearStart": "01-01"
}

Response samples

Content type
application/json
{
  • "leaveTypeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "name": "string",
  • "annualDays": 1.5,
  • "referenceDaysPerWeek": 5,
  • "accrualMode": "yearlyUpfront",
  • "quotaPeriod": "week",
  • "quotaPeriodAnchor": "string",
  • "quotaPerPeriod": 0,
  • "periodCarryOver": {
    },
  • "prorateFirstPeriod": false,
  • "penaltyDeductionAllowed": false,
  • "allowUsageBeforeAccrual": true,
  • "rounding": "nearestHalfDay",
  • "exitYearStatutoryFull": true,
  • "carryOver": {
    },
  • "validFrom": "2026-10-01",
  • "validUntil": "2026-10-01",
  • "scope": {
    },
  • "unit": "days",
  • "carryOverExpiry": {
    },
  • "leaveYearStart": "01-01",
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
}

Get a leave policy

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/json
{
  • "leaveTypeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "name": "string",
  • "annualDays": 1.5,
  • "referenceDaysPerWeek": 5,
  • "accrualMode": "yearlyUpfront",
  • "quotaPeriod": "week",
  • "quotaPeriodAnchor": "string",
  • "quotaPerPeriod": 0,
  • "periodCarryOver": {
    },
  • "prorateFirstPeriod": false,
  • "penaltyDeductionAllowed": false,
  • "allowUsageBeforeAccrual": true,
  • "rounding": "nearestHalfDay",
  • "exitYearStatutoryFull": true,
  • "carryOver": {
    },
  • "validFrom": "2026-10-01",
  • "validUntil": "2026-10-01",
  • "scope": {
    },
  • "unit": "days",
  • "carryOverExpiry": {
    },
  • "leaveYearStart": "01-01",
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
}

Replace a leave policy

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

If-Match
required
string

ETag of the representation being modified (optimistic locking). A stale value yields 412.

Request Body schema: application/json
required
leaveTypeId
required
string <uuid> (Uuid)
name
required
string [ 1 .. 100 ] characters
annualDays
required
number (Days) multiple of 0.5

A quantity of leave days in half-day steps.

referenceDaysPerWeek
required
integer [ 1 .. 7 ]
Default: 5
accrualMode
required
string
Enum: "yearlyUpfront" "monthlyProRata" "periodicQuota"

periodicQuota grants quotaPerPeriod every period, valid for the period; the unused rest is carried into the next period as periodCarryOver allows and expires otherwise.

quotaPeriod
string or null
Enum: "week" "month" "everyNDays" null
quotaPeriodAnchor
string or null

For week the weekday it starts on (1 Monday to 7 Sunday), for month the day (1 to 28, or lastDay for periods ending on the last day of the month), for everyNDays the number of days (2 to 366) counted from the employment start.

quotaPerPeriod
number or null

The quota of each period, in days (a multiple of 0.5), or seconds under hours. For the statutory vacation type the quotas of a year reach at least the statutory minimum.

object
prorateFirstPeriod
boolean
Default: false

Whether a first period begun before the hire grants a share by calendar days instead of the full quota.

penaltyDeductionAllowed
boolean
Default: false

Whether penalties of the core penalty account may deduct leave of this policy; for statutory vacation never below the statutory minimum.

allowUsageBeforeAccrual
boolean
Default: true
rounding
required
string
Default: "nearestHalfDay"
Enum: "nearestHalfDay" "upToHalfDay" "downToHalfDay"
exitYearStatutoryFull
boolean
Default: true
required
object (CarryOverRule)
validFrom
required
string <date> (Date)
Date (string) or null
required
object (PolicyScope)

Empty lists mean no restriction. The policy with the most restricted criteria wins.

unit
string (LeaveUnit)
Enum: "days" "hours"

Ledger unit of this policy; hours makes every day cost its scheduled seconds. Default days.

object (CarryOverExpiry)
leaveYearStart
string^(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$
Default: "01-01"

Month and day (MM-DD) the leave year starts on; grants, pro-rating, carry-over, expiry and the statutory minimum follow it. Not 29 February. All policies of a leave type share it. German law counts the calendar year.

Responses

Request samples

Content type
application/json
{
  • "leaveTypeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "name": "string",
  • "annualDays": 1.5,
  • "referenceDaysPerWeek": 5,
  • "accrualMode": "yearlyUpfront",
  • "quotaPeriod": "week",
  • "quotaPeriodAnchor": "string",
  • "quotaPerPeriod": 0,
  • "periodCarryOver": {
    },
  • "prorateFirstPeriod": false,
  • "penaltyDeductionAllowed": false,
  • "allowUsageBeforeAccrual": true,
  • "rounding": "nearestHalfDay",
  • "exitYearStatutoryFull": true,
  • "carryOver": {
    },
  • "validFrom": "2026-10-01",
  • "validUntil": "2026-10-01",
  • "scope": {
    },
  • "unit": "days",
  • "carryOverExpiry": {
    },
  • "leaveYearStart": "01-01"
}

Response samples

Content type
application/json
{
  • "leaveTypeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "name": "string",
  • "annualDays": 1.5,
  • "referenceDaysPerWeek": 5,
  • "accrualMode": "yearlyUpfront",
  • "quotaPeriod": "week",
  • "quotaPeriodAnchor": "string",
  • "quotaPerPeriod": 0,
  • "periodCarryOver": {
    },
  • "prorateFirstPeriod": false,
  • "penaltyDeductionAllowed": false,
  • "allowUsageBeforeAccrual": true,
  • "rounding": "nearestHalfDay",
  • "exitYearStatutoryFull": true,
  • "carryOver": {
    },
  • "validFrom": "2026-10-01",
  • "validUntil": "2026-10-01",
  • "scope": {
    },
  • "unit": "days",
  • "carryOverExpiry": {
    },
  • "leaveYearStart": "01-01",
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
}

Delete an unused leave policy

A policy that produced ledger entries answers 409; end it through validUntil.

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/problem+json
{
  • "type": "../dictionary",
  • "title": "string",
  • "status": 0,
  • "detail": "string",
  • "instance": "../dictionary",
  • "code": 0,
  • "correlationId": "string",
  • "violations": [
    ],
  • "dependents": [
    ]
}

Explain the entitlement of an employee for a year

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
query Parameters
leaveTypeId
required
string <uuid> (Uuid)
Examples: leaveTypeId=0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
year
required
integer >= 2000
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/json
{
  • "unit": "days",
  • "employeeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "leaveTypeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "year": 0,
  • "policyId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "annualDays": 1.5,
  • "annualSeconds": 0,
  • "referenceDaysPerWeek": 0,
  • "months": [
    ],
  • "proRatedDays": 0,
  • "rounding": "string",
  • "roundedDays": 1.5,
  • "roundedSeconds": 0,
  • "statutoryMinimumDays": 1.5,
  • "statutoryMinimumSeconds": 0,
  • "entitlementDays": 1.5,
  • "entitlementSeconds": 0,
  • "carryOverInDays": 1.5,
  • "carryOverInSeconds": 0,
  • "bookedDays": 1.5,
  • "bookedSeconds": 0,
  • "coveredByOpeningEntryId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "statutoryLaw": {},
  • "adjustments": [
    ]
}

List the contingents of an employee for a leave year

One entry for each active leave type that has a contingent for the employee, with what is used and what remains. The employee reads their own, a manager those of their reports, HR all; anybody else receives 404.

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
query Parameters
year
integer >= 2000

The leave year, named after the calendar year it starts in. Default: the current leave year.

header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

List entitlement runs

Sort allow-list: startedAt.

Authorizations:
bearerAuthsessionCookie
query Parameters
page
integer >= 1
Default: 1
perPage
integer [ 1 .. 200 ]
Default: 50
sort
string
Examples: sort=-startDate,employee

Comma-separated property names; a leading "-" sorts descending.

kind
string (LeaveRunKind)
Enum: "yearStart" "monthlyAccrual" "carryOver" "expiry" "reminder"
year
integer
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ],
  • "meta": {
    }
}

Start an entitlement run

Idempotent per employee, type, kind and period; missed periods are booked individually.

Authorizations:
bearerAuthsessionCookie
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Idempotency-Key
string <uuid>

Client-generated key (UUID) making a POST safe to retry. A repeated key with an identical body returns the original response; with a different body it yields 422. While the first request with the key still runs, a repetition yields 409 (idempotency-request-in-progress) and does nothing; after a server error the key is free again.

Request Body schema: application/json
required
kind
required
string (LeaveRunKind)
Enum: "yearStart" "monthlyAccrual" "carryOver" "expiry" "reminder"
year
required
integer >= 2000
month
integer or null [ 1 .. 12 ]
Uuid (string) or null

Responses

Request samples

Content type
application/json
{
  • "kind": "yearStart",
  • "year": 2000,
  • "month": 1,
  • "employeeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
}

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "kind": "yearStart",
  • "year": 0,
  • "month": 0,
  • "employeeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "entriesCreated": 0,
  • "entriesSkipped": 0,
  • "entriesFailed": 0,
  • "failures": [
    ],
  • "findings": [
    ],
  • "startedAt": "2026-10-01T08:15:00+02:00",
  • "finishedAt": "2026-10-01T08:15:00+02:00"
}

Get my leave balances and forecast

Authorizations:
bearerAuthsessionCookie
query Parameters
page
integer >= 1
Default: 1
perPage
integer [ 1 .. 200 ]
Default: 50
date
string <date> (Date)
Examples: date=2026-10-01

Balance and forecast at this date. Default: today.

leaveTypeId
string <uuid> (Uuid)
Examples: leaveTypeId=0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ],
  • "meta": {
    }
}

List leave balances of team or company

Sort allow-list: employee, balanceDays.

Authorizations:
bearerAuthsessionCookie
query Parameters
page
integer >= 1
Default: 1
perPage
integer [ 1 .. 200 ]
Default: 50
sort
string
Examples: sort=-startDate,employee

Comma-separated property names; a leading "-" sorts descending.

scope
string (ListScope)
Default: "self"
Enum: "self" "team" "company"

self: the caller. team: reports in scope of a manager. company: HR sees every employee; others receive only what they may see (their own, plus reports in scope). A wider scope is narrowed, never answered with 403.

date
string <date> (Date)
Examples: date=2026-10-01
employeeId
string <uuid> (Uuid)
Examples: employeeId=0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
leaveTypeId
string <uuid> (Uuid)
Examples: leaveTypeId=0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
departmentId
string <uuid> (Uuid)
Examples: departmentId=0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ],
  • "meta": {
    }
}

List the ledger entries of an employee

Sort allow-list: effectiveDate, createdAt. Visible to the employee, managers in scope and HR.

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
query Parameters
page
integer >= 1
Default: 1
perPage
integer [ 1 .. 200 ]
Default: 50
sort
string
Examples: sort=-startDate,employee

Comma-separated property names; a leading "-" sorts descending.

leaveTypeId
string <uuid> (Uuid)
Examples: leaveTypeId=0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
entryType
string (LedgerEntryType)
Enum: "grant" "accrual" "carryOver" "allocation" "usage" "refund" "expiry" "adjustment" "conversion" "opening" "encashment" "compensatory" "penalty"

opening is booked only by the migration import and has no API; conversion pairs close one unit and open the other; encashment is leave paid out, and a positive encashment gives a reversed one back; penalty is the leave deduction of a core penalty, and a positive penalty gives a withdrawn one back.

from
string <date> (Date)
Examples: from=2026-10-01

Inclusive start date of the period.

to
string <date> (Date)
Examples: to=2026-10-01

Inclusive end date of the period.

header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ],
  • "meta": {
    }
}

Book an HR adjustment

HR only, never for the HR user's own ledger. The balance may become negative.

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Idempotency-Key
string <uuid>

Client-generated key (UUID) making a POST safe to retry. A repeated key with an identical body returns the original response; with a different body it yields 422. While the first request with the key still runs, a repetition yields 409 (idempotency-request-in-progress) and does nothing; after a server error the key is free again.

Request Body schema: application/json
required
leaveTypeId
required
string <uuid> (Uuid)
quantity
required
number or null multiple of 0.5

Signed, not 0.

quantitySeconds
integer or null [ -3600000 .. 3600000 ]

quantity expressed in seconds when the policy unit is hours; null under days.

effectiveDate
required
string <date> (Date)
Date (string) or null
Date (string) or null
reason
required
string [ 1 .. 500 ] characters

Responses

Request samples

Content type
application/json
{
  • "leaveTypeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "quantity": 0,
  • "quantitySeconds": -3600000,
  • "effectiveDate": "2026-10-01",
  • "validFrom": "2026-10-01",
  • "validUntil": "2026-10-01",
  • "reason": "string"
}

Response samples

Content type
application/json
{
  • "unit": "days",
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "employeeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "leaveTypeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "entryType": "grant",
  • "quantity": 0,
  • "quantitySeconds": 0,
  • "effectiveDate": "2026-10-01",
  • "validFrom": "2026-10-01",
  • "validUntil": "2026-10-01",
  • "source": {
    },
  • "reason": "string",
  • "consumptions": [
    ],
  • "createdAt": "2026-10-01T08:15:00+02:00",
  • "createdBy": {
    },
  • "origin": "user",
  • "coversFrom": "2026-10-01",
  • "coversUntil": "2026-10-01"
}

How much leave may be paid out on a date

Under the type's encashmentRule: nothing for never; for onExitOnly the remainder at exit, from a recorded exit date on; for aboveStatutoryMinimum during employment the year's entitlement less the statutory minimum less what penalties and encashments took that year, and the remainder at exit; for any the remaining balance. The employee themself and HR; a manager gets 403, anyone else 404.

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
query Parameters
leaveTypeId
required
string <uuid> (Uuid)
Examples: leaveTypeId=0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
date
required
string <date> (Date)
Examples: date=2026-10-01
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/json
{
  • "employeeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "leaveTypeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "date": "2026-10-01",
  • "rule": "never",
  • "unit": "days",
  • "quantityDays": 0,
  • "quantitySeconds": 0,
  • "limit": "notEncashable"
}

Pay out leave instead of granting time off

HR books an encashment entry within what getLeaveEncashableQuantity allows, consuming entries in the one consumption order, and leave announces LeaveEncashed without any money; payroll values it. HR never encashes their own leave (403). A larger quantity is refused with 422 and the code statutoryMinimum, notExiting, notEncashable or insufficientBalance.

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Request Body schema: application/json
required
leaveTypeId
required
string <uuid> (Uuid)
quantity
number multiple of 0.5 > 0

Days, for a day-based policy.

quantitySeconds
integer [ 1 .. 3600000 ]

Seconds, for an hour-based policy.

effectiveDate
required
string <date> (Date)

Responses

Request samples

Content type
application/json
{
  • "leaveTypeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "quantity": 1,
  • "quantitySeconds": 1,
  • "effectiveDate": "2026-10-01"
}

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "employeeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "leaveTypeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "entryId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "unit": "days",
  • "quantityDays": 0,
  • "quantitySeconds": 0,
  • "effectiveDate": "2026-10-01",
  • "source": "hr",
  • "reference": "string",
  • "status": "booked",
  • "createdAt": "2019-08-24T14:15:22Z"
}

Give the leave of an encashment back

HR. The consumed entries are given back once; a second reversal answers 409.

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "employeeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "leaveTypeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "entryId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "unit": "days",
  • "quantityDays": 0,
  • "quantitySeconds": 0,
  • "effectiveDate": "2026-10-01",
  • "source": "hr",
  • "reference": "string",
  • "status": "booked",
  • "createdAt": "2019-08-24T14:15:22Z"
}

What is left of each leave type at the exit date

Per leave type the employee has entries of, the balance at the recorded exit date, after the exit year was recalculated and approved leave after the exit was given back. A negative remainder means more was taken than earned; it is reported and never booked or claimed back. Without an exit date, exitDate is null and remainders is empty. The employee themself and HR; a manager gets 403, anyone else 404.

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/json
{
  • "employeeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "exitDate": "2026-10-01",
  • "remainders": [
    ]
}

Allocate days to many employees at once

HR allocates days of a type with a balance to up to 500 employees: quantity in days (halves) for policies in days, or quantitySeconds for policies in hours, an optional validUntil (else the end of the year) and a reason. The mode book books an allocation entry per employee at once with the batch as source; request files an allocation request per employee on their behalf, each submitted to the approval engine. Each employee is checked like a single allocation; a failure (ownLedger, eligibility., unitMismatch) is reported per employee and does not stop the others. Accepts an Idempotency-Key; a retry answers the same and books nothing more.

Authorizations:
bearerAuthsessionCookie
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Idempotency-Key
string <uuid>

Client-generated key (UUID) making a POST safe to retry. A repeated key with an identical body returns the original response; with a different body it yields 422. While the first request with the key still runs, a repetition yields 409 (idempotency-request-in-progress) and does nothing; after a server error the key is free again.

Request Body schema: application/json
required
leaveTypeId
required
string <uuid> (Uuid)
employeeIds
required
Array of strings <uuid> (Uuid) [ 1 .. 500 ] items [ items <uuid > ]
quantity
number multiple of 0.5 > 0

Days, for employees whose policy counts days. Give either quantity or quantitySeconds.

quantitySeconds
integer [ 1 .. 3600000 ]

Seconds, for employees whose policy counts hours.

validUntil
string <date> (Date)
reason
required
string [ 1 .. 1000 ] characters
mode
required
string
Enum: "book" "request"

Responses

Request samples

Content type
application/json
{
  • "leaveTypeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "employeeIds": [
    ],
  • "quantity": 1,
  • "quantitySeconds": 1,
  • "validUntil": "2026-10-01",
  • "reason": "string",
  • "mode": "book"
}

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "mode": "book",
  • "items": [
    ]
}

Import leave balances from a file

A CSV or XLSX file of at most 5000 rows with the columns personnelNumber, leaveType (ID or name), mode (delta or target), quantity (days in halves, or hours with two decimals under an hour-based policy), effectiveDate, validUntil (optional) and reason. Every row books an adjustment: the quantity in delta mode, the difference to the balance at the effective date in target mode, nothing for a difference of 0. A dry run, the default, books nothing. All rows or none: any invalid row rejects the file with 422 and violations at rows.., the row numbered as in the file with the header as row 1. Nobody imports their own balance, and opening balances are not imported. Every upload is kept with its outcome.

Authorizations:
bearerAuthsessionCookie
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Request Body schema: multipart/form-data
required
file
required
string <binary>
dryRun
boolean
Default: true

Responses

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "dryRun": true,
  • "rows": [
    ]
}

The template of a balance import

An XLSX file whose first sheet has the column codes as its header and whose second sheet explains the columns in the reader's language and lists the leave types that keep a balance with their ID.

Authorizations:
bearerAuthsessionCookie
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/problem+json
{
  • "type": "../dictionary",
  • "title": "string",
  • "status": 0,
  • "detail": "string",
  • "instance": "../dictionary",
  • "code": 0,
  • "correlationId": "string",
  • "violations": [
    ],
  • "dependents": [
    ]
}

List leave requests

The scope self lists the caller's requests, team those of the reports, company everyone's for HR and otherwise the caller's and the reports'. With team or company and without employeeId or departmentId, an approver also gets the requests whose approval names them on its current step or that they decided, never others. Sort allow-list: startDate, createdAt (default -startDate); any other sort answers 400. Groups (groupBy): status, leaveTypeId (with the name of the leave type).

Authorizations:
bearerAuthsessionCookie
query Parameters
page
integer >= 1
Default: 1
perPage
integer [ 1 .. 200 ]
Default: 50
sort
string
Examples: sort=-startDate,employee

Comma-separated property names; a leading "-" sorts descending.

groupBy
string

A grouping key of the list (see meta.groups); the operation names its keys, any other answers 400.

scope
string (ListScope)
Default: "self"
Enum: "self" "team" "company"

self: the caller. team: reports in scope of a manager (and requests assigned to the caller as approver). company: HR sees every request. A scope wider than the caller rights is narrowed to what they may see; colleagues never see requests.

employeeId
string <uuid> (Uuid)
Examples: employeeId=0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
leaveTypeId
string <uuid> (Uuid)
Examples: leaveTypeId=0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
status
string
Enum: "pending" "approved" "rejected" "withdrawn" "cancelled"
period
string (ListPeriod)
Enum: "thisMonth" "lastMonth" "thisYear" "thisYearOnward" "lastYear" "thisWeek" "lastWeek" "all"

Like Period, but the default is thisYearOnward: a list of leave requests shows the current year and everything later, so an upcoming request is never hidden.

from
string <date> (Date)
Examples: from=2026-10-01

Inclusive start date of the period.

to
string <date> (Date)
Examples: to=2026-10-01

Inclusive end date of the period.

departmentId
string <uuid> (Uuid)
Examples: departmentId=0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ],
  • "meta": {
    }
}

Submit a leave request

Submits subject leaveRequest to the approval engine; auto-approval is applied synchronously, so the 201 response already shows the final state. Approvers decide through approveApproval and rejectApproval. Only HR may name another employee, and only HR records such a request as already decided (recordedAsDecided) when it lies completely in the past.

Authorizations:
bearerAuthsessionCookie
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Idempotency-Key
string <uuid>

Client-generated key (UUID) making a POST safe to retry. A repeated key with an identical body returns the original response; with a different body it yields 422. While the first request with the key still runs, a repetition yields 409 (idempotency-request-in-progress) and does nothing; after a server error the key is free again.

Request Body schema: application/json
required
One of
employeeId
string <uuid> (Uuid)

Defaults to the caller. Only HR may name another employee.

leaveTypeId
required
string <uuid> (Uuid)
startDate
required
string <date> (Date)
startPart
string
Default: "fullDay"
Enum: "fullDay" "firstHalf" "secondHalf"
endDate
required
string <date> (Date)
endPart
string
Default: "fullDay"
Enum: "fullDay" "firstHalf" "secondHalf"
startAt
string (LocalDateTime) ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(:\d{2})?$

A date and time of the company time zone without offset, YYYY-MM-DDTHH:MM (seconds optional).

endAt
string (LocalDateTime) ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(:\d{2})?$

A date and time of the company time zone without offset, YYYY-MM-DDTHH:MM (seconds optional).

reason
string or null <= 1000 characters
attachmentIds
Array of strings <uuid> (Uuid) [ items <uuid > ]
overrideLeaveRules
boolean
Default: false

HR only; skips restricted periods, absence limits and request deadlines, recorded in the request history. Employees sending true get 403.

recordedAsDecided
boolean
Default: false

HR only, for another employee: records an absence that happened already as decided, without an approval. The whole request must lie in the past (its end date before today in the time zone of the company) and the reason is required; otherwise the response is 422 with the violation recordedAsDecided or reason. Anybody else sending true gets 403. The request is approved in the response, its decisionSource is hrRecorded and the history records the reason. A day before the opening balance of the employee is charged against that balance.

Responses

Request samples

Content type
application/json
{
  • "employeeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "leaveTypeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "startDate": "2026-10-01",
  • "startPart": "fullDay",
  • "endDate": "2026-10-01",
  • "endPart": "fullDay",
  • "startAt": "string",
  • "endAt": "string",
  • "reason": "string",
  • "attachmentIds": [
    ],
  • "overrideLeaveRules": false,
  • "recordedAsDecided": false
}

Response samples

Content type
application/json
{
  • "allowedActions": [
    ],
  • "unit": "days",
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "employee": {
    },
  • "leaveType": {
    },
  • "startDate": "2026-10-01",
  • "startPart": "fullDay",
  • "endDate": "2026-10-01",
  • "endPart": "fullDay",
  • "startAt": "string",
  • "endAt": "string",
  • "quantityDays": 1.5,
  • "quantitySeconds": 0,
  • "days": [
    ],
  • "status": "pending",
  • "systemReason": "ineligibleAtApproval",
  • "decisionSource": "hrRecorded",
  • "reason": "string",
  • "attachmentIds": [
    ],
  • "approval": {
    },
  • "restrictedPeriodId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "absenceLimitNote": "string",
  • "enteredBy": {
    },
  • "contingentNote": "string",
  • "cancelledFromDate": "2026-10-01",
  • "refundedDays": 1.5,
  • "refundedSeconds": 0,
  • "cancellation": {
    },
  • "createdAt": "2026-10-01T08:15:00+02:00",
  • "origin": "user"
}

Preview a leave request without creating it

Authorizations:
bearerAuthsessionCookie
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Request Body schema: application/json
required
One of
employeeId
string <uuid> (Uuid)

Defaults to the caller. Only HR may name another employee.

leaveTypeId
required
string <uuid> (Uuid)
startDate
required
string <date> (Date)
startPart
string
Default: "fullDay"
Enum: "fullDay" "firstHalf" "secondHalf"
endDate
required
string <date> (Date)
endPart
string
Default: "fullDay"
Enum: "fullDay" "firstHalf" "secondHalf"
startAt
string (LocalDateTime) ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(:\d{2})?$

A date and time of the company time zone without offset, YYYY-MM-DDTHH:MM (seconds optional).

endAt
string (LocalDateTime) ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(:\d{2})?$

A date and time of the company time zone without offset, YYYY-MM-DDTHH:MM (seconds optional).

reason
string or null <= 1000 characters
attachmentIds
Array of strings <uuid> (Uuid) [ items <uuid > ]
overrideLeaveRules
boolean
Default: false

HR only; skips restricted periods, absence limits and request deadlines, recorded in the request history. Employees sending true get 403.

recordedAsDecided
boolean
Default: false

HR only, for another employee: records an absence that happened already as decided, without an approval. The whole request must lie in the past (its end date before today in the time zone of the company) and the reason is required; otherwise the response is 422 with the violation recordedAsDecided or reason. Anybody else sending true gets 403. The request is approved in the response, its decisionSource is hrRecorded and the history records the reason. A day before the opening balance of the employee is charged against that balance.

Responses

Request samples

Content type
application/json
{
  • "employeeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "leaveTypeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "startDate": "2026-10-01",
  • "startPart": "fullDay",
  • "endDate": "2026-10-01",
  • "endPart": "fullDay",
  • "startAt": "string",
  • "endAt": "string",
  • "reason": "string",
  • "attachmentIds": [
    ],
  • "overrideLeaveRules": false,
  • "recordedAsDecided": false
}

Response samples

Content type
application/json
{
  • "unit": "days",
  • "contingent": {
    },
  • "valid": true,
  • "quantityDays": 1.5,
  • "quantitySeconds": 0,
  • "days": [
    ],
  • "balanceBeforeDays": 0,
  • "balanceAfterDays": 0,
  • "consumptions": [
    ],
  • "absentColleagues": 0,
  • "belowMinimumStaffing": true,
  • "approvalRequired": true,
  • "attachmentRequired": true,
  • "teamLeadDays": [
    ],
  • "violations": [
    ]
}

Get a leave request

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/json
{
  • "allowedActions": [
    ],
  • "unit": "days",
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "employee": {
    },
  • "leaveType": {
    },
  • "startDate": "2026-10-01",
  • "startPart": "fullDay",
  • "endDate": "2026-10-01",
  • "endPart": "fullDay",
  • "startAt": "string",
  • "endAt": "string",
  • "quantityDays": 1.5,
  • "quantitySeconds": 0,
  • "days": [
    ],
  • "status": "pending",
  • "systemReason": "ineligibleAtApproval",
  • "decisionSource": "hrRecorded",
  • "reason": "string",
  • "attachmentIds": [
    ],
  • "approval": {
    },
  • "restrictedPeriodId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "absenceLimitNote": "string",
  • "enteredBy": {
    },
  • "contingentNote": "string",
  • "cancelledFromDate": "2026-10-01",
  • "refundedDays": 1.5,
  • "refundedSeconds": 0,
  • "cancellation": {
    },
  • "createdAt": "2026-10-01T08:15:00+02:00",
  • "origin": "user"
}

Withdraw a pending request

Only while the approval is pending (409 otherwise; an approved request is cancelled instead). A pending cancellation is withdrawn with withdrawLeaveCancellation.

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/json
{
  • "allowedActions": [
    ],
  • "unit": "days",
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "employee": {
    },
  • "leaveType": {
    },
  • "startDate": "2026-10-01",
  • "startPart": "fullDay",
  • "endDate": "2026-10-01",
  • "endPart": "fullDay",
  • "startAt": "string",
  • "endAt": "string",
  • "quantityDays": 1.5,
  • "quantitySeconds": 0,
  • "days": [
    ],
  • "status": "pending",
  • "systemReason": "ineligibleAtApproval",
  • "decisionSource": "hrRecorded",
  • "reason": "string",
  • "attachmentIds": [
    ],
  • "approval": {
    },
  • "restrictedPeriodId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "absenceLimitNote": "string",
  • "enteredBy": {
    },
  • "contingentNote": "string",
  • "cancelledFromDate": "2026-10-01",
  • "refundedDays": 1.5,
  • "refundedSeconds": 0,
  • "cancellation": {
    },
  • "createdAt": "2026-10-01T08:15:00+02:00",
  • "origin": "user"
}

Record a penalty for a leave request

Records a penalty of the core penalty account with the request as its source, under the rules of createEmployeePenalty: an amount, a leave deduction or both, HR always, a manager in scope only while the company access setting managersRecordPenalties is on, nobody for their own request (403). A request holds at most one active penalty (409). The request itself does not change; withdrawing the penalty gives a deduction back.

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Request Body schema: application/json
required
date
required
string <date> (Date)
reason
required
string [ 1 .. 500 ] characters
amount
integer >= 1

Minor units of the company currency; needs the penalty kind amount.

object (PenaltyLeaveDeduction)

Responses

Request samples

Content type
application/json
{
  • "date": "2026-10-01",
  • "reason": "string",
  • "amount": 1,
  • "leaveDeduction": {
    }
}

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "employee": {
    },
  • "date": "2026-10-01",
  • "reason": "string",
  • "amount": {
    },
  • "leaveDeduction": {
    },
  • "sources": [
    ],
  • "origin": "user",
  • "recordedBy": {
    },
  • "recordedAt": "2019-08-24T14:15:22Z",
  • "withdrawal": {
    }
}

Cancel an approved request, wholly or from a date

Submits a leaveCancellation to the approval engine; the approval rules for that subject decide whether anyone must approve. A no-approval rule applies synchronously, so the response already shows the final state. Refunds exactly the cancelled days. Taken days (up to today) can only be cancelled by HR.

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Request Body schema: application/json
optional
reason
string or null <= 1000 characters
Date (string) or null

First day to cancel. Defaults to tomorrow, or the start date of a future request. Days up to today are taken and only HR may cancel them.

Responses

Request samples

Content type
application/json
{
  • "reason": "string",
  • "fromDate": "2026-10-01"
}

Response samples

Content type
application/json
{
  • "allowedActions": [
    ],
  • "unit": "days",
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "employee": {
    },
  • "leaveType": {
    },
  • "startDate": "2026-10-01",
  • "startPart": "fullDay",
  • "endDate": "2026-10-01",
  • "endPart": "fullDay",
  • "startAt": "string",
  • "endAt": "string",
  • "quantityDays": 1.5,
  • "quantitySeconds": 0,
  • "days": [
    ],
  • "status": "pending",
  • "systemReason": "ineligibleAtApproval",
  • "decisionSource": "hrRecorded",
  • "reason": "string",
  • "attachmentIds": [
    ],
  • "approval": {
    },
  • "restrictedPeriodId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "absenceLimitNote": "string",
  • "enteredBy": {
    },
  • "contingentNote": "string",
  • "cancelledFromDate": "2026-10-01",
  • "refundedDays": 1.5,
  • "refundedSeconds": 0,
  • "cancellation": {
    },
  • "createdAt": "2026-10-01T08:15:00+02:00",
  • "origin": "user"
}

Withdraw a pending cancellation of an approved request

Ends the pending leaveCancellation approval as withdrawn; the request stays approved and the days stay booked. Changing a cancellation is a withdrawal followed by a new cancelLeaveRequest.

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/json
{
  • "allowedActions": [
    ],
  • "unit": "days",
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "employee": {
    },
  • "leaveType": {
    },
  • "startDate": "2026-10-01",
  • "startPart": "fullDay",
  • "endDate": "2026-10-01",
  • "endPart": "fullDay",
  • "startAt": "string",
  • "endAt": "string",
  • "quantityDays": 1.5,
  • "quantitySeconds": 0,
  • "days": [
    ],
  • "status": "pending",
  • "systemReason": "ineligibleAtApproval",
  • "decisionSource": "hrRecorded",
  • "reason": "string",
  • "attachmentIds": [
    ],
  • "approval": {
    },
  • "restrictedPeriodId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "absenceLimitNote": "string",
  • "enteredBy": {
    },
  • "contingentNote": "string",
  • "cancelledFromDate": "2026-10-01",
  • "refundedDays": 1.5,
  • "refundedSeconds": 0,
  • "cancellation": {
    },
  • "createdAt": "2026-10-01T08:15:00+02:00",
  • "origin": "user"
}

Withdraw a pending request and submit a new one atomically

Withdraws the pending request and submits the new one as a new approval instance superseding the old; if the new request is invalid, the old one stays pending.

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Idempotency-Key
string <uuid>

Client-generated key (UUID) making a POST safe to retry. A repeated key with an identical body returns the original response; with a different body it yields 422. While the first request with the key still runs, a repetition yields 409 (idempotency-request-in-progress) and does nothing; after a server error the key is free again.

Request Body schema: application/json
required
One of
employeeId
string <uuid> (Uuid)

Defaults to the caller. Only HR may name another employee.

leaveTypeId
required
string <uuid> (Uuid)
startDate
required
string <date> (Date)
startPart
string
Default: "fullDay"
Enum: "fullDay" "firstHalf" "secondHalf"
endDate
required
string <date> (Date)
endPart
string
Default: "fullDay"
Enum: "fullDay" "firstHalf" "secondHalf"
startAt
string (LocalDateTime) ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(:\d{2})?$

A date and time of the company time zone without offset, YYYY-MM-DDTHH:MM (seconds optional).

endAt
string (LocalDateTime) ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(:\d{2})?$

A date and time of the company time zone without offset, YYYY-MM-DDTHH:MM (seconds optional).

reason
string or null <= 1000 characters
attachmentIds
Array of strings <uuid> (Uuid) [ items <uuid > ]
overrideLeaveRules
boolean
Default: false

HR only; skips restricted periods, absence limits and request deadlines, recorded in the request history. Employees sending true get 403.

recordedAsDecided
boolean
Default: false

HR only, for another employee: records an absence that happened already as decided, without an approval. The whole request must lie in the past (its end date before today in the time zone of the company) and the reason is required; otherwise the response is 422 with the violation recordedAsDecided or reason. Anybody else sending true gets 403. The request is approved in the response, its decisionSource is hrRecorded and the history records the reason. A day before the opening balance of the employee is charged against that balance.

Responses

Request samples

Content type
application/json
{
  • "employeeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "leaveTypeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "startDate": "2026-10-01",
  • "startPart": "fullDay",
  • "endDate": "2026-10-01",
  • "endPart": "fullDay",
  • "startAt": "string",
  • "endAt": "string",
  • "reason": "string",
  • "attachmentIds": [
    ],
  • "overrideLeaveRules": false,
  • "recordedAsDecided": false
}

Response samples

Content type
application/json
{
  • "allowedActions": [
    ],
  • "unit": "days",
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "employee": {
    },
  • "leaveType": {
    },
  • "startDate": "2026-10-01",
  • "startPart": "fullDay",
  • "endDate": "2026-10-01",
  • "endPart": "fullDay",
  • "startAt": "string",
  • "endAt": "string",
  • "quantityDays": 1.5,
  • "quantitySeconds": 0,
  • "days": [
    ],
  • "status": "pending",
  • "systemReason": "ineligibleAtApproval",
  • "decisionSource": "hrRecorded",
  • "reason": "string",
  • "attachmentIds": [
    ],
  • "approval": {
    },
  • "restrictedPeriodId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "absenceLimitNote": "string",
  • "enteredBy": {
    },
  • "contingentNote": "string",
  • "cancelledFromDate": "2026-10-01",
  • "refundedDays": 1.5,
  • "refundedSeconds": 0,
  • "cancellation": {
    },
  • "createdAt": "2026-10-01T08:15:00+02:00",
  • "origin": "user"
}

Show overlapping absences and staffing for approvers

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/json
{
  • "clashes": [
    ],
  • "staffing": [
    ]
}

Upload an attachment

Authorizations:
bearerAuthsessionCookie
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Idempotency-Key
string <uuid>

Client-generated key (UUID) making a POST safe to retry. A repeated key with an identical body returns the original response; with a different body it yields 422. While the first request with the key still runs, a repetition yields 409 (idempotency-request-in-progress) and does nothing; after a server error the key is free again.

Request Body schema: multipart/form-data
required
file
required
string <binary>

PDF, JPEG or PNG, at most 10 MB.

purpose
required
string
Enum: "leaveRequest" "sicknessCertificate"

Responses

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "filename": "string",
  • "contentType": "string",
  • "sizeBytes": 10485760,
  • "purpose": "leaveRequest",
  • "linked": true,
  • "createdAt": "2026-10-01T08:15:00+02:00"
}

Download an attachment

Medical certificates are readable by the employee and HR only.

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/problem+json
{
  • "type": "../dictionary",
  • "title": "string",
  • "status": 0,
  • "detail": "string",
  • "instance": "../dictionary",
  • "code": 0,
  • "correlationId": "string",
  • "violations": [
    ],
  • "dependents": [
    ]
}

Delete an attachment that is not linked

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/problem+json
{
  • "type": "../dictionary",
  • "title": "string",
  • "status": 0,
  • "detail": "string",
  • "instance": "../dictionary",
  • "code": 0,
  • "correlationId": "string",
  • "violations": [
    ],
  • "dependents": [
    ]
}

List sickness reports

Sort allow-list: startDate, employee.

Authorizations:
bearerAuthsessionCookie
query Parameters
page
integer >= 1
Default: 1
perPage
integer [ 1 .. 200 ]
Default: 50
sort
string
Examples: sort=-startDate,employee

Comma-separated property names; a leading "-" sorts descending.

scope
string (ListScope)
Default: "self"
Enum: "self" "team" "company"

self: the caller. team: reports in scope, only when the company setting managerSeesSickness is on and without variant, certificate or continued-pay data. company: HR. Narrowed to what the caller may see.

employeeId
string <uuid> (Uuid)
Examples: employeeId=0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
status
string
Enum: "open" "ended" "withdrawn"
period
string (ListPeriod)
Enum: "thisMonth" "lastMonth" "thisYear" "thisYearOnward" "lastYear" "thisWeek" "lastWeek" "all"

The days a list of dated entries answers for, resolved on the company's local day: thisMonth (the default), lastMonth, thisYear, thisYearOnward (from the first day of the year, no end), lastYear, thisWeek or lastWeek (Monday to Sunday), or all (every day, for a work queue of open items). Explicit from and to override it (a side left out stays open). Every dated list takes this one shape; to see more than a period, ask with all or with from and to.

from
string <date> (Date)
Examples: from=2026-10-01

Inclusive start date of the period.

to
string <date> (Date)
Examples: to=2026-10-01

Inclusive end date of the period.

header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ],
  • "meta": {
    }
}

Report sickness

Authorizations:
bearerAuthsessionCookie
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Idempotency-Key
string <uuid>

Client-generated key (UUID) making a POST safe to retry. A repeated key with an identical body returns the original response; with a different body it yields 422. While the first request with the key still runs, a repetition yields 409 (idempotency-request-in-progress) and does nothing; after a server error the key is free again.

Request Body schema: application/json
required
employeeId
string <uuid> (Uuid)

Defaults to the caller. Only HR may name another employee.

startDate
required
string <date> (Date)
Date (string) or null
openEnded
boolean
Default: false
variant
string
Default: "employee"
Enum: "employee" "child"
note
string or null (SicknessNote) <= 500 characters

A practical hint for HR, such as how the employee can be reached; never a diagnosis. Read and changed by the employee and HR only. Whitespace around it is dropped, and an empty note is null.

certificateAttachmentId
string <uuid> (Uuid)

An unused upload of purpose sicknessCertificate, recorded as the certificate of the reported days, or of the start day when the report is open-ended.

Responses

Request samples

Content type
application/json
{
  • "employeeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "startDate": "2026-10-01",
  • "expectedEndDate": "2026-10-01",
  • "openEnded": false,
  • "variant": "employee",
  • "note": "string",
  • "certificateAttachmentId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
}

Response samples

Content type
application/json
{
  • "allowedActions": [
    ],
  • "unit": "days",
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "employee": {
    },
  • "startDate": "2026-10-01",
  • "expectedEndDate": "2026-10-01",
  • "endDate": "2026-10-01",
  • "openEnded": true,
  • "status": "open",
  • "confirmed": true,
  • "workingDays": 1.5,
  • "variant": "employee",
  • "note": "string",
  • "certificateRequiredFrom": "2026-10-01",
  • "certificateStatus": "notRequired",
  • "certificateSources": [
    ],
  • "certificates": [
    ],
  • "continuedPay": {
    },
  • "refundedVacationDays": 1.5,
  • "refundedVacationSeconds": 0,
  • "createdAt": "2026-10-01T08:15:00+02:00"
}

Get a sickness report

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/json
{
  • "allowedActions": [
    ],
  • "unit": "days",
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "employee": {
    },
  • "startDate": "2026-10-01",
  • "expectedEndDate": "2026-10-01",
  • "endDate": "2026-10-01",
  • "openEnded": true,
  • "status": "open",
  • "confirmed": true,
  • "workingDays": 1.5,
  • "variant": "employee",
  • "note": "string",
  • "certificateRequiredFrom": "2026-10-01",
  • "certificateStatus": "notRequired",
  • "certificateSources": [
    ],
  • "certificates": [
    ],
  • "continuedPay": {
    },
  • "refundedVacationDays": 1.5,
  • "refundedVacationSeconds": 0,
  • "createdAt": "2026-10-01T08:15:00+02:00"
}

Change the expected end or the open-ended flag

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

If-Match
required
string

ETag of the representation being modified (optimistic locking). A stale value yields 412.

Request Body schema: application/json
required
Date (string) or null
openEnded
boolean
Uuid (string) or null

HR only: links a continuation of the same illness.

note
string or null (SicknessNote) <= 500 characters

A practical hint for HR, such as how the employee can be reached; never a diagnosis. Read and changed by the employee and HR only. Whitespace around it is dropped, and an empty note is null.

Responses

Request samples

Content type
application/json
{
  • "expectedEndDate": "2026-10-01",
  • "openEnded": true,
  • "continuationOfId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "note": "string"
}

Response samples

Content type
application/json
{
  • "allowedActions": [
    ],
  • "unit": "days",
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "employee": {
    },
  • "startDate": "2026-10-01",
  • "expectedEndDate": "2026-10-01",
  • "endDate": "2026-10-01",
  • "openEnded": true,
  • "status": "open",
  • "confirmed": true,
  • "workingDays": 1.5,
  • "variant": "employee",
  • "note": "string",
  • "certificateRequiredFrom": "2026-10-01",
  • "certificateStatus": "notRequired",
  • "certificateSources": [
    ],
  • "certificates": [
    ],
  • "continuedPay": {
    },
  • "refundedVacationDays": 1.5,
  • "refundedVacationSeconds": 0,
  • "createdAt": "2026-10-01T08:15:00+02:00"
}

Set the last day of sickness

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Request Body schema: application/json
required
endDate
required
string <date> (Date)

Responses

Request samples

Content type
application/json
{
  • "endDate": "2026-10-01"
}

Response samples

Content type
application/json
{
  • "allowedActions": [
    ],
  • "unit": "days",
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "employee": {
    },
  • "startDate": "2026-10-01",
  • "expectedEndDate": "2026-10-01",
  • "endDate": "2026-10-01",
  • "openEnded": true,
  • "status": "open",
  • "confirmed": true,
  • "workingDays": 1.5,
  • "variant": "employee",
  • "note": "string",
  • "certificateRequiredFrom": "2026-10-01",
  • "certificateStatus": "notRequired",
  • "certificateSources": [
    ],
  • "certificates": [
    ],
  • "continuedPay": {
    },
  • "refundedVacationDays": 1.5,
  • "refundedVacationSeconds": 0,
  • "createdAt": "2026-10-01T08:15:00+02:00"
}

Record a medical certificate

Upload by employee or HR; eAuRetrieved by HR only.

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Request Body schema: application/json
required
fromDate
required
string <date> (Date)
toDate
required
string <date> (Date)
source
required
string^[a-zA-Z]{1,30}$

upload, or an electronic certificate HR retrieved that the law of the person's office knows (the report's certificateSources), such as eAuRetrieved in Germany; another one is refused with 422.

Uuid (string) or null

Required for upload, null for an electronic certificate, which only HR records.

Responses

Request samples

Content type
application/json
{
  • "fromDate": "2026-10-01",
  • "toDate": "2026-10-01",
  • "source": "string",
  • "attachmentId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
}

Response samples

Content type
application/json
{
  • "fromDate": "2026-10-01",
  • "toDate": "2026-10-01",
  • "source": "string",
  • "attachmentId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "recordedBy": {
    },
  • "recordedAt": "2026-10-01T08:15:00+02:00"
}

Confirm certified sickness and refund vacation days

HR only. Refunds approved vacation days on certified working days; repeating refunds only new days.

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Request Body schema: application/json
optional
comment
string or null <= 500 characters

Responses

Request samples

Content type
application/json
{
  • "comment": "string"
}

Response samples

Content type
application/json
{
  • "allowedActions": [
    ],
  • "unit": "days",
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "employee": {
    },
  • "startDate": "2026-10-01",
  • "expectedEndDate": "2026-10-01",
  • "endDate": "2026-10-01",
  • "openEnded": true,
  • "status": "open",
  • "confirmed": true,
  • "workingDays": 1.5,
  • "variant": "employee",
  • "note": "string",
  • "certificateRequiredFrom": "2026-10-01",
  • "certificateStatus": "notRequired",
  • "certificateSources": [
    ],
  • "certificates": [
    ],
  • "continuedPay": {
    },
  • "refundedVacationDays": 1.5,
  • "refundedVacationSeconds": 0,
  • "createdAt": "2026-10-01T08:15:00+02:00"
}

Withdraw an unconfirmed report

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/json
{
  • "allowedActions": [
    ],
  • "unit": "days",
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "employee": {
    },
  • "startDate": "2026-10-01",
  • "expectedEndDate": "2026-10-01",
  • "endDate": "2026-10-01",
  • "openEnded": true,
  • "status": "open",
  • "confirmed": true,
  • "workingDays": 1.5,
  • "variant": "employee",
  • "note": "string",
  • "certificateRequiredFrom": "2026-10-01",
  • "certificateStatus": "notRequired",
  • "certificateSources": [
    ],
  • "certificates": [
    ],
  • "continuedPay": {
    },
  • "refundedVacationDays": 1.5,
  • "refundedVacationSeconds": 0,
  • "createdAt": "2026-10-01T08:15:00+02:00"
}

List allocation requests

Sort allow-list: createdAt.

Authorizations:
bearerAuthsessionCookie
query Parameters
page
integer >= 1
Default: 1
perPage
integer [ 1 .. 200 ]
Default: 50
sort
string
Examples: sort=-startDate,employee

Comma-separated property names; a leading "-" sorts descending.

scope
string (ListScope)
Default: "self"
Enum: "self" "team" "company"

self: the caller. team: reports in scope and requests assigned to the caller. company: HR. Narrowed to what the caller may see.

employeeId
string <uuid> (Uuid)
Examples: employeeId=0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
leaveTypeId
string <uuid> (Uuid)
Examples: leaveTypeId=0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
status
string
Enum: "pending" "approved" "rejected" "withdrawn"
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ],
  • "meta": {
    }
}

Request extra leave days

Authorizations:
bearerAuthsessionCookie
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Idempotency-Key
string <uuid>

Client-generated key (UUID) making a POST safe to retry. A repeated key with an identical body returns the original response; with a different body it yields 422. While the first request with the key still runs, a repetition yields 409 (idempotency-request-in-progress) and does nothing; after a server error the key is free again.

Request Body schema: application/json
required
employeeId
string <uuid> (Uuid)

Defaults to the caller. Only HR may name another employee.

leaveTypeId
required
string <uuid> (Uuid)
required
Days (number) or null >= 0.5
seconds
integer or null

days expressed in seconds when the policy unit is hours; null under days.

reason
required
string [ 1 .. 1000 ] characters
Date (string) or null

Wished end of validity. Default: end of the current year.

Responses

Request samples

Content type
application/json
{
  • "employeeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "leaveTypeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "days": 1.5,
  • "seconds": 0,
  • "reason": "string",
  • "validUntil": "2026-10-01"
}

Response samples

Content type
application/json
{
  • "allowedActions": [
    ],
  • "unit": "days",
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "employee": {
    },
  • "leaveType": {
    },
  • "days": 1.5,
  • "seconds": 0,
  • "reason": "string",
  • "validUntil": "2026-10-01",
  • "status": "pending",
  • "systemReason": "ineligibleAtApproval",
  • "grantedEntryId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "approval": {
    },
  • "createdAt": "2026-10-01T08:15:00+02:00"
}

Get an allocation request

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/json
{
  • "allowedActions": [
    ],
  • "unit": "days",
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "employee": {
    },
  • "leaveType": {
    },
  • "days": 1.5,
  • "seconds": 0,
  • "reason": "string",
  • "validUntil": "2026-10-01",
  • "status": "pending",
  • "systemReason": "ineligibleAtApproval",
  • "grantedEntryId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "approval": {
    },
  • "createdAt": "2026-10-01T08:15:00+02:00"
}

Withdraw a pending allocation request

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/json
{
  • "allowedActions": [
    ],
  • "unit": "days",
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "employee": {
    },
  • "leaveType": {
    },
  • "days": 1.5,
  • "seconds": 0,
  • "reason": "string",
  • "validUntil": "2026-10-01",
  • "status": "pending",
  • "systemReason": "ineligibleAtApproval",
  • "grantedEntryId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "approval": {
    },
  • "createdAt": "2026-10-01T08:15:00+02:00"
}

List restricted periods

Sort allow-list: startDate, name. Visible to HR.

Authorizations:
bearerAuthsessionCookie
query Parameters
page
integer >= 1
Default: 1
perPage
integer [ 1 .. 200 ]
Default: 50
sort
string
Examples: sort=-startDate,employee

Comma-separated property names; a leading "-" sorts descending.

from
string <date> (Date)
Examples: from=2026-10-01

Inclusive start date of the period.

to
string <date> (Date)
Examples: to=2026-10-01

Inclusive end date of the period.

mode
string
Enum: "block" "extraApproval"
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ],
  • "meta": {
    }
}

Create a restricted period

Authorizations:
bearerAuthsessionCookie
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Idempotency-Key
string <uuid>

Client-generated key (UUID) making a POST safe to retry. A repeated key with an identical body returns the original response; with a different body it yields 422. While the first request with the key still runs, a repetition yields 409 (idempotency-request-in-progress) and does nothing; after a server error the key is free again.

Request Body schema: application/json
required
name
required
string [ 1 .. 100 ] characters
startDate
required
string <date> (Date)
endDate
required
string <date> (Date)
reason
required
string [ 1 .. 500 ] characters
mode
required
string
Enum: "block" "extraApproval"
departmentIds
required
Array of strings <uuid> (Uuid) [ items <uuid > ]

Including sub-departments. Several values of one dimension match any of them, the dimensions departmentIds, locationIds and jobPositionIds all have to match, an empty dimension matches everybody.

locationIds
required
Array of strings <uuid> (Uuid) [ items <uuid > ]
jobPositionIds
Array of strings <uuid> (Uuid) [ items <uuid > ]

Optional in the input; empty when left out.

leaveTypeIds
required
Array of strings <uuid> (Uuid) [ items <uuid > ]

The types the period applies to; empty: all types except sickness and the excluded ones. Never a sickness type (422 sicknessNeverRestricted).

excludedLeaveTypeIds
Array of strings <uuid> (Uuid) [ items <uuid > ]

All types except these, when leaveTypeIds is empty; giving both is refused (422 typesOrExcluded). Optional in the input; empty when left out.

exemptEmployeeIds
Array of strings <uuid> (Uuid) [ items <uuid > ]

Employees of the company whose requests the period does not check. Optional in the input; empty when left out.

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "startDate": "2026-10-01",
  • "endDate": "2026-10-01",
  • "reason": "string",
  • "mode": "block",
  • "departmentIds": [
    ],
  • "locationIds": [
    ],
  • "jobPositionIds": [
    ],
  • "leaveTypeIds": [
    ],
  • "excludedLeaveTypeIds": [
    ],
  • "exemptEmployeeIds": [
    ]
}

Response samples

Content type
application/json
{
  • "name": "string",
  • "startDate": "2026-10-01",
  • "endDate": "2026-10-01",
  • "reason": "string",
  • "mode": "block",
  • "departmentIds": [
    ],
  • "locationIds": [
    ],
  • "jobPositionIds": [
    ],
  • "leaveTypeIds": [
    ],
  • "excludedLeaveTypeIds": [
    ],
  • "exemptEmployeeIds": [
    ],
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
}

Get a restricted period

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/json
{
  • "name": "string",
  • "startDate": "2026-10-01",
  • "endDate": "2026-10-01",
  • "reason": "string",
  • "mode": "block",
  • "departmentIds": [
    ],
  • "locationIds": [
    ],
  • "jobPositionIds": [
    ],
  • "leaveTypeIds": [
    ],
  • "excludedLeaveTypeIds": [
    ],
  • "exemptEmployeeIds": [
    ],
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
}

Replace a restricted period

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

If-Match
required
string

ETag of the representation being modified (optimistic locking). A stale value yields 412.

Request Body schema: application/json
required
name
required
string [ 1 .. 100 ] characters
startDate
required
string <date> (Date)
endDate
required
string <date> (Date)
reason
required
string [ 1 .. 500 ] characters
mode
required
string
Enum: "block" "extraApproval"
departmentIds
required
Array of strings <uuid> (Uuid) [ items <uuid > ]

Including sub-departments. Several values of one dimension match any of them, the dimensions departmentIds, locationIds and jobPositionIds all have to match, an empty dimension matches everybody.

locationIds
required
Array of strings <uuid> (Uuid) [ items <uuid > ]
jobPositionIds
Array of strings <uuid> (Uuid) [ items <uuid > ]

Optional in the input; empty when left out.

leaveTypeIds
required
Array of strings <uuid> (Uuid) [ items <uuid > ]

The types the period applies to; empty: all types except sickness and the excluded ones. Never a sickness type (422 sicknessNeverRestricted).

excludedLeaveTypeIds
Array of strings <uuid> (Uuid) [ items <uuid > ]

All types except these, when leaveTypeIds is empty; giving both is refused (422 typesOrExcluded). Optional in the input; empty when left out.

exemptEmployeeIds
Array of strings <uuid> (Uuid) [ items <uuid > ]

Employees of the company whose requests the period does not check. Optional in the input; empty when left out.

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "startDate": "2026-10-01",
  • "endDate": "2026-10-01",
  • "reason": "string",
  • "mode": "block",
  • "departmentIds": [
    ],
  • "locationIds": [
    ],
  • "jobPositionIds": [
    ],
  • "leaveTypeIds": [
    ],
  • "excludedLeaveTypeIds": [
    ],
  • "exemptEmployeeIds": [
    ]
}

Response samples

Content type
application/json
{
  • "name": "string",
  • "startDate": "2026-10-01",
  • "endDate": "2026-10-01",
  • "reason": "string",
  • "mode": "block",
  • "departmentIds": [
    ],
  • "locationIds": [
    ],
  • "jobPositionIds": [
    ],
  • "leaveTypeIds": [
    ],
  • "excludedLeaveTypeIds": [
    ],
  • "exemptEmployeeIds": [
    ],
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
}

Delete a restricted period

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

If-Match
required
string

ETag of the representation being modified (optimistic locking). A stale value yields 412.

Responses

Response samples

Content type
application/problem+json
{
  • "type": "../dictionary",
  • "title": "string",
  • "status": 0,
  • "detail": "string",
  • "instance": "../dictionary",
  • "code": 0,
  • "correlationId": "string",
  • "violations": [
    ],
  • "dependents": [
    ]
}

Copy a restricted period to a new start date

Creates a period with the name, reason, scope, type lists and mode of this one, from startDate and ending as many days later as this one does; validated like a new period. This period stays as it is.

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Idempotency-Key
string <uuid>

Client-generated key (UUID) making a POST safe to retry. A repeated key with an identical body returns the original response; with a different body it yields 422. While the first request with the key still runs, a repetition yields 409 (idempotency-request-in-progress) and does nothing; after a server error the key is free again.

Request Body schema: application/json
required
startDate
required
string <date> (Date)

Responses

Request samples

Content type
application/json
{
  • "startDate": "2026-10-01"
}

Response samples

Content type
application/json
{
  • "name": "string",
  • "startDate": "2026-10-01",
  • "endDate": "2026-10-01",
  • "reason": "string",
  • "mode": "block",
  • "departmentIds": [
    ],
  • "locationIds": [
    ],
  • "jobPositionIds": [
    ],
  • "leaveTypeIds": [
    ],
  • "excludedLeaveTypeIds": [
    ],
  • "exemptEmployeeIds": [
    ],
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
}

List absence limits

By name. Visible to HR.

Authorizations:
bearerAuthsessionCookie
query Parameters
page
integer >= 1
Default: 1
perPage
integer [ 1 .. 200 ]
Default: 50
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ],
  • "meta": {
    }
}

Create an absence limit

Authorizations:
bearerAuthsessionCookie
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Idempotency-Key
string <uuid>

Client-generated key (UUID) making a POST safe to retry. A repeated key with an identical body returns the original response; with a different body it yields 422. While the first request with the key still runs, a repetition yields 409 (idempotency-request-in-progress) and does nothing; after a server error the key is free again.

Request Body schema: application/json
required
name
required
string [ 1 .. 100 ] characters
grouping
required
string
Enum: "department" "reportingManager"

department: every department in the scope is a team, led by its effective head. reportingManager: the direct reports of each manager in the scope are a team, led by the manager.

includeSubDepartments
boolean
Default: false

With grouping department, the members of sub-departments belong to the team; otherwise each sub-department is a team of its own.

maxAbsent
integer [ 1 .. 99 ]
Default: 1

How many other members of a team may be away on a day before the day is full.

toleranceDays
integer [ 0 .. 30 ]
Default: 1

A request with at most this many full working days needs the team lead's approval; with more it is refused (422 absenceLimit).

Date (string) or null
Date (string) or null

Not before validFrom.

departmentIds
Array of strings <uuid> (Uuid) [ items <uuid > ]

Departments (with sub-departments) whose people the limit covers; with all scope lists empty, the whole company.

locationIds
Array of strings <uuid> (Uuid) [ items <uuid > ]

Locations; combined with the other dimensions as for restricted periods.

jobPositionIds
Array of strings <uuid> (Uuid) [ items <uuid > ]

Job positions; combined with the other dimensions as for restricted periods.

leaveTypeIds
Array of strings <uuid> (Uuid) [ items <uuid > ]

The types that count and are checked; empty: all types except sickness and the excluded ones.

excludedLeaveTypeIds
Array of strings <uuid> (Uuid) [ items <uuid > ]

All types except these, when leaveTypeIds is empty; giving both is refused (422 typesOrExcluded).

exemptEmployeeIds
Array of strings <uuid> (Uuid) [ items <uuid > ]

Employees whose requests the limit does not check; their absences still count for the others.

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "grouping": "department",
  • "includeSubDepartments": false,
  • "maxAbsent": 1,
  • "toleranceDays": 1,
  • "validFrom": "2026-10-01",
  • "validTo": "2026-10-01",
  • "departmentIds": [
    ],
  • "locationIds": [
    ],
  • "jobPositionIds": [
    ],
  • "leaveTypeIds": [
    ],
  • "excludedLeaveTypeIds": [
    ],
  • "exemptEmployeeIds": [
    ]
}

Response samples

Content type
application/json
{
  • "name": "string",
  • "grouping": "department",
  • "includeSubDepartments": false,
  • "maxAbsent": 1,
  • "toleranceDays": 1,
  • "validFrom": "2026-10-01",
  • "validTo": "2026-10-01",
  • "departmentIds": [
    ],
  • "locationIds": [
    ],
  • "jobPositionIds": [
    ],
  • "leaveTypeIds": [
    ],
  • "excludedLeaveTypeIds": [
    ],
  • "exemptEmployeeIds": [
    ],
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
}

Get an absence limit

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/json
{
  • "name": "string",
  • "grouping": "department",
  • "includeSubDepartments": false,
  • "maxAbsent": 1,
  • "toleranceDays": 1,
  • "validFrom": "2026-10-01",
  • "validTo": "2026-10-01",
  • "departmentIds": [
    ],
  • "locationIds": [
    ],
  • "jobPositionIds": [
    ],
  • "leaveTypeIds": [
    ],
  • "excludedLeaveTypeIds": [
    ],
  • "exemptEmployeeIds": [
    ],
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
}

Replace an absence limit

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

If-Match
required
string

ETag of the representation being modified (optimistic locking). A stale value yields 412.

Request Body schema: application/json
required
name
required
string [ 1 .. 100 ] characters
grouping
required
string
Enum: "department" "reportingManager"

department: every department in the scope is a team, led by its effective head. reportingManager: the direct reports of each manager in the scope are a team, led by the manager.

includeSubDepartments
boolean
Default: false

With grouping department, the members of sub-departments belong to the team; otherwise each sub-department is a team of its own.

maxAbsent
integer [ 1 .. 99 ]
Default: 1

How many other members of a team may be away on a day before the day is full.

toleranceDays
integer [ 0 .. 30 ]
Default: 1

A request with at most this many full working days needs the team lead's approval; with more it is refused (422 absenceLimit).

Date (string) or null
Date (string) or null

Not before validFrom.

departmentIds
Array of strings <uuid> (Uuid) [ items <uuid > ]

Departments (with sub-departments) whose people the limit covers; with all scope lists empty, the whole company.

locationIds
Array of strings <uuid> (Uuid) [ items <uuid > ]

Locations; combined with the other dimensions as for restricted periods.

jobPositionIds
Array of strings <uuid> (Uuid) [ items <uuid > ]

Job positions; combined with the other dimensions as for restricted periods.

leaveTypeIds
Array of strings <uuid> (Uuid) [ items <uuid > ]

The types that count and are checked; empty: all types except sickness and the excluded ones.

excludedLeaveTypeIds
Array of strings <uuid> (Uuid) [ items <uuid > ]

All types except these, when leaveTypeIds is empty; giving both is refused (422 typesOrExcluded).

exemptEmployeeIds
Array of strings <uuid> (Uuid) [ items <uuid > ]

Employees whose requests the limit does not check; their absences still count for the others.

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "grouping": "department",
  • "includeSubDepartments": false,
  • "maxAbsent": 1,
  • "toleranceDays": 1,
  • "validFrom": "2026-10-01",
  • "validTo": "2026-10-01",
  • "departmentIds": [
    ],
  • "locationIds": [
    ],
  • "jobPositionIds": [
    ],
  • "leaveTypeIds": [
    ],
  • "excludedLeaveTypeIds": [
    ],
  • "exemptEmployeeIds": [
    ]
}

Response samples

Content type
application/json
{
  • "name": "string",
  • "grouping": "department",
  • "includeSubDepartments": false,
  • "maxAbsent": 1,
  • "toleranceDays": 1,
  • "validFrom": "2026-10-01",
  • "validTo": "2026-10-01",
  • "departmentIds": [
    ],
  • "locationIds": [
    ],
  • "jobPositionIds": [
    ],
  • "leaveTypeIds": [
    ],
  • "excludedLeaveTypeIds": [
    ],
  • "exemptEmployeeIds": [
    ],
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
}

Delete an absence limit

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

If-Match
required
string

ETag of the representation being modified (optimistic locking). A stale value yields 412.

Responses

Response samples

Content type
application/problem+json
{
  • "type": "../dictionary",
  • "title": "string",
  • "status": 0,
  • "detail": "string",
  • "instance": "../dictionary",
  • "code": 0,
  • "correlationId": "string",
  • "violations": [
    ],
  • "dependents": [
    ]
}

List request deadlines

By name. Visible to HR.

Authorizations:
bearerAuthsessionCookie
query Parameters
page
integer >= 1
Default: 1
perPage
integer [ 1 .. 200 ]
Default: 50
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ],
  • "meta": {
    }
}

Create a request deadline

Authorizations:
bearerAuthsessionCookie
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Idempotency-Key
string <uuid>

Client-generated key (UUID) making a POST safe to retry. A repeated key with an identical body returns the original response; with a different body it yields 422. While the first request with the key still runs, a repetition yields 409 (idempotency-request-in-progress) and does nothing; after a server error the key is free again.

Request Body schema: application/json
required
name
required
string [ 1 .. 100 ] characters
kind
required
string
Enum: "leadTime" "planningDeadline"

leadTime: requested at least minLeadDays calendar days before the first day. planningDeadline: leave of a leave year requested by the deadline of that leave year.

minLeadDays
integer or null [ 1 .. 365 ]

Required for leadTime; null for planningDeadline.

deadline
string or null^\d{2}-\d{2}$

Month and day as MM-DD, a day that exists in a leap year. Required for planningDeadline; null for leadTime.

minLengthDays
integer [ 1 .. 365 ]
Default: 1

The deadline applies to requests of at least this many working days.

mode
required
string
Enum: "block" "extraApproval"

block: a late request is refused (422 requestDeadline). extraApproval: it needs the approver as well.

approver
string or null
Enum: "reportingManager" "departmentHead" "hr" null

Who approves a late request as well under extraApproval; reportingManager when left out. Null under block.

reminderDaysBefore
integer or null [ 1 .. 90 ]

For planningDeadline, given together with plannedSharePercent; so many days before the deadline, employees in scope who planned less than the share of their year are reminded (leave.planningReminder).

plannedSharePercent
integer or null [ 1 .. 100 ]

Used, pending and planned leave of the year as a share of the entitlement below which the reminder goes out.

Date (string) or null
Date (string) or null

Not before validFrom.

departmentIds
Array of strings <uuid> (Uuid) [ items <uuid > ]

Departments (with sub-departments) whose people the deadline covers; with all scope lists empty, the whole company.

locationIds
Array of strings <uuid> (Uuid) [ items <uuid > ]

Locations; combined with the other dimensions as for restricted periods.

jobPositionIds
Array of strings <uuid> (Uuid) [ items <uuid > ]

Job positions; combined with the other dimensions as for restricted periods.

leaveTypeIds
Array of strings <uuid> (Uuid) [ items <uuid > ]

The types the deadline applies to; empty: all types except sickness and the excluded ones.

excludedLeaveTypeIds
Array of strings <uuid> (Uuid) [ items <uuid > ]

All types except these, when leaveTypeIds is empty; giving both is refused (422 typesOrExcluded).

exemptEmployeeIds
Array of strings <uuid> (Uuid) [ items <uuid > ]

Employees whose requests the deadline does not check.

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "kind": "leadTime",
  • "minLeadDays": 1,
  • "deadline": "string",
  • "minLengthDays": 1,
  • "mode": "block",
  • "approver": "reportingManager",
  • "reminderDaysBefore": 1,
  • "plannedSharePercent": 1,
  • "validFrom": "2026-10-01",
  • "validTo": "2026-10-01",
  • "departmentIds": [
    ],
  • "locationIds": [
    ],
  • "jobPositionIds": [
    ],
  • "leaveTypeIds": [
    ],
  • "excludedLeaveTypeIds": [
    ],
  • "exemptEmployeeIds": [
    ]
}

Response samples

Content type
application/json
{
  • "name": "string",
  • "kind": "leadTime",
  • "minLeadDays": 1,
  • "deadline": "string",
  • "minLengthDays": 1,
  • "mode": "block",
  • "approver": "reportingManager",
  • "reminderDaysBefore": 1,
  • "plannedSharePercent": 1,
  • "validFrom": "2026-10-01",
  • "validTo": "2026-10-01",
  • "departmentIds": [
    ],
  • "locationIds": [
    ],
  • "jobPositionIds": [
    ],
  • "leaveTypeIds": [
    ],
  • "excludedLeaveTypeIds": [
    ],
  • "exemptEmployeeIds": [
    ],
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
}

Get a request deadline

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/json
{
  • "name": "string",
  • "kind": "leadTime",
  • "minLeadDays": 1,
  • "deadline": "string",
  • "minLengthDays": 1,
  • "mode": "block",
  • "approver": "reportingManager",
  • "reminderDaysBefore": 1,
  • "plannedSharePercent": 1,
  • "validFrom": "2026-10-01",
  • "validTo": "2026-10-01",
  • "departmentIds": [
    ],
  • "locationIds": [
    ],
  • "jobPositionIds": [
    ],
  • "leaveTypeIds": [
    ],
  • "excludedLeaveTypeIds": [
    ],
  • "exemptEmployeeIds": [
    ],
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
}

Replace a request deadline

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

If-Match
required
string

ETag of the representation being modified (optimistic locking). A stale value yields 412.

Request Body schema: application/json
required
name
required
string [ 1 .. 100 ] characters
kind
required
string
Enum: "leadTime" "planningDeadline"

leadTime: requested at least minLeadDays calendar days before the first day. planningDeadline: leave of a leave year requested by the deadline of that leave year.

minLeadDays
integer or null [ 1 .. 365 ]

Required for leadTime; null for planningDeadline.

deadline
string or null^\d{2}-\d{2}$

Month and day as MM-DD, a day that exists in a leap year. Required for planningDeadline; null for leadTime.

minLengthDays
integer [ 1 .. 365 ]
Default: 1

The deadline applies to requests of at least this many working days.

mode
required
string
Enum: "block" "extraApproval"

block: a late request is refused (422 requestDeadline). extraApproval: it needs the approver as well.

approver
string or null
Enum: "reportingManager" "departmentHead" "hr" null

Who approves a late request as well under extraApproval; reportingManager when left out. Null under block.

reminderDaysBefore
integer or null [ 1 .. 90 ]

For planningDeadline, given together with plannedSharePercent; so many days before the deadline, employees in scope who planned less than the share of their year are reminded (leave.planningReminder).

plannedSharePercent
integer or null [ 1 .. 100 ]

Used, pending and planned leave of the year as a share of the entitlement below which the reminder goes out.

Date (string) or null
Date (string) or null

Not before validFrom.

departmentIds
Array of strings <uuid> (Uuid) [ items <uuid > ]

Departments (with sub-departments) whose people the deadline covers; with all scope lists empty, the whole company.

locationIds
Array of strings <uuid> (Uuid) [ items <uuid > ]

Locations; combined with the other dimensions as for restricted periods.

jobPositionIds
Array of strings <uuid> (Uuid) [ items <uuid > ]

Job positions; combined with the other dimensions as for restricted periods.

leaveTypeIds
Array of strings <uuid> (Uuid) [ items <uuid > ]

The types the deadline applies to; empty: all types except sickness and the excluded ones.

excludedLeaveTypeIds
Array of strings <uuid> (Uuid) [ items <uuid > ]

All types except these, when leaveTypeIds is empty; giving both is refused (422 typesOrExcluded).

exemptEmployeeIds
Array of strings <uuid> (Uuid) [ items <uuid > ]

Employees whose requests the deadline does not check.

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "kind": "leadTime",
  • "minLeadDays": 1,
  • "deadline": "string",
  • "minLengthDays": 1,
  • "mode": "block",
  • "approver": "reportingManager",
  • "reminderDaysBefore": 1,
  • "plannedSharePercent": 1,
  • "validFrom": "2026-10-01",
  • "validTo": "2026-10-01",
  • "departmentIds": [
    ],
  • "locationIds": [
    ],
  • "jobPositionIds": [
    ],
  • "leaveTypeIds": [
    ],
  • "excludedLeaveTypeIds": [
    ],
  • "exemptEmployeeIds": [
    ]
}

Response samples

Content type
application/json
{
  • "name": "string",
  • "kind": "leadTime",
  • "minLeadDays": 1,
  • "deadline": "string",
  • "minLengthDays": 1,
  • "mode": "block",
  • "approver": "reportingManager",
  • "reminderDaysBefore": 1,
  • "plannedSharePercent": 1,
  • "validFrom": "2026-10-01",
  • "validTo": "2026-10-01",
  • "departmentIds": [
    ],
  • "locationIds": [
    ],
  • "jobPositionIds": [
    ],
  • "leaveTypeIds": [
    ],
  • "excludedLeaveTypeIds": [
    ],
  • "exemptEmployeeIds": [
    ],
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
}

Delete a request deadline

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

If-Match
required
string

ETag of the representation being modified (optimistic locking). A stale value yields 412.

Responses

Response samples

Content type
application/problem+json
{
  • "type": "../dictionary",
  • "title": "string",
  • "status": 0,
  • "detail": "string",
  • "instance": "../dictionary",
  • "code": 0,
  • "correlationId": "string",
  • "violations": [
    ],
  • "dependents": [
    ]
}

List company closures

By first day. HR sees every closure, a manager in scope only the published ones.

Authorizations:
bearerAuthsessionCookie
query Parameters
page
integer >= 1
Default: 1
perPage
integer [ 1 .. 200 ]
Default: 50
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ],
  • "meta": {
    }
}

Create a company closure

Authorizations:
bearerAuthsessionCookie
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Idempotency-Key
string <uuid>

Client-generated key (UUID) making a POST safe to retry. A repeated key with an identical body returns the original response; with a different body it yields 422. While the first request with the key still runs, a repetition yields 409 (idempotency-request-in-progress) and does nothing; after a server error the key is free again.

Request Body schema: application/json
required
name
required
string [ 1 .. 100 ] characters
firstDay
required
string <date> (Date)
lastDay
required
string <date> (Date)

Not before firstDay.

reason
required
string [ 1 .. 500 ] characters

Told to the employees with their booked days.

note
string or null <= 1000 characters

For HR, such as the works council's agreement.

payment
string
Default: "vacation"
Enum: "vacation" "company" "workingTimeAccount"

Who pays the days: taken from vacation days, given by the company, or taken from the working-time account.

shortfall
string
Default: "negativeBalance"
Enum: "negativeBalance" "unpaid" "workingTimeAccount"

What happens to days the vacation balance does not cover under payment vacation.

Date (string) or null

Until when employees may ask to work instead; not after firstDay. Null when nobody may.

optOutApproval
string
Default: "reportingManager"
Enum: "reportingManager" "none"

Whether working instead needs the reporting manager's approval.

departmentIds
Array of strings <uuid> (Uuid) [ items <uuid > ]

Departments (with sub-departments) whose people the closure covers; with all scope lists empty, the whole company.

locationIds
Array of strings <uuid> (Uuid) [ items <uuid > ]

Locations; combined with the other dimensions as for restricted periods.

jobPositionIds
Array of strings <uuid> (Uuid) [ items <uuid > ]

Job positions; combined with the other dimensions as for restricted periods.

exemptEmployeeIds
Array of strings <uuid> (Uuid) [ items <uuid > ]

Employees the closure leaves out.

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "firstDay": "2026-10-01",
  • "lastDay": "2026-10-01",
  • "reason": "string",
  • "note": "string",
  • "payment": "vacation",
  • "shortfall": "negativeBalance",
  • "optOutUntil": "2026-10-01",
  • "optOutApproval": "reportingManager",
  • "departmentIds": [
    ],
  • "locationIds": [
    ],
  • "jobPositionIds": [
    ],
  • "exemptEmployeeIds": [
    ]
}

Response samples

Content type
application/json
{
  • "name": "string",
  • "firstDay": "2026-10-01",
  • "lastDay": "2026-10-01",
  • "reason": "string",
  • "note": "string",
  • "payment": "vacation",
  • "shortfall": "negativeBalance",
  • "optOutUntil": "2026-10-01",
  • "optOutApproval": "reportingManager",
  • "departmentIds": [
    ],
  • "locationIds": [
    ],
  • "jobPositionIds": [
    ],
  • "exemptEmployeeIds": [
    ],
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "status": "draft"
}

Get a company closure

A manager in scope reads a published closure; drafts and cancelled closures answer 404 for them.

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/json
{
  • "name": "string",
  • "firstDay": "2026-10-01",
  • "lastDay": "2026-10-01",
  • "reason": "string",
  • "note": "string",
  • "payment": "vacation",
  • "shortfall": "negativeBalance",
  • "optOutUntil": "2026-10-01",
  • "optOutApproval": "reportingManager",
  • "departmentIds": [
    ],
  • "locationIds": [
    ],
  • "jobPositionIds": [
    ],
  • "exemptEmployeeIds": [
    ],
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "status": "draft"
}

Replace a company closure

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

If-Match
required
string

ETag of the representation being modified (optimistic locking). A stale value yields 412.

Request Body schema: application/json
required
name
required
string [ 1 .. 100 ] characters
firstDay
required
string <date> (Date)
lastDay
required
string <date> (Date)

Not before firstDay.

reason
required
string [ 1 .. 500 ] characters

Told to the employees with their booked days.

note
string or null <= 1000 characters

For HR, such as the works council's agreement.

payment
string
Default: "vacation"
Enum: "vacation" "company" "workingTimeAccount"

Who pays the days: taken from vacation days, given by the company, or taken from the working-time account.

shortfall
string
Default: "negativeBalance"
Enum: "negativeBalance" "unpaid" "workingTimeAccount"

What happens to days the vacation balance does not cover under payment vacation.

Date (string) or null

Until when employees may ask to work instead; not after firstDay. Null when nobody may.

optOutApproval
string
Default: "reportingManager"
Enum: "reportingManager" "none"

Whether working instead needs the reporting manager's approval.

departmentIds
Array of strings <uuid> (Uuid) [ items <uuid > ]

Departments (with sub-departments) whose people the closure covers; with all scope lists empty, the whole company.

locationIds
Array of strings <uuid> (Uuid) [ items <uuid > ]

Locations; combined with the other dimensions as for restricted periods.

jobPositionIds
Array of strings <uuid> (Uuid) [ items <uuid > ]

Job positions; combined with the other dimensions as for restricted periods.

exemptEmployeeIds
Array of strings <uuid> (Uuid) [ items <uuid > ]

Employees the closure leaves out.

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "firstDay": "2026-10-01",
  • "lastDay": "2026-10-01",
  • "reason": "string",
  • "note": "string",
  • "payment": "vacation",
  • "shortfall": "negativeBalance",
  • "optOutUntil": "2026-10-01",
  • "optOutApproval": "reportingManager",
  • "departmentIds": [
    ],
  • "locationIds": [
    ],
  • "jobPositionIds": [
    ],
  • "exemptEmployeeIds": [
    ]
}

Response samples

Content type
application/json
{
  • "name": "string",
  • "firstDay": "2026-10-01",
  • "lastDay": "2026-10-01",
  • "reason": "string",
  • "note": "string",
  • "payment": "vacation",
  • "shortfall": "negativeBalance",
  • "optOutUntil": "2026-10-01",
  • "optOutApproval": "reportingManager",
  • "departmentIds": [
    ],
  • "locationIds": [
    ],
  • "jobPositionIds": [
    ],
  • "exemptEmployeeIds": [
    ],
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "status": "draft"
}

Publish a company closure

Publishes a draft and books its days, in the background, as approved leave for everyone it covers who is employed during it, of the active leave type for the payment; days another request holds are left out. 422 noLeaveType on payment when the company keeps no such type; 409 when the closure is no draft.

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

If-Match
required
string

ETag of the representation being modified (optimistic locking). A stale value yields 412.

Responses

Response samples

Content type
application/json
{
  • "name": "string",
  • "firstDay": "2026-10-01",
  • "lastDay": "2026-10-01",
  • "reason": "string",
  • "note": "string",
  • "payment": "vacation",
  • "shortfall": "negativeBalance",
  • "optOutUntil": "2026-10-01",
  • "optOutApproval": "reportingManager",
  • "departmentIds": [
    ],
  • "locationIds": [
    ],
  • "jobPositionIds": [
    ],
  • "exemptEmployeeIds": [
    ],
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "status": "draft"
}

Cancel a company closure

Cancels a draft or a published closure. The days of a published one are given back from today on, in the background; earlier days stay taken. 409 when the closure is cancelled already.

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

If-Match
required
string

ETag of the representation being modified (optimistic locking). A stale value yields 412.

Responses

Response samples

Content type
application/json
{
  • "name": "string",
  • "firstDay": "2026-10-01",
  • "lastDay": "2026-10-01",
  • "reason": "string",
  • "note": "string",
  • "payment": "vacation",
  • "shortfall": "negativeBalance",
  • "optOutUntil": "2026-10-01",
  • "optOutApproval": "reportingManager",
  • "departmentIds": [
    ],
  • "locationIds": [
    ],
  • "jobPositionIds": [
    ],
  • "exemptEmployeeIds": [
    ],
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "status": "draft"
}

List the shortfalls of a company closure

The employees whose vacation balance did not cover the days booked for the closure, with the days it lacked and what was done with them. Visible to HR.

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
query Parameters
page
integer >= 1
Default: 1
perPage
integer [ 1 .. 200 ]
Default: 50
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ],
  • "meta": {
    }
}

List whose leave year the company closures take too much of

The employees with days of the closure whose company closures take more than 60 percent of the entitlement (brought forward and entitled) of the vacation type in the leave year of the closure's first day. A warning only; nothing is blocked. Visible to HR.

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
query Parameters
page
integer >= 1
Default: 1
perPage
integer [ 1 .. 200 ]
Default: 50
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ],
  • "meta": {
    }
}

List the requests to work during a company closure

HR sees every request, a manager those of the people in their scope.

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
query Parameters
page
integer >= 1
Default: 1
perPage
integer [ 1 .. 200 ]
Default: 50
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ],
  • "meta": {
    }
}

Ask to work during a company closure

An employee asks for days of a published closure until its optOutUntil (422 optOutDeadline after it); their reporting manager decides as subject closureOptOut unless the closure has optOutApproval none. A manager in scope or HR enters it for an employee (employeeId) until the days, approved at once. Approved days are given back and become working days. 422 outsideClosure for days outside the closure, overlap for days of another active request to work instead.

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Idempotency-Key
string <uuid>

Client-generated key (UUID) making a POST safe to retry. A repeated key with an identical body returns the original response; with a different body it yields 422. While the first request with the key still runs, a repetition yields 409 (idempotency-request-in-progress) and does nothing; after a server error the key is free again.

Request Body schema: application/json
required
employeeId
string <uuid> (Uuid)

For a manager in scope or HR entering it for somebody; the caller when left out.

fromDate
required
string <date> (Date)
toDate
required
string <date> (Date)
comment
string or null <= 500 characters

Responses

Request samples

Content type
application/json
{
  • "employeeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "fromDate": "2026-10-01",
  • "toDate": "2026-10-01",
  • "comment": "string"
}

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "closureId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "employee": {
    },
  • "fromDate": "2026-10-01",
  • "toDate": "2026-10-01",
  • "comment": "string",
  • "status": "pending"
}

Withdraw a request to work during a company closure

A pending request at any time; an approved one by the employee until the closure's optOutUntil, by HR before its days. The days are booked again. 409 when it can no longer be withdrawn.

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "closureId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "employee": {
    },
  • "fromDate": "2026-10-01",
  • "toDate": "2026-10-01",
  • "comment": "string",
  • "status": "pending"
}

List the company closures that cover me

The published closures that cover the caller, with the days booked for them and their requests to work instead.

Authorizations:
bearerAuthsessionCookie
query Parameters
page
integer >= 1
Default: 1
perPage
integer [ 1 .. 200 ]
Default: 50
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ],
  • "meta": {
    }
}

Get absences of a period for own, team, department or company

Colleagues see "absent" (no type, category or reason), except approved training, which carries the category education; limited by the company setting colleagueAbsenceVisibility. Managers in scope see leave types and sickness as sickness only when managerSeesSickness is on; HR sees everything. anyEmployee access therefore returns no work data beyond absent, training and present.

Authorizations:
bearerAuthsessionCookie
query Parameters
from
required
string <date> (Date)
Examples: from=2026-10-01

Inclusive start; the period is at most 366 days.

to
required
string <date> (Date)
Examples: to=2026-10-01

Inclusive end.

scope
string (ListScope)
Default: "self"
Enum: "self" "team" "company"

self: the caller. team: a manager with the reports in scope; for an employee without reports the employee and the colleagues of the same manager. company: what the caller may see; HR sees everybody. Narrowed to what the caller may see; colleagues see "absent", or training as education, within colleagueAbsenceVisibility.

departmentId
string <uuid> (Uuid)
Examples: departmentId=0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

HR only; default is the caller's department.

header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/json
{
  • "from": "2026-10-01",
  • "to": "2026-10-01",
  • "scope": "self",
  • "availableScopes": [
    ],
  • "people": [
    ],
  • "items": [
    ],
  • "staffing": [
    ]
}

List my iCal feed tokens

Authorizations:
bearerAuthsessionCookie
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

Create an iCal feed token

Authorizations:
bearerAuthsessionCookie
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Idempotency-Key
string <uuid>

Client-generated key (UUID) making a POST safe to retry. A repeated key with an identical body returns the original response; with a different body it yields 422. While the first request with the key still runs, a repetition yields 409 (idempotency-request-in-progress) and does nothing; after a server error the key is free again.

Request Body schema: application/json
required
scope
required
string
Enum: "self" "team" "colleagues" "company" "publicHolidays"

Feed kind: self (own absences), team (a manager's reports, detailed), colleagues (absent-only within colleagueAbsenceVisibility), company (HR, detailed), publicHolidays (holidays of the owner's location).

label
string <= 100 characters

Responses

Request samples

Content type
application/json
{
  • "scope": "self",
  • "label": "string"
}

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "scope": "self",
  • "label": "string",
  • "createdAt": "2026-10-01T08:15:00+02:00",
  • "lastUsedAt": "2026-10-01T08:15:00+02:00",
  • "token": "string",
  • "feedUrl": "http://example.com"
}

Revoke an iCal feed token

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/problem+json
{
  • "type": "../dictionary",
  • "title": "string",
  • "status": 0,
  • "detail": "string",
  • "instance": "../dictionary",
  • "code": 0,
  • "correlationId": "string",
  • "violations": [
    ],
  • "dependents": [
    ]
}

Fetch the iCal absence feed

Public: no login, the secret token is the credential. Detail follows the current rights of the token owner, with the same visibility rules as the calendar (managerSeesSickness, colleagueAbsenceVisibility); texts use the owner saved language. Unknown or revoked tokens answer 404.

path Parameters
token
required
string

Secret feed token.

Responses

Response samples

Content type
application/problem+json
{
  • "type": "../dictionary",
  • "title": "string",
  • "status": 0,
  • "detail": "string",
  • "instance": "../dictionary",
  • "code": 0,
  • "correlationId": "string",
  • "violations": [
    ],
  • "dependents": [
    ]
}

Dashboard

My vacation summary

Remaining, planned and pending vacation and entries expiring within 90 days, in days or hours as the leave policy's unit says.

Authorizations:
bearerAuthsessionCookie
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/json
{
  • "unit": "days",
  • "leaveTypeName": "string",
  • "remaining": {
    },
  • "planned": {
    },
  • "pending": {
    },
  • "expiringSoon": [
    ]
}

My upcoming absences

Own approved and pending absences within the horizon.

Authorizations:
bearerAuthsessionCookie
query Parameters
horizonDays
integer [ 7 .. 365 ]
Default: 60

Look-ahead in days.

header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/json
{
  • "horizonDays": 0,
  • "items": [
    ]
}

My leave balances

The balance figures of every leave account the caller holds, in the unit of each policy, for the leave year that contains today.

Authorizations:
bearerAuthsessionCookie
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/json
{
  • "date": "2026-10-01",
  • "items": [
    ]
}

My leave requests

The caller's last 10 leave requests, newest first, with leave type, days (half days 0.5) and status. It serves only the caller; any parameter is answered with 400.

Authorizations:
bearerAuthsessionCookie
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

My absence history

The caller's absence days per month and category of the last 12 months, the current month included, and their last 10 absences that have begun. It serves only the caller; an employeeId parameter is answered with 400.

Authorizations:
bearerAuthsessionCookie
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/json
{
  • "from": "2026-10-01",
  • "to": "2026-10-01",
  • "months": [
    ],
  • "lastAbsences": [
    ]
}

Team absences of a week

Absences of the scope in the week starting at weekStart. Scope rules as getDashboardTeamPresence.

Authorizations:
bearerAuthsessionCookie
query Parameters
scope
string
Default: "team"
Enum: "team" "company"

team returns the caller's reports (managers); company returns everybody (HR only, otherwise 403).

weekStart
string <date> (Date)
Examples: weekStart=2026-10-01

Monday of the week; defaults to the current week.

header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/json
{
  • "weekStart": "2026-10-01",
  • "items": [
    ]
}

Attendance of the team in a week and the next

The attendance view of getAbsenceCalendar with scope team for a week and the next, Monday to Sunday, at the same detail; the current week and the next unless weekStart is given.

Authorizations:
bearerAuthsessionCookie
query Parameters
weekStart
string <date> (Date)
Examples: weekStart=2026-10-01

A day of the first week, which starts on its Monday; defaults to the current week.

header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/json
{
  • "from": "2026-10-01",
  • "to": "2026-10-01",
  • "scope": "self",
  • "availableScopes": [
    ],
  • "people": [
    ],
  • "items": [
    ],
  • "staffing": [
    ]
}

Overdue sickness certificates

Sickness reports whose certificate is overdue. No diagnosis is ever contained.

Authorizations:
bearerAuthsessionCookie
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/json
{
  • "totalCount": 0,
  • "items": [
    ]
}

Expiring leave reminders due

Employees with leave expiring within the horizon, and whether the reminder is due.

Authorizations:
bearerAuthsessionCookie
query Parameters
horizonDays
integer [ 7 .. 365 ]
Default: 60

Look-ahead in days.

header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/json
{
  • "horizonDays": 0,
  • "totalCount": 0,
  • "items": [
    ]
}

Leave key figures

Pending leave and allocation requests, the approved absence days of the period and the people absent today. The period is the current month unless given, and at most 366 days long.

Authorizations:
bearerAuthsessionCookie
query Parameters
from
string <date> (Date)
Examples: from=2026-10-01

Inclusive start date of the period.

to
string <date> (Date)
Examples: to=2026-10-01

Inclusive end date of the period.

header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/json
{
  • "from": "2026-10-01",
  • "to": "2026-10-01",
  • "pendingLeaveRequests": 0,
  • "pendingAllocationRequests": 0,
  • "approvedAbsenceDays": 0,
  • "absentToday": 0
}

Absence trend

Absence days per month and category of the last 12 months, the current month included.

Authorizations:
bearerAuthsessionCookie
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/json
{
  • "from": "2026-10-01",
  • "to": "2026-10-01",
  • "items": [
    ]
}

Absences by department

Absence days per department in the period (the current month unless given, at most 366 days), each employee in the department of the last day of the period or today, whichever is earlier.

Authorizations:
bearerAuthsessionCookie
query Parameters
from
string <date> (Date)
Examples: from=2026-10-01

Inclusive start date of the period.

to
string <date> (Date)
Examples: to=2026-10-01

Inclusive end date of the period.

header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/json
{
  • "from": "2026-10-01",
  • "to": "2026-10-01",
  • "items": [
    ]
}

Leave type distribution

Absence days per leave type in the period (the current month unless given, at most 366 days), with the totals by payroll classification.

Authorizations:
bearerAuthsessionCookie
query Parameters
from
string <date> (Date)
Examples: from=2026-10-01

Inclusive start date of the period.

to
string <date> (Date)
Examples: to=2026-10-01

Inclusive end date of the period.

header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/json
{
  • "from": "2026-10-01",
  • "to": "2026-10-01",
  • "items": [
    ],
  • "totals": {
    }
}

Leave utilisation

Used against entitled days of the ledger types in days per department, in the leave year that contains today; accounts kept in hours are not included.

Authorizations:
bearerAuthsessionCookie
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/json
{
  • "date": "2026-10-01",
  • "items": [
    ]
}

Absence weekday pattern

Absence days per weekday in the period (the current month unless given, at most 366 days), sickness and sick-child days excluded; those appear only in the aggregated sickness report.

Authorizations:
bearerAuthsessionCookie
query Parameters
from
string <date> (Date)
Examples: from=2026-10-01

Inclusive start date of the period.

to
string <date> (Date)
Examples: to=2026-10-01

Inclusive end date of the period.

header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/json
{
  • "from": "2026-10-01",
  • "to": "2026-10-01",
  • "items": [
    ]
}

Top absence days

The 10 employees with the most absence days in the period (the current month unless given, at most 366 days), sickness and sick-child days excluded.

Authorizations:
bearerAuthsessionCookie
query Parameters
from
string <date> (Date)
Examples: from=2026-10-01

Inclusive start date of the period.

to
string <date> (Date)
Examples: to=2026-10-01

Inclusive end date of the period.

header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/json
{
  • "from": "2026-10-01",
  • "to": "2026-10-01",
  • "items": [
    ]
}