adsum API, payroll package (1.0.0)

Download OpenAPI specification:

License: GPL-2.0-or-later

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

Payroll

Contracts and payroll profiles, pay components and salary structures, tax profiles, pay runs and payslips, loans, claims, final settlements, the payroll configuration and imports.

List the contracts of the company

Filtered by employee, status (including the computed ended), wage type, pay frequency, department (on today) and end date range; sorted by an allow-listed field. HR only; an administrator without HR gets 403.

Authorizations:
bearerAuthsessionCookie
query Parameters
employeeId
string <uuid>

Only the contracts of this employee.

status
string
Enum: "draft" "active" "ended" "terminated"

Only contracts with this status as readers see it.

wageType
string
Enum: "monthly" "daily" "hourly"

Only contracts with this wage type.

payFrequency
string
Enum: "monthly" "semiMonthly" "weekly"

Only contracts paid this often.

departmentId
string <uuid>

Only contracts of employees in this department today.

endDateFrom
string <date>

Only contracts ending on or after this day.

endDateTo
string <date>

Only contracts ending on or before this day.

sort
string
Enum: "startDate" "-startDate" "endDate" "-endDate" "name" "-name" "employee" "-employee"

The order; - for descending. Default employee.

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 a contract

Always a draft. It lies within the employment (422 on startDate before the entry date or after a scheduled exit), an employee has at most one draft (422 on employeeId), the notice period defaults to the configuration. Amounts are integers of minor units: a decimal amount answers 400. An hourly wage needs attendance data (422 on wageType). HR never creates their own contract (403).

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
required
string <uuid> (Uuid)
name
required
string [ 1 .. 190 ] characters
startDate
required
string <date> (Date)
Date (string) or null
WageType (string) or null
MinorUnits (integer) or null
payFrequency
string (PayFrequency)
Enum: "monthly" "semiMonthly" "weekly"
Uuid (string) or null
Uuid (string) or null
leaveDeductionBasis
string (LeaveDeductionBasis)
Enum: "dailyRate" "fixedPerDay"
MinorUnits (integer) or null
deductLeaveFromBasicPay
boolean
noticePeriodDays
integer [ 0 .. 730 ]
note
string or null <= 5000 characters

Responses

Request samples

Content type
application/json
{
  • "employeeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "name": "string",
  • "startDate": "2026-10-01",
  • "endDate": "2026-10-01",
  • "wageType": "monthly",
  • "wageAmount": 0,
  • "payFrequency": "monthly",
  • "taxProfileId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "salaryStructureId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "leaveDeductionBasis": "dailyRate",
  • "leaveDeductionPerDay": 0,
  • "deductLeaveFromBasicPay": true,
  • "noticePeriodDays": 0,
  • "note": "string"
}

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "employee": {
    },
  • "name": "string",
  • "startDate": "2026-10-01",
  • "endDate": "2026-10-01",
  • "status": "draft",
  • "statusLabel": "string",
  • "wageType": "monthly",
  • "wage": {
    },
  • "payFrequency": "monthly",
  • "taxProfile": {
    },
  • "salaryStructure": {
    },
  • "leaveDeductionBasis": "dailyRate",
  • "leaveDeductionPerDay": {
    },
  • "deductLeaveFromBasicPay": true,
  • "noticePeriodDays": 0,
  • "note": "string",
  • "terminationReason": "string",
  • "documents": [
    ],
  • "createdAt": "2026-10-01T08:15:00+02:00",
  • "updatedAt": "2026-10-01T08:15:00+02:00",
  • "allowedActions": [
    ]
}

Read a contract

The employee concerned and HR read it; anybody else gets 404. status is ended for an active contract whose end date lies before today; the note is HR-internal and left out for the employee.

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

A contract of the company.

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",
  • "employee": {
    },
  • "name": "string",
  • "startDate": "2026-10-01",
  • "endDate": "2026-10-01",
  • "status": "draft",
  • "statusLabel": "string",
  • "wageType": "monthly",
  • "wage": {
    },
  • "payFrequency": "monthly",
  • "taxProfile": {
    },
  • "salaryStructure": {
    },
  • "leaveDeductionBasis": "dailyRate",
  • "leaveDeductionPerDay": {
    },
  • "deductLeaveFromBasicPay": true,
  • "noticePeriodDays": 0,
  • "note": "string",
  • "terminationReason": "string",
  • "documents": [
    ],
  • "createdAt": "2026-10-01T08:15:00+02:00",
  • "updatedAt": "2026-10-01T08:15:00+02:00",
  • "allowedActions": [
    ]
}

Change a contract

Only the sent fields change. The wage terms of an active contract change only while it has no confirmed payslip; a raise after that is a new contract (409). Overlaps with another contract that is not a draft answer 422 on startDate. HR never changes their own contract (403).

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

A contract of the company.

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
string [ 1 .. 190 ] characters
startDate
string <date> (Date)
Date (string) or null
WageType (string) or null
MinorUnits (integer) or null
payFrequency
string (PayFrequency)
Enum: "monthly" "semiMonthly" "weekly"
Uuid (string) or null
Uuid (string) or null
leaveDeductionBasis
string (LeaveDeductionBasis)
Enum: "dailyRate" "fixedPerDay"
MinorUnits (integer) or null
deductLeaveFromBasicPay
boolean
noticePeriodDays
integer [ 0 .. 730 ]
note
string or null <= 5000 characters

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "startDate": "2026-10-01",
  • "endDate": "2026-10-01",
  • "wageType": "monthly",
  • "wageAmount": 0,
  • "payFrequency": "monthly",
  • "taxProfileId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "salaryStructureId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "leaveDeductionBasis": "dailyRate",
  • "leaveDeductionPerDay": 0,
  • "deductLeaveFromBasicPay": true,
  • "noticePeriodDays": 0,
  • "note": "string"
}

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "employee": {
    },
  • "name": "string",
  • "startDate": "2026-10-01",
  • "endDate": "2026-10-01",
  • "status": "draft",
  • "statusLabel": "string",
  • "wageType": "monthly",
  • "wage": {
    },
  • "payFrequency": "monthly",
  • "taxProfile": {
    },
  • "salaryStructure": {
    },
  • "leaveDeductionBasis": "dailyRate",
  • "leaveDeductionPerDay": {
    },
  • "deductLeaveFromBasicPay": true,
  • "noticePeriodDays": 0,
  • "note": "string",
  • "terminationReason": "string",
  • "documents": [
    ],
  • "createdAt": "2026-10-01T08:15:00+02:00",
  • "updatedAt": "2026-10-01T08:15:00+02:00",
  • "allowedActions": [
    ]
}

Delete a draft contract

Only drafts are deleted; a contract that is not a draft or has a payslip answers 409.

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

A contract of the company.

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": [
    ]
}

Activate a draft contract

Needs complete wage terms (422 on wageAmount or wageType) and no overlap with another contract that is not a draft (422 on startDate). Publishes ContractActivated; the employee record does not change.

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

A contract of the company.

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",
  • "employee": {
    },
  • "name": "string",
  • "startDate": "2026-10-01",
  • "endDate": "2026-10-01",
  • "status": "draft",
  • "statusLabel": "string",
  • "wageType": "monthly",
  • "wage": {
    },
  • "payFrequency": "monthly",
  • "taxProfile": {
    },
  • "salaryStructure": {
    },
  • "leaveDeductionBasis": "dailyRate",
  • "leaveDeductionPerDay": {
    },
  • "deductLeaveFromBasicPay": true,
  • "noticePeriodDays": 0,
  • "note": "string",
  • "terminationReason": "string",
  • "documents": [
    ],
  • "createdAt": "2026-10-01T08:15:00+02:00",
  • "updatedAt": "2026-10-01T08:15:00+02:00",
  • "allowedActions": [
    ]
}

Terminate an active contract

With an end date not before the end of the latest confirmed payslip period (422 on endDate) and a reason. Publishes ContractTerminated.

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

A contract of the company.

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)
reason
required
string [ 1 .. 500 ] characters

Responses

Request samples

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

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "employee": {
    },
  • "name": "string",
  • "startDate": "2026-10-01",
  • "endDate": "2026-10-01",
  • "status": "draft",
  • "statusLabel": "string",
  • "wageType": "monthly",
  • "wage": {
    },
  • "payFrequency": "monthly",
  • "taxProfile": {
    },
  • "salaryStructure": {
    },
  • "leaveDeductionBasis": "dailyRate",
  • "leaveDeductionPerDay": {
    },
  • "deductLeaveFromBasicPay": true,
  • "noticePeriodDays": 0,
  • "note": "string",
  • "terminationReason": "string",
  • "documents": [
    ],
  • "createdAt": "2026-10-01T08:15:00+02:00",
  • "updatedAt": "2026-10-01T08:15:00+02:00",
  • "allowedActions": [
    ]
}

Activate or terminate several contracts

Each contract is validated on its own; the answer lists the result per contract, with the violations of those that did not change.

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
action
required
string
Enum: "activate" "terminate"
contractIds
required
Array of strings <uuid> (Uuid) [ 1 .. 100 ] items [ items <uuid > ]
endDate
string <date> (Date)
reason
string [ 1 .. 500 ] characters

Responses

Request samples

Content type
application/json
{
  • "action": "activate",
  • "contractIds": [
    ],
  • "endDate": "2026-10-01",
  • "reason": "string"
}

Response samples

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

Attach a document to a contract

A file uploaded with the purpose contractDocument; at most 5 per contract (422 on fileId).

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

A contract of the company.

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
fileId
required
string <uuid> (Uuid)

Responses

Request samples

Content type
application/json
{
  • "fileId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
}

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "employee": {
    },
  • "name": "string",
  • "startDate": "2026-10-01",
  • "endDate": "2026-10-01",
  • "status": "draft",
  • "statusLabel": "string",
  • "wageType": "monthly",
  • "wage": {
    },
  • "payFrequency": "monthly",
  • "taxProfile": {
    },
  • "salaryStructure": {
    },
  • "leaveDeductionBasis": "dailyRate",
  • "leaveDeductionPerDay": {
    },
  • "deductLeaveFromBasicPay": true,
  • "noticePeriodDays": 0,
  • "note": "string",
  • "terminationReason": "string",
  • "documents": [
    ],
  • "createdAt": "2026-10-01T08:15:00+02:00",
  • "updatedAt": "2026-10-01T08:15:00+02:00",
  • "allowedActions": [
    ]
}

Download a document of a contract

The employee concerned and HR; anybody else gets 404.

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

A contract of the company.

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

A document of the contract.

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": [
    ]
}

Remove a document from a contract

Deletes the stored file.

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

A contract of the company.

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

A document of the contract.

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 contracts of an employee

For the payroll tab of the employee record: the employee and HR; anybody else gets 404. Newest first.

Authorizations:
bearerAuthsessionCookie
path Parameters
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.

Responses

Response samples

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

Read the payroll profile of an employee

Personal data: the employee and HR; anybody else, managers included, gets 404. Defaults (no children, no marital status, no prior experience) until HR changes it.

Authorizations:
bearerAuthsessionCookie
path Parameters
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.

Responses

Response samples

Content type
application/json
{
  • "employee": {
    },
  • "dependentChildren": 0,
  • "maritalStatus": "single",
  • "priorExperienceMonths": 0
}

Replace the payroll profile of an employee

Dependent children 0 to 20, marital status or null, prior experience in months before the entry date. HR never changes their own profile (403).

Authorizations:
bearerAuthsessionCookie
path Parameters
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.

If-Match
required
string

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

Request Body schema: application/json
required
dependentChildren
required
integer [ 0 .. 20 ]
required
MaritalStatus (string) or null
priorExperienceMonths
required
integer [ 0 .. 900 ]

Responses

Request samples

Content type
application/json
{
  • "dependentChildren": 0,
  • "maritalStatus": "single",
  • "priorExperienceMonths": 0
}

Response samples

Content type
application/json
{
  • "employee": {
    },
  • "dependentChildren": 0,
  • "maritalStatus": "single",
  • "priorExperienceMonths": 0
}

List the pay components

Filtered by kind, active state and code or title; HR only. Archived components are listed with archived=true.

Authorizations:
bearerAuthsessionCookie
query Parameters
kind
string
Enum: "earning" "deduction"

Only earnings or deductions.

archived
string
Enum: "true" "false"

With archived=true only archived components, otherwise only the others.

search
string

Part of the code or a title.

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 a pay component

A new component targets specific employees and nobody until HR says otherwise. The code is unique per company (422 on code), a basis must be known at the stage of the component (422 on basis), a condition names a known field and an operator of its type (422 on conditions[n].field). Amounts are integers of minor units, a decimal amount answers 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.

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
code
required
string [ 1 .. 40 ] characters
required
object (LocalisedText) non-empty

Text maintained per supported language. Readers receive it resolved to their language (fallback en, then the first available); writers send the full map.

kind
required
string
Enum: "earning" "deduction"
deductionKind
string or null
Enum: "preTax" "tax" "postTax" "basicPay" "grossPay" "netPay" null

Deductions only; pre-tax by default.

taxable
boolean

Earnings only; taxable by default.

Date (string) or null
hideWhenZero
boolean
active
boolean
basis
required
string

A basis of the basis registry, such as fixed or percentOfBasicPay.

basisParameters
object

The parameters the basis reads: amount (minor units), rate (basis points), halfDays, componentIds, shiftId, workTypeId, dayClass (workingDay, weekOff, holiday) and surcharge (night, sunday, holiday).

MinorUnits (integer) or null
applicability
object or null

on (basicPay, grossPay) with operator and amount, or with from and to, both inclusive.

employerRate
integer or null

Deductions only, in basis points of the same basis.

targeting
string
Enum: "allEmployees" "specificEmployees" "salaryStructure" "conditions"
employeeIds
Array of strings <uuid> (Uuid) [ items <uuid > ]

The employees targeted with specificEmployees.

Array of objects (PayComponentCondition)

All must hold at the period end date; used with conditions.

Responses

Request samples

Content type
application/json
{
  • "code": "string",
  • "titles": {
    },
  • "kind": "earning",
  • "deductionKind": "preTax",
  • "taxable": true,
  • "oneTimeDate": "2026-10-01",
  • "hideWhenZero": true,
  • "active": true,
  • "basis": "string",
  • "basisParameters": { },
  • "maximumAmount": 0,
  • "applicability": { },
  • "employerRate": 0,
  • "targeting": "allEmployees",
  • "employeeIds": [
    ],
  • "conditions": [
    ]
}

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "code": "string",
  • "title": "string",
  • "titles": {
    },
  • "kind": "earning",
  • "deductionKind": "string",
  • "taxable": true,
  • "oneTimeDate": "2026-10-01",
  • "hideWhenZero": true,
  • "active": true,
  • "archived": true,
  • "targeting": "string",
  • "employeeIds": [
    ],
  • "excludedEmployeeIds": [
    ],
  • "conditions": [
    ],
  • "basis": "string",
  • "basisParameters": { },
  • "maximumAmount": {
    },
  • "applicability": { },
  • "employerRate": 0,
  • "createdAt": "2019-08-24T14:15:22Z",
  • "allowedActions": [
    ]
}

Read a pay component

HR only.

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

A pay component of the company.

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",
  • "code": "string",
  • "title": "string",
  • "titles": {
    },
  • "kind": "earning",
  • "deductionKind": "string",
  • "taxable": true,
  • "oneTimeDate": "2026-10-01",
  • "hideWhenZero": true,
  • "active": true,
  • "archived": true,
  • "targeting": "string",
  • "employeeIds": [
    ],
  • "excludedEmployeeIds": [
    ],
  • "conditions": [
    ],
  • "basis": "string",
  • "basisParameters": { },
  • "maximumAmount": {
    },
  • "applicability": { },
  • "employerRate": 0,
  • "createdAt": "2019-08-24T14:15:22Z",
  • "allowedActions": [
    ]
}

Replace a pay component

Applies to payslips calculated afterwards; confirmed payslips keep their snapshot. The kind and the code of a component used on a confirmed payslip stay as they are.

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

A pay component of the company.

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
code
required
string [ 1 .. 40 ] characters
required
object (LocalisedText) non-empty

Text maintained per supported language. Readers receive it resolved to their language (fallback en, then the first available); writers send the full map.

kind
required
string
Enum: "earning" "deduction"
deductionKind
string or null
Enum: "preTax" "tax" "postTax" "basicPay" "grossPay" "netPay" null

Deductions only; pre-tax by default.

taxable
boolean

Earnings only; taxable by default.

Date (string) or null
hideWhenZero
boolean
active
boolean
basis
required
string

A basis of the basis registry, such as fixed or percentOfBasicPay.

basisParameters
object

The parameters the basis reads: amount (minor units), rate (basis points), halfDays, componentIds, shiftId, workTypeId, dayClass (workingDay, weekOff, holiday) and surcharge (night, sunday, holiday).

MinorUnits (integer) or null
applicability
object or null

on (basicPay, grossPay) with operator and amount, or with from and to, both inclusive.

employerRate
integer or null

Deductions only, in basis points of the same basis.

targeting
string
Enum: "allEmployees" "specificEmployees" "salaryStructure" "conditions"
employeeIds
Array of strings <uuid> (Uuid) [ items <uuid > ]

The employees targeted with specificEmployees.

Array of objects (PayComponentCondition)

All must hold at the period end date; used with conditions.

Responses

Request samples

Content type
application/json
{
  • "code": "string",
  • "titles": {
    },
  • "kind": "earning",
  • "deductionKind": "preTax",
  • "taxable": true,
  • "oneTimeDate": "2026-10-01",
  • "hideWhenZero": true,
  • "active": true,
  • "basis": "string",
  • "basisParameters": { },
  • "maximumAmount": 0,
  • "applicability": { },
  • "employerRate": 0,
  • "targeting": "allEmployees",
  • "employeeIds": [
    ],
  • "conditions": [
    ]
}

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "code": "string",
  • "title": "string",
  • "titles": {
    },
  • "kind": "earning",
  • "deductionKind": "string",
  • "taxable": true,
  • "oneTimeDate": "2026-10-01",
  • "hideWhenZero": true,
  • "active": true,
  • "archived": true,
  • "targeting": "string",
  • "employeeIds": [
    ],
  • "excludedEmployeeIds": [
    ],
  • "conditions": [
    ],
  • "basis": "string",
  • "basisParameters": { },
  • "maximumAmount": {
    },
  • "applicability": { },
  • "employerRate": 0,
  • "createdAt": "2019-08-24T14:15:22Z",
  • "allowedActions": [
    ]
}

Delete a pay component

A component that appears on a confirmed payslip answers 409; archive it instead.

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

A pay component of the company.

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": [
    ]
}

Archive a pay component

An archived component is inactive and applies to no payslip calculated afterwards; it stays on the payslips that have it.

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

A pay component of the company.

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",
  • "code": "string",
  • "title": "string",
  • "titles": {
    },
  • "kind": "earning",
  • "deductionKind": "string",
  • "taxable": true,
  • "oneTimeDate": "2026-10-01",
  • "hideWhenZero": true,
  • "active": true,
  • "archived": true,
  • "targeting": "string",
  • "employeeIds": [
    ],
  • "excludedEmployeeIds": [
    ],
  • "conditions": [
    ],
  • "basis": "string",
  • "basisParameters": { },
  • "maximumAmount": {
    },
  • "applicability": { },
  • "employerRate": 0,
  • "createdAt": "2019-08-24T14:15:22Z",
  • "allowedActions": [
    ]
}

Exclude an employee from a pay component

The employee gets the component on no payslip, whatever targets them. Excluding twice changes nothing.

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

A pay component of the company.

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
employeeId
required
string <uuid> (Uuid)

Responses

Request samples

Content type
application/json
{
  • "employeeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
}

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "code": "string",
  • "title": "string",
  • "titles": {
    },
  • "kind": "earning",
  • "deductionKind": "string",
  • "taxable": true,
  • "oneTimeDate": "2026-10-01",
  • "hideWhenZero": true,
  • "active": true,
  • "archived": true,
  • "targeting": "string",
  • "employeeIds": [
    ],
  • "excludedEmployeeIds": [
    ],
  • "conditions": [
    ],
  • "basis": "string",
  • "basisParameters": { },
  • "maximumAmount": {
    },
  • "applicability": { },
  • "employerRate": 0,
  • "createdAt": "2019-08-24T14:15:22Z",
  • "allowedActions": [
    ]
}

List the salary structures

HR only.

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 a salary structure

The name is unique per company (422 on names); the components are pay components of the company (422 on componentIds).

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

Text maintained per supported language. Readers receive it resolved to their language (fallback en, then the first available); writers send the full map.

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

Responses

Request samples

Content type
application/json
{
  • "names": {
    },
  • "componentIds": [
    ]
}

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "name": "string",
  • "names": {
    },
  • "componentIds": [
    ],
  • "components": [
    ],
  • "contractCount": 0,
  • "createdAt": "2019-08-24T14:15:22Z",
  • "allowedActions": [
    ]
}

Read a salary structure

HR only.

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

A salary structure of the company.

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",
  • "name": "string",
  • "names": {
    },
  • "componentIds": [
    ],
  • "components": [
    ],
  • "contractCount": 0,
  • "createdAt": "2019-08-24T14:15:22Z",
  • "allowedActions": [
    ]
}

Replace a salary structure

The components reach the contracts assigned to it with the next calculation of their drafts.

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

A salary structure of the company.

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

Text maintained per supported language. Readers receive it resolved to their language (fallback en, then the first available); writers send the full map.

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

Responses

Request samples

Content type
application/json
{
  • "names": {
    },
  • "componentIds": [
    ]
}

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "name": "string",
  • "names": {
    },
  • "componentIds": [
    ],
  • "components": [
    ],
  • "contractCount": 0,
  • "createdAt": "2019-08-24T14:15:22Z",
  • "allowedActions": [
    ]
}

Delete a salary structure

A structure assigned to a contract answers 409.

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

A salary structure of the company.

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": [
    ]
}

Duplicate a salary structure

The copy has the same components and no contracts.

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

A salary structure of the company.

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
required
object (LocalisedText) non-empty

Text maintained per supported language. Readers receive it resolved to their language (fallback en, then the first available); writers send the full map.

Responses

Request samples

Content type
application/json
{
  • "names": {
    }
}

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "name": "string",
  • "names": {
    },
  • "componentIds": [
    ],
  • "components": [
    ],
  • "contractCount": 0,
  • "createdAt": "2019-08-24T14:15:22Z",
  • "allowedActions": [
    ]
}

List the tax calculators

The calculators registered in code, named in the reader's language. HR only.

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": [
    ]
}

List the tax profiles

HR only.

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 a tax profile

The name is unique per company (422 on names), the calculator is registered (422 on calculator) and its brackets are contiguous (422 on the first broken bracket). A body with code, a formula or a script is refused with 400 and nothing is stored.

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

Text maintained per supported language. Readers receive it resolved to their language (fallback en, then the first available); writers send the full map.

description
string or null
taxedAmount
string
Default: "taxableGross"
Enum: "basicPay" "grossPay" "taxableGross"
calculator
string
Default: "bracketTable"

An identifier of listTaxCalculators.

parameters
object

The parameters of the calculator; bracketTable reads mode (marginal or baseAmount).

Array of objects (TaxBracket)

Responses

Request samples

Content type
application/json
{
  • "names": {
    },
  • "description": "string",
  • "taxedAmount": "basicPay",
  • "calculator": "bracketTable",
  • "parameters": { },
  • "brackets": [
    ]
}

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "name": "string",
  • "names": {
    },
  • "description": "string",
  • "taxedAmount": "basicPay",
  • "calculator": "string",
  • "calculatorName": "string",
  • "parameters": { },
  • "brackets": [
    ],
  • "contractCount": 0,
  • "createdAt": "2019-08-24T14:15:22Z",
  • "allowedActions": [
    ]
}

Read a tax profile

HR only.

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

A tax profile of the company.

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",
  • "name": "string",
  • "names": {
    },
  • "description": "string",
  • "taxedAmount": "basicPay",
  • "calculator": "string",
  • "calculatorName": "string",
  • "parameters": { },
  • "brackets": [
    ],
  • "contractCount": 0,
  • "createdAt": "2019-08-24T14:15:22Z",
  • "allowedActions": [
    ]
}

Replace a tax profile

The profile applies to the payslips calculated afterwards.

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

A tax profile of the company.

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

Text maintained per supported language. Readers receive it resolved to their language (fallback en, then the first available); writers send the full map.

description
string or null
taxedAmount
string
Default: "taxableGross"
Enum: "basicPay" "grossPay" "taxableGross"
calculator
string
Default: "bracketTable"

An identifier of listTaxCalculators.

parameters
object

The parameters of the calculator; bracketTable reads mode (marginal or baseAmount).

Array of objects (TaxBracket)

Responses

Request samples

Content type
application/json
{
  • "names": {
    },
  • "description": "string",
  • "taxedAmount": "basicPay",
  • "calculator": "bracketTable",
  • "parameters": { },
  • "brackets": [
    ]
}

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "name": "string",
  • "names": {
    },
  • "description": "string",
  • "taxedAmount": "basicPay",
  • "calculator": "string",
  • "calculatorName": "string",
  • "parameters": { },
  • "brackets": [
    ],
  • "contractCount": 0,
  • "createdAt": "2019-08-24T14:15:22Z",
  • "allowedActions": [
    ]
}

Delete a tax profile

A profile that a contract names answers 409.

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

A tax profile of the company.

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 pay runs of the company

Newest period first, with the payslips of each run. HR only.

Authorizations:
bearerAuthsessionCookie
query Parameters
payFrequency
string (PayFrequency)
Enum: "monthly" "semiMonthly" "weekly"

Only runs of this frequency.

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 a pay run

The period matches the frequency (a calendar month, a half month or an ISO week) and does not end after the current period (422 on periodStart or periodEnd). One draft payslip is calculated per employee whose contract of that frequency covers a day of the period, from the later of the run start and the contract start; the others are listed as skipped with noActiveContract or overlappingPayslip. A repeated Idempotency-Key answers the first response.

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 .. 190 ] characters
payFrequency
required
string (PayFrequency)
Enum: "monthly" "semiMonthly" "weekly"
periodStart
required
string <date> (Date)
periodEnd
required
string <date> (Date)
payDate
required
string <date> (Date)
employeeIds
Array of strings <uuid> (Uuid) [ items <uuid > ]

The employees of the run; without it, every employee with an active contract of the frequency.

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "payFrequency": "monthly",
  • "periodStart": "2026-10-01",
  • "periodEnd": "2026-10-01",
  • "payDate": "2026-10-01",
  • "employeeIds": [
    ]
}

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "name": "string",
  • "payFrequency": "monthly",
  • "periodStart": "2026-10-01",
  • "periodEnd": "2026-10-01",
  • "payDate": "2026-10-01",
  • "origin": "manual",
  • "status": "draft",
  • "currency": "string",
  • "payslipCount": 0,
  • "totals": {
    },
  • "payslips": [
    ],
  • "skipped": [
    ],
  • "createdAt": "2019-08-24T14:15:22Z",
  • "allowedActions": [
    ]
}

Read a pay run

HR only.

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

A pay run of the company.

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",
  • "name": "string",
  • "payFrequency": "monthly",
  • "periodStart": "2026-10-01",
  • "periodEnd": "2026-10-01",
  • "payDate": "2026-10-01",
  • "origin": "manual",
  • "status": "draft",
  • "currency": "string",
  • "payslipCount": 0,
  • "totals": {
    },
  • "payslips": [
    ],
  • "skipped": [
    ],
  • "createdAt": "2019-08-24T14:15:22Z",
  • "allowedActions": [
    ]
}

Change the name or the pay date of a pay run

The period and the frequency do not change.

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

A pay run of the company.

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
non-empty
name
string [ 1 .. 190 ] characters
payDate
string <date> (Date)

Responses

Request samples

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

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "name": "string",
  • "payFrequency": "monthly",
  • "periodStart": "2026-10-01",
  • "periodEnd": "2026-10-01",
  • "payDate": "2026-10-01",
  • "origin": "manual",
  • "status": "draft",
  • "currency": "string",
  • "payslipCount": 0,
  • "totals": {
    },
  • "payslips": [
    ],
  • "skipped": [
    ],
  • "createdAt": "2019-08-24T14:15:22Z",
  • "allowedActions": [
    ]
}

Delete a pay run

Only while every payslip of the run is a draft; otherwise 409. Its draft payslips are deleted with it.

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

A pay run of the company.

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": [
    ]
}

Recalculate the draft payslips of a pay run

Only drafts are recalculated, in place; payslips that are in review, confirmed or paid stay as they are. Employees that now have a contract or no longer overlap get a draft payslip.

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

A pay run of the company.

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",
  • "name": "string",
  • "payFrequency": "monthly",
  • "periodStart": "2026-10-01",
  • "periodEnd": "2026-10-01",
  • "payDate": "2026-10-01",
  • "origin": "manual",
  • "status": "draft",
  • "currency": "string",
  • "payslipCount": 0,
  • "totals": {
    },
  • "payslips": [
    ],
  • "skipped": [
    ],
  • "createdAt": "2019-08-24T14:15:22Z",
  • "allowedActions": [
    ]
}

List what keeps the payslips of a pay run from being confirmed

Calculated again on every call, nothing is stored. Each blocker names the day or the item and links to the screen of the package that decides it; payroll does not decide time or leave items itself. HR only.

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

A pay run of the company.

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
{
  • "payRunId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "ready": true,
  • "payslips": [
    ]
}

Calculate a payslip without storing it

The same calculation as a pay run, for the contract of the employee that covers the period. Returns the lines, totals, the source of each day of time input and the blockers. 422 on periodStart when the period does not match the frequency of the contract, on employeeId when the employee has no contract for the 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.

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

Responses

Request samples

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

Response samples

Content type
application/json
{
  • "employee": {
    },
  • "contractId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "payFrequency": "monthly",
  • "periodStart": "2026-10-01",
  • "periodEnd": "2026-10-01",
  • "currency": "string",
  • "lines": [
    ],
  • "totals": {
    },
  • "inputs": [
    ],
  • "blockers": [
    ]
}

Payroll figures

The data of the widget payroll-kpis: gross, deductions, net and employer cost of the month over confirmed and paid payslips, the payslips per status, the change of net pay against the previous month in basis points (null without one), the open loan balance and the pending claims. A month without payslips gives zeros.

Authorizations:
bearerAuthsessionCookie
query Parameters
month
string^\d{4}-(0[1-9]|1[0-2])$

The month as 2026-10; the current month by default.

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
{
  • "month": "string",
  • "currency": "string",
  • "gross": 0,
  • "deductions": 0,
  • "net": 0,
  • "employerCost": 0,
  • "payslips": {
    },
  • "netChangeBasisPoints": 0,
  • "openLoanBalance": 0,
  • "pendingClaims": 0
}

Payroll trend

The data of the widget payroll-trend: gross, net and employer cost of the six months up to the month.

Authorizations:
bearerAuthsessionCookie
query Parameters
month
string^\d{4}-(0[1-9]|1[0-2])$

The month as 2026-10; the current month by default.

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
{
  • "currency": "string",
  • "items": [
    ]
}

Contracts ending

The data of the widget contracts-ending: contracts ending within 60 days and ended in the last 30.

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
{
  • "ending": [
    ],
  • "ended": [
    ]
}

Payroll readiness

The data of the widget payroll-readiness: the pay runs with payslips that have blockers.

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 latest payslip

The data of the widget my-latest-payslip: the latest confirmed payslip of the caller, never a draft.

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
{
  • "payslip": { }
}

Read the payroll configuration

Distinct from the payroll settings of reporting. The list of who may encash leave is for HR only; an administrator without the HR role does not receive 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.

Responses

Response samples

Content type
application/json
{
  • "currency": "str",
  • "defaultNoticePeriodDays": 0,
  • "draftContractOnHire": true,
  • "requireClosedMonth": true,
  • "unexcusedAbsenceUnpaid": true,
  • "sickPayContinuationDays": 0,
  • "attachPayslipToMail": true,
  • "requireTaxProfile": true,
  • "debtorName": "string",
  • "debtorIban": "string",
  • "debtorBic": "string",
  • "schedules": {
    },
  • "encashmentEnabled": true,
  • "encashmentForEveryone": true,
  • "encashmentRate": "perDay",
  • "encashmentAmountPerDay": 0,
  • "amountPerBonusPoint": 0,
  • "endOfServiceCalculator": "none",
  • "encashmentEligibility": [
    ]
}

Replace the payroll configuration

Fields that are left out keep their value. 428 without If-Match, 412 when the configuration changed since it was read. 422 on currency once a payslip is confirmed. Only HR sends encashmentEligibility (403 otherwise).

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
currency
required
string = 3 characters
defaultNoticePeriodDays
integer [ 0 .. 730 ]
draftContractOnHire
boolean
requireClosedMonth
boolean
unexcusedAbsenceUnpaid
boolean
sickPayContinuationDays
integer or null [ 0 .. 366 ]
attachPayslipToMail
boolean
requireTaxProfile
boolean
debtorName
string or null
debtorIban
string or null
debtorBic
string or null
object

Days after the end of the period on which a run is made by itself, by pay frequency; null for none.

encashmentEnabled
boolean
encashmentForEveryone
boolean
encashmentRate
string
Enum: "perDay" "dailyBasicRate"
encashmentAmountPerDay
integer or null
amountPerBonusPoint
integer or null
endOfServiceCalculator
string
Value: "none"
Array of objects

Who may encash leave when it is not everyone. HR only.

Responses

Request samples

Content type
application/json
{
  • "currency": "str",
  • "defaultNoticePeriodDays": 0,
  • "draftContractOnHire": true,
  • "requireClosedMonth": true,
  • "unexcusedAbsenceUnpaid": true,
  • "sickPayContinuationDays": 0,
  • "attachPayslipToMail": true,
  • "requireTaxProfile": true,
  • "debtorName": "string",
  • "debtorIban": "string",
  • "debtorBic": "string",
  • "schedules": {
    },
  • "encashmentEnabled": true,
  • "encashmentForEveryone": true,
  • "encashmentRate": "perDay",
  • "encashmentAmountPerDay": 0,
  • "amountPerBonusPoint": 0,
  • "endOfServiceCalculator": "none",
  • "encashmentEligibility": [
    ]
}

Response samples

Content type
application/json
{
  • "currency": "str",
  • "defaultNoticePeriodDays": 0,
  • "draftContractOnHire": true,
  • "requireClosedMonth": true,
  • "unexcusedAbsenceUnpaid": true,
  • "sickPayContinuationDays": 0,
  • "attachPayslipToMail": true,
  • "requireTaxProfile": true,
  • "debtorName": "string",
  • "debtorIban": "string",
  • "debtorBic": "string",
  • "schedules": {
    },
  • "encashmentEnabled": true,
  • "encashmentForEveryone": true,
  • "encashmentRate": "perDay",
  • "encashmentAmountPerDay": 0,
  • "amountPerBonusPoint": 0,
  • "endOfServiceCalculator": "none",
  • "encashmentEligibility": [
    ]
}

Calculate the final settlement of a leaver without storing it

The payslip of the pay period that contains the exit date, cut to the exit: basic pay up to the exit, the leave that remains paid out at the daily basic rate, the claims that are payable and the open balance of every loan as one deduction. 422 on employeeId for an employee without an exit date or without a contract on the day of the exit.

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
employeeId
required
string <uuid> (Uuid)

An employee with a scheduled or past exit; 422 on employeeId without an exit date or a contract.

Responses

Request samples

Content type
application/json
{
  • "employeeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
}

Response samples

Content type
application/json
{
  • "employee": {
    },
  • "contractId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "payFrequency": "monthly",
  • "periodStart": "2026-10-01",
  • "periodEnd": "2026-10-01",
  • "currency": "string",
  • "lines": [
    ],
  • "totals": {
    },
  • "inputs": [
    ],
  • "blockers": [
    ]
}

Make the final settlement of a leaver

The final settlement is the payslip of the employee for the pay period that contains the exit date, marked finalSettlement. It follows the payslip lifecycle: changePayslipStatus, reopenPayslip and the document of the payslip work as for any payslip. Confirming it books the leave payout in the leave account. 422 on employeeId as for the preview, and when the employee has a payslip for the period already.

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
employeeId
required
string <uuid> (Uuid)

An employee with a scheduled or past exit; 422 on employeeId without an exit date or a contract.

Responses

Request samples

Content type
application/json
{
  • "employeeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
}

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "employee": {
    },
  • "status": "draft",
  • "finalSettlement": true,
  • "periodStart": "2026-10-01",
  • "periodEnd": "2026-10-01",
  • "grossPay": {
    },
  • "totalDeductions": {
    },
  • "netPay": {
    },
  • "blockers": [
    ],
  • "payRunId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "contractId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "currency": "string",
  • "lines": [
    ],
  • "totals": {
    },
  • "inputs": [
    ],
  • "items": [
    ],
  • "reopenReason": "string",
  • "confirmedAt": "2019-08-24T14:15:22Z",
  • "paidOn": "2026-10-01",
  • "allowedActions": [
    ]
}

Create the SEPA payment file of a pay run

Makes the SEPA credit transfer (pain.001.001.09, UTF-8 XML, euro) of the net pay of the confirmed payslips of the run, one transfer per payslip to the IBAN of its employee, from the debtor account of the payroll configuration, with the run name and period as remittance text. Payslips without net pay or without an IBAN are left out and named. 422 without a debtor account, in another currency than euro and when no payslip can be paid. The creation is logged for every person in the file.

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

A pay run of the company.

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",
  • "fileName": "string",
  • "transactions": 1,
  • "controlSum": {
    },
  • "skipped": [
    ]
}

Download a payment file

The XML of the SEPA credit transfer. It holds bank details: every download is logged for the people whose accounts it holds.

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

A payment file of the company.

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 payslips

With scope self (the default) the confirmed and paid payslips of the caller. With scope all, HR lists the payslips of the company, drafts included; anybody else gets 403. Newest period first.

Authorizations:
bearerAuthsessionCookie
query Parameters
scope
string
Default: "self"
Enum: "self" "all"
payRunId
string <uuid> (Uuid)
Examples: payRunId=0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
employeeId
string <uuid> (Uuid)
Examples: employeeId=0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
status
string (PayslipStatus)
Enum: "draft" "inReview" "confirmed" "paid"
departmentId
string <uuid> (Uuid)
Examples: departmentId=0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

The payslips of employees who were in the department on the last day of the period.

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

The payslips whose period ends on or after this day.

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

The payslips whose period starts on or before this day.

finalSettlement
boolean

true keeps the final settlements of leavers, false leaves them out.

sort
string
Default: "-periodStart"
Enum: "employee" "-employee" "periodStart" "-periodStart"
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": [
    ]
}

Read a payslip

HR reads every payslip. The employee reads their own once it is confirmed; to anybody else, and for a draft or payslip in review of the employee, it does not exist (404).

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

A payslip of the company.

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",
  • "employee": {
    },
  • "status": "draft",
  • "finalSettlement": true,
  • "periodStart": "2026-10-01",
  • "periodEnd": "2026-10-01",
  • "grossPay": {
    },
  • "totalDeductions": {
    },
  • "netPay": {
    },
  • "blockers": [
    ],
  • "payRunId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "contractId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "currency": "string",
  • "lines": [
    ],
  • "totals": {
    },
  • "inputs": [
    ],
  • "items": [
    ],
  • "reopenReason": "string",
  • "confirmedAt": "2019-08-24T14:15:22Z",
  • "paidOn": "2026-10-01",
  • "allowedActions": [
    ]
}

Delete a draft payslip

Only drafts are deleted; any other payslip answers 409.

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

A payslip of the company.

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": [
    ]
}

Download the document of a payslip

The PDF of a confirmed or paid payslip, rendered once at confirmation in the saved language of the employee and stored, so every download delivers the same bytes. HR also gets the document of a draft or a payslip in review, rendered on the fly and marked as a draft on every page; nothing is stored. The employee reads only their own confirmed or paid payslip; to anybody else it does not exist (404).

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

A payslip of the company.

query Parameters
disposition
string
Default: "attachment"
Enum: "attachment" "inline"
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": [
    ]
}

Add a one-time earning or deduction to a draft payslip

The payslip is calculated again in place and keeps its ID. Only drafts take items; any other payslip answers 409. HR only.

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

A payslip of the company.

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
title
required
string [ 1 .. 190 ] characters
kind
required
string
Enum: "earning" "deduction"
taxable
boolean

Of an earning; default true. A deduction is never taxable.

deductionKind
string
Enum: "preTax" "postTax" "netPay"

Required for a deduction.

amount
required
integer >= 1

An amount in minor units of the payroll currency; a decimal number answers 400.

Responses

Request samples

Content type
application/json
{
  • "title": "string",
  • "kind": "earning",
  • "taxable": true,
  • "deductionKind": "preTax",
  • "amount": 0
}

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "employee": {
    },
  • "status": "draft",
  • "finalSettlement": true,
  • "periodStart": "2026-10-01",
  • "periodEnd": "2026-10-01",
  • "grossPay": {
    },
  • "totalDeductions": {
    },
  • "netPay": {
    },
  • "blockers": [
    ],
  • "payRunId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "contractId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "currency": "string",
  • "lines": [
    ],
  • "totals": {
    },
  • "inputs": [
    ],
  • "items": [
    ],
  • "reopenReason": "string",
  • "confirmedAt": "2019-08-24T14:15:22Z",
  • "paidOn": "2026-10-01",
  • "allowedActions": [
    ]
}

Change an item of a draft payslip

The item is replaced as a whole and the payslip calculated again in place. Only on drafts (409 otherwise).

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

A payslip of the company.

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

A manual item of that payslip.

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
title
required
string [ 1 .. 190 ] characters
kind
required
string
Enum: "earning" "deduction"
taxable
boolean

Of an earning; default true. A deduction is never taxable.

deductionKind
string
Enum: "preTax" "postTax" "netPay"

Required for a deduction.

amount
required
integer >= 1

An amount in minor units of the payroll currency; a decimal number answers 400.

Responses

Request samples

Content type
application/json
{
  • "title": "string",
  • "kind": "earning",
  • "taxable": true,
  • "deductionKind": "preTax",
  • "amount": 0
}

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "employee": {
    },
  • "status": "draft",
  • "finalSettlement": true,
  • "periodStart": "2026-10-01",
  • "periodEnd": "2026-10-01",
  • "grossPay": {
    },
  • "totalDeductions": {
    },
  • "netPay": {
    },
  • "blockers": [
    ],
  • "payRunId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "contractId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "currency": "string",
  • "lines": [
    ],
  • "totals": {
    },
  • "inputs": [
    ],
  • "items": [
    ],
  • "reopenReason": "string",
  • "confirmedAt": "2019-08-24T14:15:22Z",
  • "paidOn": "2026-10-01",
  • "allowedActions": [
    ]
}

Remove an item of a draft payslip

The payslip is calculated again in place without it. Only on drafts (409 otherwise).

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

A payslip of the company.

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

A manual item of that payslip.

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",
  • "employee": {
    },
  • "status": "draft",
  • "finalSettlement": true,
  • "periodStart": "2026-10-01",
  • "periodEnd": "2026-10-01",
  • "grossPay": {
    },
  • "totalDeductions": {
    },
  • "netPay": {
    },
  • "blockers": [
    ],
  • "payRunId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "contractId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "currency": "string",
  • "lines": [
    ],
  • "totals": {
    },
  • "inputs": [
    ],
  • "items": [
    ],
  • "reopenReason": "string",
  • "confirmedAt": "2019-08-24T14:15:22Z",
  • "paidOn": "2026-10-01",
  • "allowedActions": [
    ]
}

Move a payslip along its lifecycle

draft to inReview, inReview back to draft or on to confirmed, confirmed to paid; any other change is 409. Confirmation calculates the payslip again, answers 422 with the blockers while one remains and otherwise freezes lines, inputs and component snapshots. Paid records the payment date (default today) and is final.

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

A payslip of the company.

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
status
required
string (PayslipStatus)
Enum: "draft" "inReview" "confirmed" "paid"
paidOn
string <date> (Date)

Only with status paid; the day of payment, today when omitted.

Responses

Request samples

Content type
application/json
{
  • "status": "draft",
  • "paidOn": "2026-10-01"
}

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "employee": {
    },
  • "status": "draft",
  • "finalSettlement": true,
  • "periodStart": "2026-10-01",
  • "periodEnd": "2026-10-01",
  • "grossPay": {
    },
  • "totalDeductions": {
    },
  • "netPay": {
    },
  • "blockers": [
    ],
  • "payRunId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "contractId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "currency": "string",
  • "lines": [
    ],
  • "totals": {
    },
  • "inputs": [
    ],
  • "items": [
    ],
  • "reopenReason": "string",
  • "confirmedAt": "2019-08-24T14:15:22Z",
  • "paidOn": "2026-10-01",
  • "allowedActions": [
    ]
}

Reopen a confirmed payslip

A confirmed payslip that is not paid becomes a draft again with the reason; its stored document is dropped. A paid payslip is final (409).

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

A payslip of the company.

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
reason
required
string [ 1 .. 500 ] characters

Responses

Request samples

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

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "employee": {
    },
  • "status": "draft",
  • "finalSettlement": true,
  • "periodStart": "2026-10-01",
  • "periodEnd": "2026-10-01",
  • "grossPay": {
    },
  • "totalDeductions": {
    },
  • "netPay": {
    },
  • "blockers": [
    ],
  • "payRunId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "contractId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "currency": "string",
  • "lines": [
    ],
  • "totals": {
    },
  • "inputs": [
    ],
  • "items": [
    ],
  • "reopenReason": "string",
  • "confirmedAt": "2019-08-24T14:15:22Z",
  • "paidOn": "2026-10-01",
  • "allowedActions": [
    ]
}

Send payslips by mail again

Mails the published payslips to their employees again, each on its own, from the company address and in the saved language of the employee. The document is attached when the payroll configuration says so. The answer lists the outcome per payslip; a mail that fails leaves the others sent, and only a mail the mail server took records the sending time.

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
payslipIds
required
Array of strings <uuid> (Uuid) [ 1 .. 500 ] items [ items <uuid > ]

Responses

Request samples

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

Response samples

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

Move several payslips along their lifecycle

Each payslip is validated on its own; the answer lists the result per payslip, with the blockers or violations of those that did not change.

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
status
required
string (PayslipStatus)
Enum: "draft" "inReview" "confirmed" "paid"
payslipIds
required
Array of strings <uuid> (Uuid) [ 1 .. 500 ] items [ items <uuid > ]
paidOn
string <date> (Date)

Responses

Request samples

Content type
application/json
{
  • "status": "draft",
  • "payslipIds": [
    ],
  • "paidOn": "2026-10-01"
}

Response samples

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

List the loans of the company

Newest first, narrowed by employee, status and type. HR only.

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

Only the loans of this employee.

status
string (LoanStatus)
Enum: "requested" "open" "repaid" "settled" "rejected" "withdrawn"

Only loans in this status.

type
string (LoanType)
Enum: "loan" "salaryAdvance" "fine"

Only loans of this type.

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 a loan, salary advance or fine

The employee needs an active contract (422 on employeeId). The first instalment is not before the month of the disbursement (422 on firstInstalmentMonth); a fine has no disbursement date. The amount is split into equal instalments, the first carrying the remainder. A repeated Idempotency-Key answers the first response. HR never creates a loan for themselves (403).

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
required
string <uuid> (Uuid)
type
required
string (LoanType)
Enum: "loan" "salaryAdvance" "fine"
title
required
string [ 1 .. 190 ] characters
amount
required
integer >= 1

An amount in minor units of the payroll currency; a decimal number answers 400.

disbursementDate
string or null <date>

Not for a fine; the loan or salary advance is paid out with the payslip whose period reaches it.

disbursedOutsidePayroll
boolean

The money was paid out in another way; no disbursement line appears on a payslip.

instalmentCount
required
integer [ 1 .. 120 ]
firstInstalmentMonth
required
string^\d{4}-(0[1-9]|1[0-2])$
description
string or null <= 2000 characters

Responses

Request samples

Content type
application/json
{
  • "employeeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "type": "loan",
  • "title": "string",
  • "amount": 0,
  • "disbursementDate": "2019-08-24",
  • "disbursedOutsidePayroll": true,
  • "instalmentCount": 1,
  • "firstInstalmentMonth": "string",
  • "description": "string"
}

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "employee": {
    },
  • "type": "loan",
  • "typeLabel": "string",
  • "title": "string",
  • "amount": {
    },
  • "disbursementDate": "2019-08-24",
  • "disbursedOutsidePayroll": true,
  • "instalmentCount": 0,
  • "paidInstalments": 0,
  • "firstInstalmentMonth": "string",
  • "description": "string",
  • "status": "requested",
  • "statusLabel": "string",
  • "openBalance": {
    },
  • "instalments": [
    ],
  • "settlement": {
    },
  • "createdAt": "2019-08-24T14:15:22Z",
  • "allowedActions": [
    ]
}

Read a loan

The employee concerned and HR read it, with the instalments and the open balance; anybody else gets 404.

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

A loan of the company.

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",
  • "employee": {
    },
  • "type": "loan",
  • "typeLabel": "string",
  • "title": "string",
  • "amount": {
    },
  • "disbursementDate": "2019-08-24",
  • "disbursedOutsidePayroll": true,
  • "instalmentCount": 0,
  • "paidInstalments": 0,
  • "firstInstalmentMonth": "string",
  • "description": "string",
  • "status": "requested",
  • "statusLabel": "string",
  • "openBalance": {
    },
  • "instalments": [
    ],
  • "settlement": {
    },
  • "createdAt": "2019-08-24T14:15:22Z",
  • "allowedActions": [
    ]
}

Change a loan

Only the sent fields change. The amount and the plan change only while no instalment is paid and the disbursement is not confirmed (409); the title and the description always. A requested loan can be lowered or re-planned by HR before the approval.

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

A loan of the company.

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
title
string [ 1 .. 190 ] characters
amount
integer >= 1

An amount in minor units of the payroll currency; a decimal number answers 400.

disbursementDate
string or null <date>
disbursedOutsidePayroll
boolean
instalmentCount
integer [ 1 .. 120 ]
firstInstalmentMonth
string^\d{4}-(0[1-9]|1[0-2])$
description
string or null <= 2000 characters

Responses

Request samples

Content type
application/json
{
  • "title": "string",
  • "amount": 0,
  • "disbursementDate": "2019-08-24",
  • "disbursedOutsidePayroll": true,
  • "instalmentCount": 1,
  • "firstInstalmentMonth": "string",
  • "description": "string"
}

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "employee": {
    },
  • "type": "loan",
  • "typeLabel": "string",
  • "title": "string",
  • "amount": {
    },
  • "disbursementDate": "2019-08-24",
  • "disbursedOutsidePayroll": true,
  • "instalmentCount": 0,
  • "paidInstalments": 0,
  • "firstInstalmentMonth": "string",
  • "description": "string",
  • "status": "requested",
  • "statusLabel": "string",
  • "openBalance": {
    },
  • "instalments": [
    ],
  • "settlement": {
    },
  • "createdAt": "2019-08-24T14:15:22Z",
  • "allowedActions": [
    ]
}

Delete a loan

A loan with a paid instalment or a confirmed disbursement answers 409.

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

A loan of the company.

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": [
    ]
}

Change an unpaid instalment

The rest of the unpaid balance is spread evenly over the later unpaid instalments, the first carrying the remainder; instalments no longer needed are removed, and one is added when a balance remains without a later one. A paid instalment answers 409, an amount above the outstanding balance 422 on amount.

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

A loan of the company.

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

An instalment of the loan.

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
integer >= 1

An amount in minor units of the payroll currency; a decimal number answers 400.

Responses

Request samples

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

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "employee": {
    },
  • "type": "loan",
  • "typeLabel": "string",
  • "title": "string",
  • "amount": {
    },
  • "disbursementDate": "2019-08-24",
  • "disbursedOutsidePayroll": true,
  • "instalmentCount": 0,
  • "paidInstalments": 0,
  • "firstInstalmentMonth": "string",
  • "description": "string",
  • "status": "requested",
  • "statusLabel": "string",
  • "openBalance": {
    },
  • "instalments": [
    ],
  • "settlement": {
    },
  • "createdAt": "2019-08-24T14:15:22Z",
  • "allowedActions": [
    ]
}

Settle a loan early

The amount is the outstanding balance (422 on amount). Unpaid instalments are cancelled; nextPayslip deducts the amount with the next payslip, outsidePayroll records it as received. The employee is notified.

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

A loan of the company.

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
integer >= 1

An amount in minor units of the payroll currency; a decimal number answers 400.

method
required
string
Enum: "outsidePayroll" "nextPayslip"

Responses

Request samples

Content type
application/json
{
  • "amount": 0,
  • "method": "outsidePayroll"
}

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "employee": {
    },
  • "type": "loan",
  • "typeLabel": "string",
  • "title": "string",
  • "amount": {
    },
  • "disbursementDate": "2019-08-24",
  • "disbursedOutsidePayroll": true,
  • "instalmentCount": 0,
  • "paidInstalments": 0,
  • "firstInstalmentMonth": "string",
  • "description": "string",
  • "status": "requested",
  • "statusLabel": "string",
  • "openBalance": {
    },
  • "instalments": [
    ],
  • "settlement": {
    },
  • "createdAt": "2019-08-24T14:15:22Z",
  • "allowedActions": [
    ]
}

Ask for a loan or a salary advance

The request runs through the approval engine as loanRequest; HR may lower it or change its plan before approving it. On approval the loan exists with its plan, on rejection or withdrawal nothing. A fine is not requested (422 on 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
type
required
string (LoanType)
Enum: "loan" "salaryAdvance" "fine"
amount
required
integer >= 1

An amount in minor units of the payroll currency; a decimal number answers 400.

instalmentCount
required
integer [ 1 .. 120 ]
reason
required
string [ 1 .. 2000 ] characters

Responses

Request samples

Content type
application/json
{
  • "type": "loan",
  • "amount": 0,
  • "instalmentCount": 1,
  • "reason": "string"
}

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "employee": {
    },
  • "type": "loan",
  • "typeLabel": "string",
  • "title": "string",
  • "amount": {
    },
  • "disbursementDate": "2019-08-24",
  • "disbursedOutsidePayroll": true,
  • "instalmentCount": 0,
  • "paidInstalments": 0,
  • "firstInstalmentMonth": "string",
  • "description": "string",
  • "status": "requested",
  • "statusLabel": "string",
  • "openBalance": {
    },
  • "instalments": [
    ],
  • "settlement": {
    },
  • "createdAt": "2019-08-24T14:15:22Z",
  • "allowedActions": [
    ]
}

List the loans of an employee

For the employee and HR; anybody else gets 404. Newest first.

Authorizations:
bearerAuthsessionCookie
path Parameters
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.

Responses

Response samples

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

List the claim categories

The categories an expense claim can use, named in the reader's language; HR also sees archived ones.

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 a claim category

Names by language, English required and unique in the company (422 on names); taxable tells whether reimbursements of the category are taxed (default no).

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
required
object

Names by language; English is required.

taxable
boolean
archived
boolean

Responses

Request samples

Content type
application/json
{
  • "names": {
    },
  • "taxable": true,
  • "archived": true
}

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "name": "string",
  • "names": {
    },
  • "taxable": true,
  • "archived": true
}

Change a claim category

Replaces the names and the flags; archived hides the category from new claims.

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

A claim category of the company.

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
required
object

Names by language; English is required.

taxable
boolean
archived
boolean

Responses

Request samples

Content type
application/json
{
  • "names": {
    },
  • "taxable": true,
  • "archived": true
}

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "name": "string",
  • "names": {
    },
  • "taxable": true,
  • "archived": true
}

List the leave types that may be paid out

The leave types a leave encashment claim can name, named in the reader's language and sorted by name. Empty without the leave package and while the configuration does not enable encashment. Who may claim is checked when the claim is filed.

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": [
    ]
}

List the claims of the company

Newest first, narrowed by employee and status. HR only.

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

Only the claims of this employee.

status
string (ClaimStatus)
Enum: "pending" "approved" "paid" "rejected" "withdrawn" "cancelled"

Only claims in this status.

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": [
    ]
}

File an expense claim, a leave encashment or a bonus point encashment

An expense claim has one to 20 items dated today or earlier (422 on items[n].date) and one to 10 receipts uploaded with the purpose payroll.claimReceipt (422 on receipts); its amount is the sum of the items. A leave encashment names a leave type and days in half-day steps; its amount is the days times the encashment rate of the configuration (422 on type where encashment is not enabled for the employee, on leaveTypeId and on days). A bonus point encashment names points; its amount is the points times the amount per point (422 on type without one, on points above the available points). HR may name employeeId to file for somebody. The claim waits for its approval. A repeated Idempotency-Key answers the first response.

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)

HR only; the employee who claims.

type
required
string
title
required
string [ 1 .. 190 ] characters
categoryId
required
string <uuid> (Uuid)
required
Array of objects [ 1 .. 20 ] items
receipts
required
Array of strings <uuid> (Uuid) [ 1 .. 10 ] items [ items <uuid > ]

Uploads with the purpose payroll.claimReceipt; the minimum is checked with a violation on receipts.

Responses

Request samples

Content type
application/json
Example
{
  • "employeeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "type": "expense",
  • "title": "string",
  • "categoryId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "items": [
    ],
  • "receipts": [
    ]
}

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "employee": {
    },
  • "type": "expense",
  • "typeLabel": "string",
  • "title": "string",
  • "category": {
    },
  • "amount": {
    },
  • "approvedAmount": {
    },
  • "decisionReason": "string",
  • "status": "pending",
  • "statusLabel": "string",
  • "items": [
    ],
  • "receipts": [
    ],
  • "leaveTypeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "days": 0,
  • "points": 0,
  • "createdAt": "2019-08-24T14:15:22Z",
  • "allowedActions": [
    ]
}

Read a claim

The employee who claims, HR and the approvers the claim currently waits for read it, with the receipts; anybody else gets 404.

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

A claim of the company.

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",
  • "employee": {
    },
  • "type": "expense",
  • "typeLabel": "string",
  • "title": "string",
  • "category": {
    },
  • "amount": {
    },
  • "approvedAmount": {
    },
  • "decisionReason": "string",
  • "status": "pending",
  • "statusLabel": "string",
  • "items": [
    ],
  • "receipts": [
    ],
  • "leaveTypeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "days": 0,
  • "points": 0,
  • "createdAt": "2019-08-24T14:15:22Z",
  • "allowedActions": [
    ]
}

Lower the amount that is paid

While the claim is pending HR sets the amount to pay, at most the claimed amount; a lower amount needs a reason (422 on reason). The approval then pays this amount.

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

A claim of the company.

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
approvedAmount
required
integer >= 1

An amount in minor units of the payroll currency; a decimal number answers 400.

reason
string <= 500 characters

Responses

Request samples

Content type
application/json
{
  • "approvedAmount": 0,
  • "reason": "string"
}

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "employee": {
    },
  • "type": "expense",
  • "typeLabel": "string",
  • "title": "string",
  • "category": {
    },
  • "amount": {
    },
  • "approvedAmount": {
    },
  • "decisionReason": "string",
  • "status": "pending",
  • "statusLabel": "string",
  • "items": [
    ],
  • "receipts": [
    ],
  • "leaveTypeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "days": 0,
  • "points": 0,
  • "createdAt": "2019-08-24T14:15:22Z",
  • "allowedActions": [
    ]
}

Take a claim back

A pending claim is withdrawn, an approved one cancelled while no confirmed payslip paid it. Afterwards the response is 409.

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

A claim of the company.

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",
  • "employee": {
    },
  • "type": "expense",
  • "typeLabel": "string",
  • "title": "string",
  • "category": {
    },
  • "amount": {
    },
  • "approvedAmount": {
    },
  • "decisionReason": "string",
  • "status": "pending",
  • "statusLabel": "string",
  • "items": [
    ],
  • "receipts": [
    ],
  • "leaveTypeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "days": 0,
  • "points": 0,
  • "createdAt": "2019-08-24T14:15:22Z",
  • "allowedActions": [
    ]
}

List the comments on a claim

Oldest first.

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

A claim of the company.

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": [
    ]
}

Comment on a claim

With up to five files uploaded with the purpose payroll.claimComment. The employee who claims is notified of a comment by somebody else.

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

A claim of the company.

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
body
required
string [ 1 .. 5000 ] characters
fileIds
Array of strings <uuid> (Uuid) <= 5 items [ items <uuid > ]

Responses

Request samples

Content type
application/json
{
  • "body": "string",
  • "fileIds": [
    ]
}

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "author": {
    },
  • "body": "string",
  • "files": [
    ],
  • "createdAt": "2019-08-24T14:15:22Z"
}

Delete a comment

Only the author deletes their own comment (422 on commentId), and only while the claim is pending (409 afterwards).

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

A claim of the company.

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

A comment on the claim.

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 claims of an employee

For the employee and HR; anybody else gets 404. Newest first.

Authorizations:
bearerAuthsessionCookie
path Parameters
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.

Responses

Response samples

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