KontoCloud
Rust SDK / Operation reference

Payroll and employees

68 operations

Example values illustrate the structure. Replace them with your identifiers and data; business validation still applies to these examples.

GET

/api/t/{tid}/absences

#

get_t_tid_absences

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired

Query parameters

FieldTypeRequired
year
integer · i32null
Optional
employee_id
string · UUIDnull
Optional

Request body

No request body.

Successful response

200 · application/json

Array<Absence>

Call example

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    tid: TenantId,
    year: Option <i32>,
    employee_id: Option <EmployeeId>,
) -> kc_sdk::Result <Vec <Absence>> {
    client.absences(tid, year, employee_id).await
}

Errors and constraints

Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.

Errors and constraints →

Contract source: crates/kc-api/src/absences.rs · absences::list

POST

/api/t/{tid}/absences

#

post_t_tid_absences

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired

Request body

FieldTypeRequired
employee_idEmployeeIdRequired
kindAbsenceKindRequired
case_from
string · YYYY-MM-DDnull
Server default: null
Optional
date_fromstring · YYYY-MM-DDRequired
date_tostring · YYYY-MM-DDRequired
employer_liablebooleanServer default: falseOptional
documentstringServer default: ""Optional
notestringServer default: ""Optional
insurance_approvalstringServer default: ""Optional
request.json
{
  "employee_id": "00000000-0000-4000-8000-000000000001",
  "kind": "sick",
  "date_from": "2026-01-01",
  "date_to": "2026-01-01"
}

Successful response

201 · application/json

Absence

Call example

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    tid: TenantId,
    n: &NewAbsence,
) -> kc_sdk::Result <Absence> {
    client.record_absence(tid, n).await
}

Errors and constraints

Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.

Errors and constraints →

Contract source: crates/kc-api/src/absences.rs · absences::record

POST

/api/t/{tid}/absences/{id}/cancel

#

post_t_tid_absences_id_cancel

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired
idinteger · i64Required

Request body

FieldTypeRequired
reasonstringRequired
request.json
{
  "reason": "example"
}

Successful response

200 · application/json

Absence

Call example

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    tid: TenantId,
    id: AbsenceId,
    c: &CancelAbsence,
) -> kc_sdk::Result <Absence> {
    client.cancel_absence(tid, id, c).await
}

Errors and constraints

Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.

Errors and constraints →

Contract source: crates/kc-api/src/absences.rs · absences::cancel

POST

/api/t/{tid}/contracts/{id}

#

post_t_tid_contracts_id

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired
idContractIdRequired

Request body

FieldTypeRequired
kindContractKindRequired
valid_fromstring · YYYY-MM-DDRequired
valid_to
string · YYYY-MM-DDnull
Server default: null
Optional
hours_per_weekinteger · i32Required
salary_basisSalaryBasisRequired
salary_amountMoneyRequired
cost_accountstringRequired
personal_exemptionbooleanServer default: trueOptional
prior_servicePriorServiceServer defaultOptional
reasonstringRequired
effective_from
string · YYYY-MM-DDnull
Server default: null
Optional
request.json
{
  "kind": "indefinite",
  "valid_from": "2026-01-01",
  "hours_per_week": 1,
  "salary_basis": "gross",
  "salary_amount": 1,
  "cost_account": "example",
  "reason": "example"
}

Successful response

200 · application/json

Contract

Call example

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    tid: TenantId,
    id: ContractId,
    ch: &ContractChange,
) -> kc_sdk::Result <Contract> {
    client.change_contract(tid, id, ch).await
}

Errors and constraints

Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.

Errors and constraints →

Contract source: crates/kc-api/src/payroll.rs · payroll::change_contract

GET

/api/t/{tid}/employees

#

get_t_tid_employees

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired

Request body

No request body.

Successful response

200 · application/json

Call example

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    tid: TenantId,
) -> kc_sdk::Result <Vec <EmployeeSummary>> {
    client.employees(tid).await
}

Errors and constraints

Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.

Errors and constraints →

Contract source: crates/kc-api/src/payroll.rs · payroll::employees

POST

/api/t/{tid}/employees

#

post_t_tid_employees

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired

Request body

FieldTypeRequired
embgstringRequired
first_namestringRequired
last_namestringRequired
addressstringServer default: ""Optional
bank_accountstringServer default: ""Optional
activebooleanServer default: trueOptional
request.json
{
  "embg": "example",
  "first_name": "example",
  "last_name": "example"
}

Successful response

201 · application/json

Employee

Call example

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    tid: TenantId,
    e: &NewEmployee,
) -> kc_sdk::Result <Employee> {
    client.create_employee(tid, e).await
}

Errors and constraints

Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.

Errors and constraints →

Contract source: crates/kc-api/src/payroll.rs · payroll::create_employee

GET

/api/t/{tid}/employees/{id}

#

get_t_tid_employees_id

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired
idEmployeeIdRequired

Request body

No request body.

Successful response

200 · application/json

Employee

Call example

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    tid: TenantId,
    id: EmployeeId,
) -> kc_sdk::Result <Employee> {
    client.employee(tid, id).await
}

Errors and constraints

Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.

Errors and constraints →

Contract source: crates/kc-api/src/payroll.rs · payroll::employee

POST

/api/t/{tid}/employees/{id}

#

post_t_tid_employees_id

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired
idEmployeeIdRequired

Request body

FieldTypeRequired
first_namestringRequired
last_namestringRequired
addressstringServer default: ""Optional
bank_accountstringServer default: ""Optional
activebooleanServer default: trueOptional
reasonstringRequired
request.json
{
  "first_name": "example",
  "last_name": "example",
  "reason": "example"
}

Successful response

200 · application/json

Employee

Call example

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    tid: TenantId,
    id: EmployeeId,
    ch: &EmployeeChange,
) -> kc_sdk::Result <Employee> {
    client.change_employee(tid, id, ch).await
}

Errors and constraints

Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.

Errors and constraints →

Contract source: crates/kc-api/src/payroll.rs · payroll::change_employee

POST

/api/t/{tid}/employees/{id}/contracts

#

post_t_tid_employees_id_contracts

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired
idEmployeeIdRequired

Request body

FieldTypeRequired
kindContractKindRequired
valid_fromstring · YYYY-MM-DDRequired
valid_to
string · YYYY-MM-DDnull
Server default: null
Optional
hours_per_weekinteger · i32Required
salary_basisSalaryBasisRequired
salary_amountMoneyRequired
cost_accountstringRequired
personal_exemptionbooleanServer default: trueOptional
prior_servicePriorServiceServer defaultOptional
request.json
{
  "kind": "indefinite",
  "valid_from": "2026-01-01",
  "hours_per_week": 1,
  "salary_basis": "gross",
  "salary_amount": 1,
  "cost_account": "example"
}

Successful response

201 · application/json

Contract

Call example

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    tid: TenantId,
    employee: EmployeeId,
    c: &NewContract,
) -> kc_sdk::Result <Contract> {
    client.add_contract(tid, employee, c).await
}

Errors and constraints

Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.

Errors and constraints →

Contract source: crates/kc-api/src/payroll.rs · payroll::add_contract

POST

/api/t/{tid}/employees/{id}/municipality

#

post_t_tid_employees_id_municipality

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired
idEmployeeIdRequired

Request body

FieldTypeRequired
codestringRequired
request.json
{
  "code": "example"
}

Successful response

201 · application/json

MpinCode

Call example

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    tid: TenantId,
    id: EmployeeId,
    code: &str,
) -> kc_sdk::Result <MpinCode> {
    client.set_employee_municipality(tid, id, code).await
}

Errors and constraints

mpin_code

Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.

Errors and constraints →

Contract source: crates/kc-api/src/mpin_epdd.rs · mpin_epdd::set_municipality

GET

/api/t/{tid}/leave

#

get_t_tid_leave

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired

Query parameters

FieldTypeRequired
year
integer · i32null
Optional

Request body

No request body.

Successful response

200 · application/json

Call example

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    tid: TenantId,
    year: Option <i32>,
) -> kc_sdk::Result <Vec <LeaveOverviewRow>> {
    client.leave_overview(tid, year).await
}

Errors and constraints

Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.

Errors and constraints →

Contract source: crates/kc-api/src/leave.rs · leave::overview

GET

/api/t/{tid}/leave/balance

#

get_t_tid_leave_balance

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired

Query parameters

FieldTypeRequired
employee_idstring · UUIDRequired
year
integer · i32null
Optional
on
string · YYYY-MM-DDnull
Optional

Request body

No request body.

Successful response

200 · application/json

LeaveBalance

Call example

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    tid: TenantId,
    employee_id: EmployeeId,
    year: Option <i32>,
    on: Option <NaiveDate>,
) -> kc_sdk::Result <LeaveBalance> {
    client.leave_balance(tid, employee_id, year, on).await
}

Errors and constraints

Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.

Errors and constraints →

Contract source: crates/kc-api/src/leave.rs · leave::balance

GET

/api/t/{tid}/leave/decisions

#

get_t_tid_leave_decisions

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired

Query parameters

FieldTypeRequired
year
integer · i32null
Optional
employee_id
string · UUIDnull
Optional

Request body

No request body.

Successful response

200 · application/json

Call example

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    tid: TenantId,
    year: Option <i32>,
    employee_id: Option <EmployeeId>,
) -> kc_sdk::Result <Vec <LeaveDecision>> {
    client.leave_decisions(tid, year, employee_id).await
}

Errors and constraints

Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.

Errors and constraints →

Contract source: crates/kc-api/src/leave.rs · leave::decisions

POST

/api/t/{tid}/leave/decisions

#

post_t_tid_leave_decisions

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired

Request body

FieldTypeRequired
employee_idEmployeeIdRequired
yearinteger · i32Required
decision_datestring · YYYY-MM-DDRequired
date_fromstring · YYYY-MM-DDRequired
date_tostring · YYYY-MM-DDRequired
notestringServer default: ""Optional
request.json
{
  "employee_id": "00000000-0000-4000-8000-000000000001",
  "year": 2026,
  "decision_date": "2026-01-01",
  "date_from": "2026-01-01",
  "date_to": "2026-01-01"
}

Successful response

201 · application/json

LeaveDecision

Call example

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    tid: TenantId,
    n: &NewLeaveDecision,
) -> kc_sdk::Result <LeaveDecision> {
    client.create_leave_decision(tid, n).await
}

Errors and constraints

Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.

Errors and constraints →

Contract source: crates/kc-api/src/leave.rs · leave::decide

GET

/api/t/{tid}/leave/decisions/{id}

#

get_t_tid_leave_decisions_id

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired
idinteger · i64Required

Request body

No request body.

Successful response

200 · application/json

LeaveDecision

Call example

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    tid: TenantId,
    id: LeaveDecisionId,
) -> kc_sdk::Result <LeaveDecision> {
    client.leave_decision(tid, id).await
}

Errors and constraints

Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.

Errors and constraints →

Contract source: crates/kc-api/src/leave.rs · leave::get_one

POST

/api/t/{tid}/leave/decisions/{id}/cancel

#

post_t_tid_leave_decisions_id_cancel

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired
idinteger · i64Required

Request body

FieldTypeRequired
reasonstringRequired
request.json
{
  "reason": "example"
}

Successful response

200 · application/json

LeaveDecision

Call example

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    tid: TenantId,
    id: LeaveDecisionId,
    c: &CancelLeave,
) -> kc_sdk::Result <LeaveDecision> {
    client.cancel_leave_decision(tid, id, c).await
}

Errors and constraints

Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.

Errors and constraints →

Contract source: crates/kc-api/src/leave.rs · leave::cancel

POST

/api/t/{tid}/leave/decisions/{id}/usages

#

post_t_tid_leave_decisions_id_usages

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired
idinteger · i64Required

Request body

FieldTypeRequired
date_fromstring · YYYY-MM-DDRequired
date_tostring · YYYY-MM-DDRequired
notestringServer default: ""Optional
request.json
{
  "date_from": "2026-01-01",
  "date_to": "2026-01-01"
}

Successful response

201 · application/json

LeaveDecision

Call example

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    tid: TenantId,
    id: LeaveDecisionId,
    n: &NewLeaveUsage,
) -> kc_sdk::Result <LeaveDecision> {
    client.add_leave_usage(tid, id, n).await
}

Errors and constraints

Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.

Errors and constraints →

Contract source: crates/kc-api/src/leave.rs · leave::use_days

GET

/api/t/{tid}/leave/entitlements

#

get_t_tid_leave_entitlements

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired

Query parameters

FieldTypeRequired
year
integer · i32null
Optional
employee_id
string · UUIDnull
Optional

Request body

No request body.

Successful response

200 · application/json

Call example

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    tid: TenantId,
    year: Option <i32>,
    employee_id: Option <EmployeeId>,
) -> kc_sdk::Result <Vec <LeaveEntitlement>> {
    client.leave_entitlements(tid, year, employee_id).await
}

Errors and constraints

Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.

Errors and constraints →

Contract source: crates/kc-api/src/leave.rs · leave::entitlements

POST

/api/t/{tid}/leave/entitlements

#

post_t_tid_leave_entitlements

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired

Request body

FieldTypeRequired
employee_idEmployeeIdRequired
yearinteger · i32Required
base_daysinteger · i32Required
criteriaServer default: []Optional
carried_daysinteger · i32Server default: 0Optional
prorata_notestringServer default: ""Optional
reasonstringServer default: ""Optional
request.json
{
  "employee_id": "00000000-0000-4000-8000-000000000001",
  "year": 2026,
  "base_days": 1
}

Successful response

201 · application/json

LeaveEntitlement

Call example

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    tid: TenantId,
    n: &NewLeaveEntitlement,
) -> kc_sdk::Result <LeaveEntitlement> {
    client.add_leave_entitlement(tid, n).await
}

Errors and constraints

Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.

Errors and constraints →

Contract source: crates/kc-api/src/leave.rs · leave::entitle

GET

/api/t/{tid}/leave/rules

#

get_t_tid_leave_rules

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired

Query parameters

FieldTypeRequired
year
integer · i32null
Optional

Request body

No request body.

Successful response

200 · application/json

LeaveRules

Call example

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    tid: TenantId,
    year: Option <i32>,
) -> kc_sdk::Result <LeaveRules> {
    client.leave_rules(tid, year).await
}

Errors and constraints

Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.

Errors and constraints →

Contract source: crates/kc-api/src/leave.rs · leave::rules

POST

/api/t/{tid}/leave/usages/{id}/cancel

#

post_t_tid_leave_usages_id_cancel

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired
idinteger · i64Required

Request body

FieldTypeRequired
reasonstringRequired
request.json
{
  "reason": "example"
}

Successful response

200 · application/json

LeaveDecision

Call example

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    tid: TenantId,
    id: LeaveUsageId,
    c: &CancelLeave,
) -> kc_sdk::Result <LeaveDecision> {
    client.cancel_leave_usage(tid, id, c).await
}

Errors and constraints

Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.

Errors and constraints →

Contract source: crates/kc-api/src/leave.rs · leave::cancel_usage

GET

/api/t/{tid}/leave/working-days

#

get_t_tid_leave_working_days

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired

Query parameters

FieldTypeRequired
fromstring · YYYY-MM-DDRequired
tostring · YYYY-MM-DDRequired

Request body

No request body.

Successful response

200 · application/json

LeaveWorkingDays

Call example

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    tid: TenantId,
    from: NaiveDate,
    to: NaiveDate,
) -> kc_sdk::Result <LeaveWorkingDays> {
    client.leave_working_days(tid, from, to).await
}

Errors and constraints

Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.

Errors and constraints →

Contract source: crates/kc-api/src/leave.rs · leave::working_days

GET

/api/t/{tid}/payroll/advance-limit

#

get_t_tid_payroll_advance_limit

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired

Query parameters

FieldTypeRequired
employee_idstring · UUIDRequired
period
string · YYYY-MM-DDnull
Optional

Request body

No request body.

Successful response

200 · application/json

PayrollAdvanceLimit

Call example

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    tid: TenantId,
    employee_id: EmployeeId,
    period: Option <NaiveDate>,
) -> kc_sdk::Result <PayrollAdvanceLimit> {
    client.payroll_advance_limit(tid, employee_id, period).await
}

Errors and constraints

internal

Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.

Errors and constraints →

Contract source: crates/kc-api/src/payroll_advances.rs · payroll_advances::limit

GET

/api/t/{tid}/payroll/advances

#

get_t_tid_payroll_advances

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired

Query parameters

FieldTypeRequired
period
string · YYYY-MM-DDnull
Optional
employee_id
string · UUIDnull
Optional

Request body

No request body.

Successful response

200 · application/json

Call example

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    tid: TenantId,
    period: Option <NaiveDate>,
    employee_id: Option <EmployeeId>,
) -> kc_sdk::Result <Vec <PayrollAdvance>> {
    client.payroll_advances(tid, period, employee_id).await
}

Errors and constraints

Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.

Errors and constraints →

Contract source: crates/kc-api/src/payroll_advances.rs · payroll_advances::list

POST

/api/t/{tid}/payroll/advances

#

post_t_tid_payroll_advances

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired

Request body

FieldTypeRequired
employee_idEmployeeIdRequired
amountMoneyRequired
advance_date
string · YYYY-MM-DDnull
Server default: null
Optional
period
string · YYYY-MM-DDnull
Server default: null
Optional
note
stringnull
Server default: null
Optional
request.json
{
  "employee_id": "00000000-0000-4000-8000-000000000001",
  "amount": 1
}

Successful response

201 · application/json

PayrollAdvanceDetail

Call example

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    tid: TenantId,
    a: &NewPayrollAdvance,
) -> kc_sdk::Result <PayrollAdvanceDetail> {
    client.create_payroll_advance(tid, a).await
}

Errors and constraints

Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.

Errors and constraints →

Contract source: crates/kc-api/src/payroll_advances.rs · payroll_advances::create

POST

/api/t/{tid}/payroll/advances/group

#

post_t_tid_payroll_advances_group

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired

Request body

FieldTypeRequired
amountMoneyRequired
employee_ids
Array<EmployeeId>
Server default: []
Optional
advance_date
string · YYYY-MM-DDnull
Server default: null
Optional
period
string · YYYY-MM-DDnull
Server default: null
Optional
note
stringnull
Server default: null
Optional
request.json
{
  "amount": 1
}

Successful response

201 · application/json

Call example

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    tid: TenantId,
    g: &NewPayrollAdvanceGroup,
) -> kc_sdk::Result <Vec <PayrollAdvance>> {
    client.create_payroll_advance_group(tid, g).await
}

Errors and constraints

payroll_advance_link

Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.

Errors and constraints →

Contract source: crates/kc-api/src/payroll_advances.rs · payroll_advances::create_group

GET

/api/t/{tid}/payroll/advances/{id}

#

get_t_tid_payroll_advances_id

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired
idinteger · i64Required

Request body

No request body.

Successful response

200 · application/json

PayrollAdvanceDetail

Call example

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    tid: TenantId,
    id: PayrollAdvanceId,
) -> kc_sdk::Result <PayrollAdvanceDetail> {
    client.payroll_advance(tid, id).await
}

Errors and constraints

Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.

Errors and constraints →

Contract source: crates/kc-api/src/payroll_advances.rs · payroll_advances::get

POST

/api/t/{tid}/payroll/advances/{id}/cancel

#

post_t_tid_payroll_advances_id_cancel

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired
idinteger · i64Required

Request body

FieldTypeRequired
reasonstringRequired
request.json
{
  "reason": "example"
}

Successful response

201 · application/json

PayrollAdvanceDetail

Call example

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    tid: TenantId,
    id: PayrollAdvanceId,
    c: &CancelPayrollAdvance,
) -> kc_sdk::Result <PayrollAdvanceDetail> {
    client.cancel_payroll_advance(tid, id, c).await
}

Errors and constraints

Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.

Errors and constraints →

Contract source: crates/kc-api/src/payroll_advances.rs · payroll_advances::cancel

POST

/api/t/{tid}/payroll/advances/{id}/payment-order

#

post_t_tid_payroll_advances_id_payment_order

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired
idinteger · i64Required

Request body

FieldTypeRequired
bank_account_idBankAccountIdRequired
value_datestring · YYYY-MM-DDRequired
amount
Moneynull
Server default: null
Optional
request.json
{
  "bank_account_id": "00000000-0000-4000-8000-000000000001",
  "value_date": "2026-01-01"
}

Successful response

201 · application/json

PayrollAdvanceDetail

Call example

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    tid: TenantId,
    id: PayrollAdvanceId,
    p: &NewPayrollAdvancePayment,
) -> kc_sdk::Result <PayrollAdvanceDetail> {
    client.payroll_advance_payment_order(tid, id, p).await
}

Errors and constraints

payroll_advance_paymentpayroll_advance_state

Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.

Errors and constraints →

Contract source: crates/kc-api/src/payroll_advances.rs · payroll_advances::payment_order

GET

/api/t/{tid}/payroll/deduction-plans

#

get_t_tid_payroll_deduction_plans

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired

Query parameters

FieldTypeRequired
employee_id
string · UUIDnull
Optional
status
stringnull
Optional

Request body

No request body.

Successful response

200 · application/json

Call example

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    tid: TenantId,
    employee_id: Option <EmployeeId>,
    status: Option <PayrollDeductionPlanStatus>,
) -> kc_sdk::Result <Vec <PayrollDeductionPlan>> {
    client.payroll_deduction_plans(tid, employee_id, status).await
}

Errors and constraints

Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.

Errors and constraints →

Contract source: crates/kc-api/src/payroll_deduction_plans.rs · payroll_deduction_plans::list

POST

/api/t/{tid}/payroll/deduction-plans

#

post_t_tid_payroll_deduction_plans

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired

Request body

FieldTypeRequired
employee_idEmployeeIdRequired
type_codestringRequired
totalMoneyRequired
installmentMoneyRequired
start_periodstring · YYYY-MM-DDRequired
creditorstringRequired
referencestringServer default: ""Optional
notestringServer default: ""Optional
legal_kindServer default: nullOptional
order_date
string · YYYY-MM-DDnull
Server default: null
Optional
received_on
string · YYYY-MM-DDnull
Server default: null
Optional
claim_date
string · YYYY-MM-DDnull
Server default: null
Optional
consent_date
string · YYYY-MM-DDnull
Server default: null
Optional
request.json
{
  "employee_id": "00000000-0000-4000-8000-000000000001",
  "type_code": "example",
  "total": 1,
  "installment": 1,
  "start_period": "2026-01-01",
  "creditor": "example"
}

Successful response

201 · application/json

PayrollDeductionPlanDetail

Call example

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    tid: TenantId,
    p: &NewPayrollDeductionPlan,
) -> kc_sdk::Result <PayrollDeductionPlanDetail> {
    client.create_payroll_deduction_plan(tid, p).await
}

Errors and constraints

Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.

Errors and constraints →

Contract source: crates/kc-api/src/payroll_deduction_plans.rs · payroll_deduction_plans::add

POST

/api/t/{tid}/payroll/deduction-plans/apply

#

post_t_tid_payroll_deduction_plans_apply

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired

Request body

FieldTypeRequired
periodstring · YYYY-MM-DDRequired
request.json
{
  "period": "2026-01-01"
}

Successful response

200 · application/json

PayrollDeductionPlansApplied

Call example

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    tid: TenantId,
    a: &ApplyPayrollDeductionPlans,
) -> kc_sdk::Result <PayrollDeductionPlansApplied> {
    client.apply_payroll_deduction_plans(tid, a).await
}

Errors and constraints

Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.

Errors and constraints →

Contract source: crates/kc-api/src/payroll_deduction_plans.rs · payroll_deduction_plans::apply

GET

/api/t/{tid}/payroll/deduction-plans/{id}

#

get_t_tid_payroll_deduction_plans_id

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired
idinteger · i64Required

Request body

No request body.

Successful response

200 · application/json

PayrollDeductionPlanDetail

Call example

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    tid: TenantId,
    id: PayrollDeductionPlanId,
) -> kc_sdk::Result <PayrollDeductionPlanDetail> {
    client.payroll_deduction_plan(tid, id).await
}

Errors and constraints

Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.

Errors and constraints →

Contract source: crates/kc-api/src/payroll_deduction_plans.rs · payroll_deduction_plans::get

POST

/api/t/{tid}/payroll/deduction-plans/{id}/close

#

post_t_tid_payroll_deduction_plans_id_close

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired
idinteger · i64Required

Request body

FieldTypeRequired
reasonstringRequired
request.json
{
  "reason": "example"
}

Successful response

200 · application/json

PayrollDeductionPlanDetail

Call example

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    tid: TenantId,
    id: PayrollDeductionPlanId,
    c: &ClosePayrollDeductionPlan,
) -> kc_sdk::Result <PayrollDeductionPlanDetail> {
    client.close_payroll_deduction_plan(tid, id, c).await
}

Errors and constraints

Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.

Errors and constraints →

Contract source: crates/kc-api/src/payroll_deduction_plans.rs · payroll_deduction_plans::close

GET

/api/t/{tid}/payroll/garnishment-limit

#

get_t_tid_payroll_garnishment_limit

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired

Query parameters

FieldTypeRequired
employee_idstring · UUIDRequired
periodstring · YYYY-MM-DDRequired
order_date
string · YYYY-MM-DDnull
Optional

Request body

No request body.

Successful response

200 · application/json

GarnishmentLimit

Call example

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    tid: TenantId,
    employee_id: EmployeeId,
    period: NaiveDate,
    order_date: Option <NaiveDate>,
) -> kc_sdk::Result <GarnishmentLimit> {
    client.payroll_garnishment_limit(tid, employee_id, period, order_date).await
}

Errors and constraints

internal

Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.

Errors and constraints →

Contract source: crates/kc-api/src/payroll_deduction_plans.rs · payroll_deduction_plans::garnishment_limit

GET

/api/t/{tid}/payroll/item-types

#

get_t_tid_payroll_item_types

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired

Request body

No request body.

Successful response

200 · application/json

Call example

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    tid: TenantId,
) -> kc_sdk::Result <Vec <PayrollItemType>> {
    client.payroll_item_types(tid).await
}

Errors and constraints

Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.

Errors and constraints →

Contract source: crates/kc-api/src/payroll.rs · payroll::item_types

GET

/api/t/{tid}/payroll/items

#

get_t_tid_payroll_items

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired

Query parameters

FieldTypeRequired
period
string · YYYY-MM-DDnull
Optional

Request body

No request body.

Successful response

200 · application/json

Call example

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    tid: TenantId,
    period: Option <NaiveDate>,
) -> kc_sdk::Result <Vec <PayrollItem>> {
    client.payroll_items(tid, period).await
}

Errors and constraints

Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.

Errors and constraints →

Contract source: crates/kc-api/src/payroll.rs · payroll::items

POST

/api/t/{tid}/payroll/items

#

post_t_tid_payroll_items

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired

Request body

FieldTypeRequired
employee_idEmployeeIdRequired
periodstring · YYYY-MM-DDRequired
type_codestringRequired
amountMoneyRequired
notestringServer default: ""Optional
request.json
{
  "employee_id": "00000000-0000-4000-8000-000000000001",
  "period": "2026-01-01",
  "type_code": "example",
  "amount": 1
}

Successful response

201 · application/json

PayrollItem

Call example

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    tid: TenantId,
    i: &NewPayrollItem,
) -> kc_sdk::Result <PayrollItem> {
    client.add_payroll_item(tid, i).await
}

Errors and constraints

Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.

Errors and constraints →

Contract source: crates/kc-api/src/payroll.rs · payroll::add_item

POST

/api/t/{tid}/payroll/items/{id}/cancel

#

post_t_tid_payroll_items_id_cancel

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired
idinteger · i64Required

Request body

FieldTypeRequired
reasonstringRequired
request.json
{
  "reason": "example"
}

Successful response

200 · application/json

PayrollItem

Call example

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    tid: TenantId,
    id: i64,
    reason: &str,
) -> kc_sdk::Result <PayrollItem> {
    client.cancel_payroll_item(tid, id, reason).await
}

Errors and constraints

Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.

Errors and constraints →

Contract source: crates/kc-api/src/payroll.rs · payroll::cancel_item

POST

/api/t/{tid}/payroll/mpin/epdd/{id}/check

#

post_t_tid_payroll_mpin_epdd_id_check

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired
idinteger · i64Required

Request body

No request body.

Successful response

201 · application/json

MpinEpddSubmission

Call example

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    tid: TenantId,
    id: i64,
) -> kc_sdk::Result <MpinEpddSubmission> {
    client.mpin_epdd_check(tid, id).await
}

Errors and constraints

mpin_status_final

Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.

Errors and constraints →

Contract source: crates/kc-api/src/mpin_epdd.rs · mpin_epdd::check

GET

/api/t/{tid}/payroll/mpin/municipalities

#

get_t_tid_payroll_mpin_municipalities

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired

Request body

No request body.

Successful response

200 · application/json

Array<MpinCode>

Call example

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    tid: TenantId,
) -> kc_sdk::Result <Vec <MpinCode>> {
    client.mpin_municipalities(tid).await
}

Errors and constraints

Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.

Errors and constraints →

Contract source: crates/kc-api/src/mpin_epdd.rs · mpin_epdd::municipalities

GET

/api/t/{tid}/payroll/mpin/settings

#

get_t_tid_payroll_mpin_settings

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired

Request body

No request body.

Successful response

200 · application/json

MpinSettings

Call example

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    tid: TenantId,
) -> kc_sdk::Result <MpinSettings> {
    client.mpin_settings(tid).await
}

Errors and constraints

Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.

Errors and constraints →

Contract source: crates/kc-api/src/mpin_epdd.rs · mpin_epdd::settings

POST

/api/t/{tid}/payroll/mpin/settings

#

post_t_tid_payroll_mpin_settings

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired

Request body

FieldTypeRequired
epdd_usernamestringServer default: ""Optional
payer_kindstringServer default: "110"Optional
obligation_kindstringServer default: "101"Optional
versioninteger · i32Server default: 0Optional
request.json
{}

Successful response

201 · application/json

MpinSettings

Call example

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    tid: TenantId,
    s: &MpinSettings,
) -> kc_sdk::Result <MpinSettings> {
    client.set_mpin_settings(tid, s).await
}

Errors and constraints

mpin_code

Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.

Errors and constraints →

Contract source: crates/kc-api/src/mpin_epdd.rs · mpin_epdd::set_settings

GET

/api/t/{tid}/payroll/parameters

#

get_t_tid_payroll_parameters

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired

Query parameters

FieldTypeRequired
date
string · YYYY-MM-DDnull
Optional

Request body

No request body.

Successful response

200 · application/json

Call example

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    tid: TenantId,
    date: Option <NaiveDate>,
) -> kc_sdk::Result <Vec <PayrollParam>> {
    client.payroll_params(tid, date).await
}

Errors and constraints

Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.

Errors and constraints →

Contract source: crates/kc-api/src/payroll.rs · payroll::params

POST

/api/t/{tid}/payroll/parameters

#

post_t_tid_payroll_parameters

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired

Request body

FieldTypeRequired
codestringRequired
valid_fromstring · YYYY-MM-DDRequired
valuestringRequired
sourcestringRequired
verifiedbooleanRequired
notestringServer default: ""Optional
reasonstringRequired
request.json
{
  "code": "example",
  "valid_from": "2026-01-01",
  "value": "dark",
  "source": "example",
  "verified": true,
  "reason": "example"
}

Successful response

201 · application/json

PayrollParam

Call example

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    tid: TenantId,
    p: &NewPayrollParam,
) -> kc_sdk::Result <PayrollParam> {
    client.set_payroll_param(tid, p).await
}

Errors and constraints

bad_param_valuemissing_sourcenegative_retail_growthunknown_param

Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.

Errors and constraints →

Contract source: crates/kc-api/src/payroll.rs · payroll::set_param

GET

/api/t/{tid}/payroll/preview

#

get_t_tid_payroll_preview

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired

Query parameters

FieldTypeRequired
period
string · YYYY-MM-DDnull
Optional

Request body

No request body.

Successful response

200 · application/json

PayrollRun

Call example

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    tid: TenantId,
    period: NaiveDate,
) -> kc_sdk::Result <PayrollRun> {
    client.payroll_preview(tid, period).await
}

Errors and constraints

Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.

Errors and constraints →

Contract source: crates/kc-api/src/payroll.rs · payroll::preview

POST

/api/t/{tid}/payroll/preview

#

post_t_tid_payroll_preview

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired

Request body

FieldTypeRequired
periodstring · YYYY-MM-DDRequired
reason
stringnull
Server default: null
Optional
kindPayrollCalcKindServer defaultOptional
seq
integer · i32null
Server default: null
Optional
share_pct
stringnull
Server default: null
Optional
amountsServer default: []Optional
employees
Array<EmployeeId>
Server default: []
Optional
request.json
{
  "period": "2026-01-01"
}

Successful response

200 · application/json

PayrollRun

Call example

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    tid: TenantId,
    l: &LockPayroll,
) -> kc_sdk::Result <PayrollRun> {
    client.payroll_preview_kind(tid, l).await
}

Errors and constraints

Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.

Errors and constraints →

Contract source: crates/kc-api/src/payroll.rs · payroll::preview_kind

GET

/api/t/{tid}/payroll/runs

#

get_t_tid_payroll_runs

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired

Query parameters

FieldTypeRequired
period
string · YYYY-MM-DDnull
Optional

Request body

No request body.

Successful response

200 · application/json

Call example

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    tid: TenantId,
    period: Option <NaiveDate>,
) -> kc_sdk::Result <Vec <PayrollRunSummary>> {
    client.payroll_runs(tid, period).await
}

Errors and constraints

internal

Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.

Errors and constraints →

Contract source: crates/kc-api/src/payroll.rs · payroll::runs

POST

/api/t/{tid}/payroll/runs

#

post_t_tid_payroll_runs

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired

Request body

FieldTypeRequired
periodstring · YYYY-MM-DDRequired
reason
stringnull
Server default: null
Optional
kindPayrollCalcKindServer defaultOptional
seq
integer · i32null
Server default: null
Optional
share_pct
stringnull
Server default: null
Optional
amountsServer default: []Optional
employees
Array<EmployeeId>
Server default: []
Optional
request.json
{
  "period": "2026-01-01"
}

Successful response

201 · application/json

PayrollRun

Call example

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    tid: TenantId,
    period: NaiveDate,
    reason: Option <&str>,
) -> kc_sdk::Result <PayrollRun> {
    client.lock_payroll(tid, period, reason).await
}

lock_payroll_kind

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    tid: TenantId,
    l: &LockPayroll,
) -> kc_sdk::Result <PayrollRun> {
    client.lock_payroll_kind(tid, l).await
}

Errors and constraints

Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.

Errors and constraints →

Contract source: crates/kc-api/src/payroll.rs · payroll::lock

GET

/api/t/{tid}/payroll/runs/{id}

#

get_t_tid_payroll_runs_id

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired
idPayrollRunIdRequired

Request body

No request body.

Successful response

200 · application/json

PayrollRun

Call example

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    tid: TenantId,
    id: PayrollRunId,
) -> kc_sdk::Result <PayrollRun> {
    client.payroll_run(tid, id).await
}

Errors and constraints

Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.

Errors and constraints →

Contract source: crates/kc-api/src/payroll.rs · payroll::run

GET

/api/t/{tid}/payroll/runs/{id}/header

#

get_t_tid_payroll_runs_id_header

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired
idPayrollRunIdRequired

Query parameters

FieldTypeRequired
line
integer · i32null
Optional

Request body

No request body.

Successful response

200 · application/json

PayrollRun

Call example

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    tid: TenantId,
    id: PayrollRunId,
    line: Option <i32>,
) -> kc_sdk::Result <PayrollRun> {
    client.payroll_run_header(tid, id, line).await
}

Errors and constraints

Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.

Errors and constraints →

Contract source: crates/kc-api/src/payroll.rs · payroll::run_header

GET

/api/t/{tid}/payroll/runs/{id}/mpin

#

get_t_tid_payroll_runs_id_mpin

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired
idPayrollRunIdRequired

Request body

No request body.

Successful response

200 · application/json

MpinExport

Call example

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    tid: TenantId,
    id: PayrollRunId,
) -> kc_sdk::Result <MpinExport> {
    client.mpin(tid, id).await
}

Errors and constraints

Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.

Errors and constraints →

Contract source: crates/kc-api/src/payroll.rs · payroll::mpin

POST

/api/t/{tid}/payroll/runs/{id}/mpin

#

post_t_tid_payroll_runs_id_mpin

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired
idPayrollRunIdRequired

Request body

FieldTypeRequired
referencestringRequired
notestringServer default: ""Optional
request.json
{
  "reference": "example"
}

Successful response

201 · application/json

MpinSubmission

Call example

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    tid: TenantId,
    id: PayrollRunId,
    f: &MpinFiled,
) -> kc_sdk::Result <MpinSubmission> {
    client.mpin_filed(tid, id, f).await
}

Errors and constraints

missing_reference

Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.

Errors and constraints →

Contract source: crates/kc-api/src/payroll.rs · payroll::mpin_filed

GET

/api/t/{tid}/payroll/runs/{id}/mpin/epdd

#

get_t_tid_payroll_runs_id_mpin_epdd

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired
idPayrollRunIdRequired

Request body

No request body.

Successful response

200 · application/json

MpinEpddPreview

Call example

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    tid: TenantId,
    id: PayrollRunId,
) -> kc_sdk::Result <MpinEpddPreview> {
    client.mpin_epdd(tid, id).await
}

Errors and constraints

Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.

Errors and constraints →

Contract source: crates/kc-api/src/mpin_epdd.rs · mpin_epdd::preview

POST

/api/t/{tid}/payroll/runs/{id}/mpin/epdd

#

post_t_tid_payroll_runs_id_mpin_epdd

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired
idPayrollRunIdRequired

Request body

No request body.

Successful response

201 · application/json

MpinEpddSubmission

Call example

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    tid: TenantId,
    id: PayrollRunId,
) -> kc_sdk::Result <MpinEpddSubmission> {
    client.mpin_epdd_submit(tid, id).await
}

Errors and constraints

mpin_already_acceptedmpin_usernamesign_failed

Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.

Errors and constraints →

Contract source: crates/kc-api/src/mpin_epdd.rs · mpin_epdd::submit

POST

/api/t/{tid}/payroll/runs/{id}/mpin/epdd/sign

#

post_t_tid_payroll_runs_id_mpin_epdd_sign

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired
idPayrollRunIdRequired

Request body

No request body.

Successful response

200 · application/json

MpinSignedXml

Call example

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    tid: TenantId,
    id: PayrollRunId,
) -> kc_sdk::Result <MpinSignedXml> {
    client.mpin_epdd_sign(tid, id).await
}

Errors and constraints

sign_failed

Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.

Errors and constraints →

Contract source: crates/kc-api/src/mpin_epdd.rs · mpin_epdd::sign

POST

/api/t/{tid}/payroll/runs/{id}/post

#

post_t_tid_payroll_runs_id_post

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired
idPayrollRunIdRequired

Request body

FieldTypeRequired
posting_date
string · YYYY-MM-DDnull
Server default: null
Optional
request.json
{}

Successful response

201 · application/json

PayrollPostResult

Call example

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    tid: TenantId,
    id: PayrollRunId,
    posting_date: Option <NaiveDate>,
) -> kc_sdk::Result <PayrollPostResult> {
    client.post_payroll(tid, id, posting_date).await
}

Errors and constraints

internal

Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.

Errors and constraints →

Contract source: crates/kc-api/src/payroll.rs · payroll::post

GET

/api/t/{tid}/travel-allowance-rates

#

get_t_tid_travel_allowance_rates

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired

Request body

No request body.

Successful response

200 · application/json

Array<TravelRate>

Call example

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    tid: TenantId,
) -> kc_sdk::Result <Vec <TravelRate>> {
    client.travel_rates(tid).await
}

Errors and constraints

Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.

Errors and constraints →

Contract source: crates/kc-api/src/travel_orders.rs · travel_orders::rates

POST

/api/t/{tid}/travel-allowance-rates

#

post_t_tid_travel_allowance_rates

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired

Request body

FieldTypeRequired
countrystringRequired
valid_fromstring · YYYY-MM-DDRequired
currencystringRequired
amountinteger · i64Required
sourcestringRequired
verifiedbooleanServer default: falseOptional
notestringServer default: ""Optional
reasonstringRequired
request.json
{
  "country": "example",
  "valid_from": "2026-01-01",
  "currency": "MKD",
  "amount": 1,
  "source": "example",
  "reason": "example"
}

Successful response

201 · application/json

TravelRate

Call example

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    tid: TenantId,
    r: &NewTravelRate,
) -> kc_sdk::Result <TravelRate> {
    client.add_travel_rate(tid, r).await
}

Errors and constraints

Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.

Errors and constraints →

Contract source: crates/kc-api/src/travel_orders.rs · travel_orders::add_rate

POST

/api/t/{tid}/travel-expenses/{id}/cancel

#

post_t_tid_travel_expenses_id_cancel

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired
idinteger · i64Required

Request body

FieldTypeRequired
reasonstringRequired
request.json
{
  "reason": "example"
}

Successful response

201 · application/json

TravelOrderDetail

Call example

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    tid: TenantId,
    expense: TravelExpenseId,
    c: &TravelCancel,
) -> kc_sdk::Result <TravelOrderDetail> {
    client.cancel_travel_expense(tid, expense, c).await
}

Errors and constraints

travel_state

Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.

Errors and constraints →

Contract source: crates/kc-api/src/travel_orders.rs · travel_orders::cancel_expense

GET

/api/t/{tid}/travel-orders

#

get_t_tid_travel_orders

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired

Query parameters

FieldTypeRequired
year
integer · i32null
Optional

Request body

No request body.

Successful response

200 · application/json

Call example

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    tid: TenantId,
    year: Option <i32>,
) -> kc_sdk::Result <Vec <TravelOrder>> {
    client.travel_orders(tid, year).await
}

Errors and constraints

Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.

Errors and constraints →

Contract source: crates/kc-api/src/travel_orders.rs · travel_orders::list

POST

/api/t/{tid}/travel-orders

#

post_t_tid_travel_orders

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired

Request body

FieldTypeRequired
order_date
string · YYYY-MM-DDnull
Server default: null
Optional
employee_idEmployeeIdRequired
purposestringRequired
destinationstringRequired
countrystringRequired
transportTravelTransportRequired
vehicle
stringnull
Server default: null
Optional
depart_atstringRequired
return_atstringRequired
advanceMoneyServer defaultOptional
breakfastsinteger · i32Server default: 0Optional
lunchesinteger · i32Server default: 0Optional
dinnersinteger · i32Server default: 0Optional
cost_center_idServer default: nullOptional
note
stringnull
Server default: null
Optional
request.json
{
  "employee_id": "00000000-0000-4000-8000-000000000001",
  "purpose": "example",
  "destination": "example",
  "country": "example",
  "transport": "company_vehicle",
  "depart_at": "example",
  "return_at": "example"
}

Successful response

201 · application/json

TravelOrderDetail

Call example

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    tid: TenantId,
    o: &NewTravelOrder,
) -> kc_sdk::Result <TravelOrderDetail> {
    client.create_travel_order(tid, o).await
}

Errors and constraints

Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.

Errors and constraints →

Contract source: crates/kc-api/src/travel_orders.rs · travel_orders::create

GET

/api/t/{tid}/travel-orders/{id}

#

get_t_tid_travel_orders_id

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired
idinteger · i64Required

Request body

No request body.

Successful response

200 · application/json

TravelOrderDetail

Call example

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    tid: TenantId,
    id: TravelOrderId,
) -> kc_sdk::Result <TravelOrderDetail> {
    client.travel_order(tid, id).await
}

Errors and constraints

Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.

Errors and constraints →

Contract source: crates/kc-api/src/travel_orders.rs · travel_orders::get

POST

/api/t/{tid}/travel-orders/{id}/cancel

#

post_t_tid_travel_orders_id_cancel

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired
idinteger · i64Required

Request body

FieldTypeRequired
reasonstringRequired
request.json
{
  "reason": "example"
}

Successful response

201 · application/json

TravelOrderDetail

Call example

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    tid: TenantId,
    id: TravelOrderId,
    c: &TravelCancel,
) -> kc_sdk::Result <TravelOrderDetail> {
    client.cancel_travel_order(tid, id, c).await
}

Errors and constraints

Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.

Errors and constraints →

Contract source: crates/kc-api/src/travel_orders.rs · travel_orders::cancel

POST

/api/t/{tid}/travel-orders/{id}/expenses

#

post_t_tid_travel_orders_id_expenses

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired
idinteger · i64Required

Request body

FieldTypeRequired
kindTravelLineKindRequired
descriptionstringRequired
doc_datestring · YYYY-MM-DDRequired
currencystringServer default: "MKD"Optional
amountinteger · i64Required
attachment_idServer default: nullOptional
request.json
{
  "kind": "per_diem",
  "description": "example",
  "doc_date": "2026-01-01",
  "amount": 1
}

Successful response

201 · application/json

TravelOrderDetail

Call example

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    tid: TenantId,
    id: TravelOrderId,
    e: &NewTravelExpense,
) -> kc_sdk::Result <TravelOrderDetail> {
    client.add_travel_expense(tid, id, e).await
}

Errors and constraints

Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.

Errors and constraints →

Contract source: crates/kc-api/src/travel_orders.rs · travel_orders::add_expense

POST

/api/t/{tid}/travel-orders/{id}/payment-order

#

post_t_tid_travel_orders_id_payment_order

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired
idinteger · i64Required

Request body

FieldTypeRequired
kindTravelPaymentKindRequired
bank_account_idBankAccountIdRequired
value_datestring · YYYY-MM-DDRequired
amount
Moneynull
Server default: null
Optional
request.json
{
  "kind": "advance",
  "bank_account_id": "00000000-0000-4000-8000-000000000001",
  "value_date": "2026-01-01"
}

Successful response

201 · application/json

TravelOrderDetail

Call example

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    tid: TenantId,
    id: TravelOrderId,
    p: &NewTravelPayment,
) -> kc_sdk::Result <TravelOrderDetail> {
    client.travel_payment_order(tid, id, p).await
}

Errors and constraints

travel_payment

Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.

Errors and constraints →

Contract source: crates/kc-api/src/travel_orders.rs · travel_orders::payment_order

GET

/api/t/{tid}/travel-orders/{id}/preview

#

get_t_tid_travel_orders_id_preview

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired
idinteger · i64Required

Query parameters

FieldTypeRequired
date
string · YYYY-MM-DDnull
Optional

Request body

No request body.

Successful response

200 · application/json

TravelCalculation

Call example

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    tid: TenantId,
    id: TravelOrderId,
    date: Option <NaiveDate>,
) -> kc_sdk::Result <TravelCalculation> {
    client.travel_order_preview(tid, id, date).await
}

Errors and constraints

Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.

Errors and constraints →

Contract source: crates/kc-api/src/travel_orders.rs · travel_orders::preview

POST

/api/t/{tid}/travel-orders/{id}/settle

#

post_t_tid_travel_orders_id_settle

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired
idinteger · i64Required

Request body

FieldTypeRequired
date
string · YYYY-MM-DDnull
Server default: null
Optional
request.json
{}

Successful response

201 · application/json

TravelOrderDetail

Call example

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    tid: TenantId,
    id: TravelOrderId,
    s: &TravelSettle,
) -> kc_sdk::Result <TravelOrderDetail> {
    client.settle_travel_order(tid, id, s).await
}

Errors and constraints

Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.

Errors and constraints →

Contract source: crates/kc-api/src/travel_orders.rs · travel_orders::settle

Complete JSON types

The types below include every nested field for this area. Requiredness describes deserialization; business validation can require additional values.

Absence

FieldTypeRequired
idAbsenceIdRequired
employee_idEmployeeIdRequired
first_namestringRequired
last_namestringRequired
kindAbsenceKindRequired
payerAbsencePayerRequired
case_fromstring · YYYY-MM-DDRequired
date_fromstring · YYYY-MM-DDRequired
date_tostring · YYYY-MM-DDRequired
daysinteger · i32Required
employer_liablebooleanRequired
documentstringRequired
notestringRequired
insurance_approvalstringServer default: ""Optional
statusLeaveStatusRequired
cancel_reason
stringnull
Optional
cancelled_at
string · ISO 8601null
Optional
created_atstring · ISO 8601Required
created_bystringRequired

AbsenceKind

"sick""work_injury""child_care""donation""maternity"

ContractChange

FieldTypeRequired
kindContractKindRequired
valid_fromstring · YYYY-MM-DDRequired
valid_to
string · YYYY-MM-DDnull
Server default: null
Optional
hours_per_weekinteger · i32Required
salary_basisSalaryBasisRequired
salary_amountMoneyRequired
cost_accountstringRequired
personal_exemptionbooleanServer default: trueOptional
prior_servicePriorServiceServer defaultOptional
reasonstringRequired
effective_from
string · YYYY-MM-DDnull
Server default: null
Optional

ContractData

FieldTypeRequired
kindContractKindRequired
valid_fromstring · YYYY-MM-DDRequired
valid_to
string · YYYY-MM-DDnull
Server default: null
Optional
hours_per_weekinteger · i32Required
salary_basisSalaryBasisRequired
salary_amountMoneyRequired
cost_accountstringRequired
personal_exemptionbooleanServer default: trueOptional
prior_servicePriorServiceServer defaultOptional

ContractVersion

FieldTypeRequired
versioninteger · i32Required
kindContractKindRequired
valid_fromstring · YYYY-MM-DDRequired
valid_to
string · YYYY-MM-DDnull
Server default: null
Optional
hours_per_weekinteger · i32Required
salary_basisSalaryBasisRequired
salary_amountMoneyRequired
cost_accountstringRequired
personal_exemptionbooleanServer default: trueOptional
prior_servicePriorServiceServer defaultOptional
reason
stringnull
Server default: null
Optional
effective_from
string · YYYY-MM-DDnull
Server default: null
Optional
created_atstring · ISO 8601Required
created_bystringRequired

Employee

FieldTypeRequired
idEmployeeIdRequired
embgstringRequired
embg_checksum_okbooleanRequired
versioninteger · i32Required
currentEmployeeDataRequired
versionsRequired
contracts
Array<Contract>
Required
created_atstring · ISO 8601Required
created_bystringRequired

EmployeeChange

FieldTypeRequired
first_namestringRequired
last_namestringRequired
addressstringServer default: ""Optional
bank_accountstringServer default: ""Optional
activebooleanServer default: trueOptional
reasonstringRequired

EmployeeData

FieldTypeRequired
first_namestringRequired
last_namestringRequired
addressstringServer default: ""Optional
bank_accountstringServer default: ""Optional
activebooleanServer default: trueOptional

EmployeeSummary

FieldTypeRequired
idEmployeeIdRequired
embgstringRequired
first_namestringRequired
last_namestringRequired
activebooleanRequired
versioninteger · i32Required
contractsinteger · i64Required

EmployeeVersion

FieldTypeRequired
versioninteger · i32Required
first_namestringRequired
last_namestringRequired
addressstringServer default: ""Optional
bank_accountstringServer default: ""Optional
activebooleanServer default: trueOptional
reason
stringnull
Server default: null
Optional
created_atstring · ISO 8601Required
created_bystringRequired

GarnishmentLimit

FieldTypeRequired
employee_idEmployeeIdRequired
periodstring · YYYY-MM-DDRequired
grossMoneyRequired
netMoneyRequired
order_date
string · YYYY-MM-DDnull
Server default: null
Optional
avg_salary
Moneynull
Server default: null
Optional
fifthbooleanRequired
support_maxMoneyRequired
other_maxMoneyRequired
requestedMoneyRequired
withheldMoneyRequired
garnishmentsServer default: []Optional

LeaveBalance

FieldTypeRequired
entitlement_idinteger · i64Required
versioninteger · i32Required
total_daysinteger · i32Required
carried_daysinteger · i32Required
carried_untilstring · YYYY-MM-DDRequired
approvedinteger · i32Required
usedinteger · i32Required
used_carriedinteger · i32Required
current_usedinteger · i32Required
expiredinteger · i32Required
remaininginteger · i32Required
unverifiedbooleanRequired

LeaveCriterion

FieldTypeRequired
codestringRequired
namestringRequired
max_daysinteger · i32Required
valid_fromstring · YYYY-MM-DDRequired
sourcestringRequired
verifiedbooleanRequired

LeaveDecision

FieldTypeRequired
idLeaveDecisionIdRequired
numberstringRequired
yearinteger · i32Required
employee_idEmployeeIdRequired
personLeavePersonRequired
decision_datestring · YYYY-MM-DDRequired
date_fromstring · YYYY-MM-DDRequired
date_tostring · YYYY-MM-DDRequired
daysinteger · i32Required
usedinteger · i32Required
entitlement_daysinteger · i32Required
carried_daysinteger · i32Required
carried_until
string · YYYY-MM-DDnull
Optional
approved_beforeinteger · i32Required
unverifiedbooleanRequired
notestringRequired
statusLeaveStatusRequired
cancel_reason
stringnull
Optional
cancelled_at
string · ISO 8601null
Optional
created_atstring · ISO 8601Required
created_bystringRequired
usages
Array<LeaveUsage>
Required

LeaveEntitlement

FieldTypeRequired
idinteger · i64Required
employee_idEmployeeIdRequired
yearinteger · i32Required
versioninteger · i32Required
base_daysinteger · i32Required
criteriaRequired
criteria_daysinteger · i32Required
total_daysinteger · i32Required
carried_daysinteger · i32Required
carried_untilstring · YYYY-MM-DDRequired
unverifiedbooleanRequired
prorata_notestringRequired
reason
stringnull
Optional
created_atstring · ISO 8601Required
created_bystringRequired

LeavePerson

FieldTypeRequired
embgstringRequired
first_namestringRequired
last_namestringRequired

LeaveRules

FieldTypeRequired
yearinteger · i32Required
min_daysinteger · i32Required
max_daysinteger · i32Required
carried_untilstring · YYYY-MM-DDRequired
unverified
Array<string>
Required
criteriaRequired

LeaveUsage

FieldTypeRequired
idLeaveUsageIdRequired
decision_idLeaveDecisionIdRequired
date_fromstring · YYYY-MM-DDRequired
date_tostring · YYYY-MM-DDRequired
daysinteger · i32Required
notestringRequired
statusLeaveStatusRequired
cancel_reason
stringnull
Optional
cancelled_at
string · ISO 8601null
Optional
created_atstring · ISO 8601Required
created_bystringRequired

LeaveWorkingDays

FieldTypeRequired
fromstring · YYYY-MM-DDRequired
tostring · YYYY-MM-DDRequired
daysinteger · i32Required

LockPayroll

FieldTypeRequired
periodstring · YYYY-MM-DDRequired
reason
stringnull
Server default: null
Optional
kindPayrollCalcKindServer defaultOptional
seq
integer · i32null
Server default: null
Optional
share_pct
stringnull
Server default: null
Optional
amountsServer default: []Optional
employees
Array<EmployeeId>
Server default: []
Optional

MpinCode

FieldTypeRequired
codestringRequired
namestringRequired

MpinEpddCheck

FieldTypeRequired
idinteger · i64Required
statusstringRequired
created_atstring · ISO 8601Required
created_bystringRequired

MpinEpddEmployee

FieldTypeRequired
line_nointeger · i32Required
employee_idEmployeeIdRequired
embgstringRequired
namestringRequired
municipality
stringnull
Server default: null
Optional
bank_accountstringRequired
relationstringRequired
movementstringRequired
daysinteger · i32Required
hoursinteger · i32Required
grossMoneyRequired
leave_hoursinteger · i32Server default: 0Optional
leave_grossMoneyServer defaultOptional
sick_hoursinteger · i32Server default: 0Optional
sick_grossMoneyServer defaultOptional

MpinEpddIssue

FieldTypeRequired
pathstringRequired
messagestringRequired

MpinEpddSubmission

FieldTypeRequired
idinteger · i64Required
run_idPayrollRunIdRequired
run_versioninteger · i32Required
periodstring · YYYY-MM-DDRequired
xml_sha256stringRequired
statusinteger · i32Required
error_code
stringnull
Server default: null
Optional
error_messages
Array<string>
Server default: []
Optional
transaction_id
integer · i64null
Server default: null
Optional
checksServer default: []Optional
acceptedbooleanRequired
created_atstring · ISO 8601Required
created_bystringRequired

MpinExport

FieldTypeRequired
notestringRequired
tenant_namestringRequired
tenant_edbstringRequired
periodstring · YYYY-MM-DDRequired
run_idPayrollRunIdRequired
versioninteger · i32Required
calc_kindPayrollCalcKindServer defaultOptional
unverified
Array<string>
Required
rows
Array<MpinRow>
Required
grossMoneyRequired
contributionsMoneyRequired
pitMoneyRequired
netMoneyRequired
submissionsServer default: []Optional

MpinFiled

FieldTypeRequired
referencestringRequired
notestringServer default: ""Optional

MpinRow

FieldTypeRequired
line_nointeger · i32Required
embgstringRequired
first_namestringRequired
last_namestringRequired
kindPayrollKindRequired
hours_per_week
integer · i64null
Server default: null
Optional
grossMoneyRequired
baseMoneyRequired
pioMoneyRequired
healthMoneyRequired
unemploymentMoneyRequired
injuryMoneyRequired
contributionsMoneyRequired
exemptionMoneyRequired
tax_baseMoneyRequired
pitMoneyRequired
netMoneyRequired
leave_daysinteger · i32Server default: 0Optional
leave_compMoneyServer defaultOptional
sick_daysinteger · i32Server default: 0Optional
sick_fund_daysinteger · i32Server default: 0Optional
sick_compMoneyServer defaultOptional

MpinSettings

FieldTypeRequired
epdd_usernamestringServer default: ""Optional
payer_kindstringServer default: "110"Optional
obligation_kindstringServer default: "101"Optional
versioninteger · i32Server default: 0Optional

MpinSignedXml

FieldTypeRequired
file_namestringRequired
xmlstringRequired
sha256stringRequired

MpinSubmission

FieldTypeRequired
idinteger · i64Required
run_idPayrollRunIdRequired
periodstring · YYYY-MM-DDRequired
referencestringRequired
notestringRequired
created_atstring · ISO 8601Required
created_bystringRequired

NewAbsence

FieldTypeRequired
employee_idEmployeeIdRequired
kindAbsenceKindRequired
case_from
string · YYYY-MM-DDnull
Server default: null
Optional
date_fromstring · YYYY-MM-DDRequired
date_tostring · YYYY-MM-DDRequired
employer_liablebooleanServer default: falseOptional
documentstringServer default: ""Optional
notestringServer default: ""Optional
insurance_approvalstringServer default: ""Optional

NewContract

FieldTypeRequired
kindContractKindRequired
valid_fromstring · YYYY-MM-DDRequired
valid_to
string · YYYY-MM-DDnull
Server default: null
Optional
hours_per_weekinteger · i32Required
salary_basisSalaryBasisRequired
salary_amountMoneyRequired
cost_accountstringRequired
personal_exemptionbooleanServer default: trueOptional
prior_servicePriorServiceServer defaultOptional

NewEmployee

FieldTypeRequired
embgstringRequired
first_namestringRequired
last_namestringRequired
addressstringServer default: ""Optional
bank_accountstringServer default: ""Optional
activebooleanServer default: trueOptional

NewLeaveDecision

FieldTypeRequired
employee_idEmployeeIdRequired
yearinteger · i32Required
decision_datestring · YYYY-MM-DDRequired
date_fromstring · YYYY-MM-DDRequired
date_tostring · YYYY-MM-DDRequired
notestringServer default: ""Optional

NewLeaveEntitlement

FieldTypeRequired
employee_idEmployeeIdRequired
yearinteger · i32Required
base_daysinteger · i32Required
criteriaServer default: []Optional
carried_daysinteger · i32Server default: 0Optional
prorata_notestringServer default: ""Optional
reasonstringServer default: ""Optional

NewLeaveUsage

FieldTypeRequired
date_fromstring · YYYY-MM-DDRequired
date_tostring · YYYY-MM-DDRequired
notestringServer default: ""Optional

NewPayrollAdvance

FieldTypeRequired
employee_idEmployeeIdRequired
amountMoneyRequired
advance_date
string · YYYY-MM-DDnull
Server default: null
Optional
period
string · YYYY-MM-DDnull
Server default: null
Optional
note
stringnull
Server default: null
Optional

NewPayrollAdvanceGroup

FieldTypeRequired
amountMoneyRequired
employee_ids
Array<EmployeeId>
Server default: []
Optional
advance_date
string · YYYY-MM-DDnull
Server default: null
Optional
period
string · YYYY-MM-DDnull
Server default: null
Optional
note
stringnull
Server default: null
Optional

NewPayrollDeductionPlan

FieldTypeRequired
employee_idEmployeeIdRequired
type_codestringRequired
totalMoneyRequired
installmentMoneyRequired
start_periodstring · YYYY-MM-DDRequired
creditorstringRequired
referencestringServer default: ""Optional
notestringServer default: ""Optional
legal_kindServer default: nullOptional
order_date
string · YYYY-MM-DDnull
Server default: null
Optional
received_on
string · YYYY-MM-DDnull
Server default: null
Optional
claim_date
string · YYYY-MM-DDnull
Server default: null
Optional
consent_date
string · YYYY-MM-DDnull
Server default: null
Optional

NewPayrollItem

FieldTypeRequired
employee_idEmployeeIdRequired
periodstring · YYYY-MM-DDRequired
type_codestringRequired
amountMoneyRequired
notestringServer default: ""Optional

NewPayrollParam

FieldTypeRequired
codestringRequired
valid_fromstring · YYYY-MM-DDRequired
valuestringRequired
sourcestringRequired
verifiedbooleanRequired
notestringServer default: ""Optional
reasonstringRequired

NewTravelExpense

FieldTypeRequired
kindTravelLineKindRequired
descriptionstringRequired
doc_datestring · YYYY-MM-DDRequired
currencystringServer default: "MKD"Optional
amountinteger · i64Required
attachment_idServer default: nullOptional

NewTravelOrder

FieldTypeRequired
order_date
string · YYYY-MM-DDnull
Server default: null
Optional
employee_idEmployeeIdRequired
purposestringRequired
destinationstringRequired
countrystringRequired
transportTravelTransportRequired
vehicle
stringnull
Server default: null
Optional
depart_atstringRequired
return_atstringRequired
advanceMoneyServer defaultOptional
breakfastsinteger · i32Server default: 0Optional
lunchesinteger · i32Server default: 0Optional
dinnersinteger · i32Server default: 0Optional
cost_center_idServer default: nullOptional
note
stringnull
Server default: null
Optional

NewTravelRate

FieldTypeRequired
countrystringRequired
valid_fromstring · YYYY-MM-DDRequired
currencystringRequired
amountinteger · i64Required
sourcestringRequired
verifiedbooleanServer default: falseOptional
notestringServer default: ""Optional
reasonstringRequired

PaymentOrder

FieldTypeRequired
idPaymentOrderIdRequired
bank_account_idBankAccountIdRequired
payer_accountstringRequired
formPaymentFormRequired
payee_namestringRequired
payee_accountstringRequired
payee_bankstringRequired
amountMoneyRequired
purposestringRequired
payment_codestringRequired
payer_refstringRequired
payee_refstringRequired
revenue_codestringRequired
program_codestringRequired
budget_account
stringnull
Server default: null
Optional
urgentbooleanRequired
value_datestring · YYYY-MM-DDRequired
partner_idOptional
entry_id
EntryIdnull
Optional
line_no
integer · i32null
Optional
payroll_run_idOptional
payroll_line_no
integer · i32null
Optional
notestringRequired
statusPaymentStatusRequired
batch_idOptional
cancel_reason
stringnull
Optional
created_atstring · ISO 8601Required
created_bystringRequired

PayrollAdvance

FieldTypeRequired
idPayrollAdvanceIdRequired
yearinteger · i32Required
numberinteger · i32Required
advance_datestring · YYYY-MM-DDRequired
periodstring · YYYY-MM-DDRequired
employee_idEmployeeIdRequired
employee_namestringRequired
amountMoneyRequired
expected_netMoneyRequired
deductionsMoneyRequired
max_pctstringRequired
limit_amountMoneyRequired
note
stringnull
Server default: null
Optional
statusPayrollAdvanceStatusRequired
paidMoneyRequired
entry_id
EntryIdnull
Server default: null
Optional
storno_entry_id
EntryIdnull
Server default: null
Optional
cancel_reason
stringnull
Server default: null
Optional
created_atstring · ISO 8601Required
created_bystringRequired

PayrollDeductionPlan

FieldTypeRequired
idPayrollDeductionPlanIdRequired
employee_idEmployeeIdRequired
employee_namestringRequired
type_codestringRequired
type_namestringRequired
totalMoneyRequired
installmentMoneyRequired
start_periodstring · YYYY-MM-DDRequired
creditorstringRequired
referencestringRequired
notestringRequired
legal_kindServer default: nullOptional
order_date
string · YYYY-MM-DDnull
Server default: null
Optional
received_on
string · YYYY-MM-DDnull
Server default: null
Optional
order_avg_salary
Moneynull
Server default: null
Optional
claim_date
string · YYYY-MM-DDnull
Server default: null
Optional
consent_date
string · YYYY-MM-DDnull
Server default: null
Optional
deductedMoneyRequired
requestedMoneyServer defaultOptional
remainingMoneyRequired
installmentsinteger · i32Required
last_period
string · YYYY-MM-DDnull
Server default: null
Optional
statusPayrollDeductionPlanStatusRequired
close_reason
stringnull
Server default: null
Optional
closed_at
string · ISO 8601null
Server default: null
Optional
closed_by
stringnull
Server default: null
Optional
created_atstring · ISO 8601Required
created_bystringRequired

PayrollItem

FieldTypeRequired
idinteger · i64Required
employee_idEmployeeIdRequired
employee_namestringRequired
periodstring · YYYY-MM-DDRequired
type_codestringRequired
type_namestringRequired
categorystringRequired
amountMoneyRequired
notestringRequired
cancelled
stringnull
Server default: null
Optional
plan_id
integer · i64null
Server default: null
Optional
created_atstring · ISO 8601Required
created_bystringRequired

PayrollItemType

FieldTypeRequired
codestringRequired
namestringRequired
categorystringRequired
threshold_param
stringnull
Server default: null
Optional

PayrollLine

FieldTypeRequired
line_nointeger · i32Required
employee_idEmployeeIdRequired
kindPayrollKindRequired
contract_idServer default: nullOptional
cost_accountstringRequired
personPayrollPersonRequired
inputsArbitrary JSONRequired
base_grossMoneyRequired
additionsMoneyRequired
reimb_taxableMoneyRequired
grossMoneyRequired
baseMoneyRequired
pioMoneyRequired
healthMoneyRequired
unemploymentMoneyRequired
injuryMoneyRequired
contributionsMoneyRequired
exemptionMoneyRequired
tax_baseMoneyRequired
pitMoneyRequired
netMoneyRequired
reimbMoneyRequired
deductionsMoneyRequired
advancesMoneyServer defaultOptional
payoutMoneyRequired
norm_costMoneyServer defaultOptional
leave_daysinteger · i32Server default: 0Optional
work_daysinteger · i32Server default: 0Optional
leave_avgMoneyServer defaultOptional
leave_avg_monthsinteger · i32Server default: 0Optional
leave_cutMoneyServer defaultOptional
leave_compMoneyServer defaultOptional
sick_daysinteger · i32Server default: 0Optional
sick_fund_daysinteger · i32Server default: 0Optional
sick_cutMoneyServer defaultOptional
sick_compMoneyServer defaultOptional
sick_parts
Array<SickPart>
Server default: []
Optional
sick_fund_partsServer default: []Optional
seniority_years
integer · i32null
Server default: null
Optional
seniority_pctstringServer default: ""Optional
seniorityMoneyServer defaultOptional
seniority_from
string · YYYY-MM-DDnull
Server default: null
Optional
priorServer default: nullOptional
month_gross
Moneynull
Server default: null
Optional
calc_amount
Moneynull
Server default: null
Optional
monthServer default: nullOptional
garnishmentsServer default: []Optional

PayrollParam

FieldTypeRequired
idinteger · i64Required
codestringRequired
namestringRequired
unitstringRequired
valid_fromstring · YYYY-MM-DDRequired
valuestringRequired
sourcestringRequired
verifiedbooleanRequired
notestringRequired
ownbooleanRequired
in_effectbooleanRequired
reason
stringnull
Server default: null
Optional
created_atstring · ISO 8601Required
created_bystringRequired

PayrollPerson

FieldTypeRequired
embgstringRequired
first_namestringRequired
last_namestringRequired
addressstringServer default: ""Optional
bank_accountstringServer default: ""Optional

PayrollRun

FieldTypeRequired
idServer default: nullOptional
periodstring · YYYY-MM-DDRequired
versioninteger · i32Required
reason
stringnull
Server default: null
Optional
calc_kindPayrollCalcKindServer defaultOptional
seqinteger · i32Server default: 1Optional
optionsArbitrary JSONServer defaultOptional
paramsArbitrary JSONRequired
unverified
Array<string>
Required
linesRequired
grossMoneyRequired
contributionsMoneyRequired
pitMoneyRequired
netMoneyRequired
advancesMoneyServer defaultOptional
payoutMoneyRequired
entry_id
EntryIdnull
Server default: null
Optional
draft_id
DraftIdnull
Server default: null
Optional
mpin_filedbooleanRequired
latestbooleanRequired
created_at
string · ISO 8601null
Server default: null
Optional
created_by
stringnull
Server default: null
Optional

PayrollRunSummary

FieldTypeRequired
idPayrollRunIdRequired
periodstring · YYYY-MM-DDRequired
versioninteger · i32Required
calc_kindPayrollCalcKindServer defaultOptional
seqinteger · i32Server default: 1Optional
reason
stringnull
Server default: null
Optional
unverifiedbooleanRequired
linesinteger · i64Required
grossMoneyRequired
contributionsMoneyRequired
pitMoneyRequired
netMoneyRequired
advancesMoneyServer defaultOptional
payoutMoneyRequired
entry_id
EntryIdnull
Server default: null
Optional
draft_id
DraftIdnull
Server default: null
Optional
mpin_filedbooleanRequired
latestbooleanRequired
created_atstring · ISO 8601Required
created_bystringRequired

PostPayroll

FieldTypeRequired
posting_date
string · YYYY-MM-DDnull
Server default: null
Optional

PriorService

FieldTypeRequired
yearsinteger · i32Server default: 0Optional
monthsinteger · i32Server default: 0Optional
daysinteger · i32Server default: 0Optional
insured_since
string · YYYY-MM-DDnull
Server default: null
Optional
proofServer default: nullOptional
approvalstringServer default: ""Optional

SickFundPart

FieldTypeRequired
kindAbsenceKindRequired
daysinteger · i32Required
employed_from
string · YYYY-MM-DDnull
Server default: null
Optional
approval
stringnull
Server default: null
Optional

SickPart

FieldTypeRequired
kindAbsenceKindRequired
case_fromstring · YYYY-MM-DDRequired
daysinteger · i32Required
baseMoneyRequired
base_monthsinteger · i32Server default: 0Optional
base_ruleServer default: nullOptional
base_worked_daysinteger · i32Server default: 0Optional
pctstringRequired
cappedbooleanServer default: falseOptional
compMoneyRequired

TravelCalculation

FieldTypeRequired
order_idTravelOrderIdRequired
numberstringRequired
datestring · YYYY-MM-DDRequired
minutesinteger · i64Required
full_daysinteger · i32Required
half_daysinteger · i32Required
rate_idServer default: nullOptional
rate_currency
stringnull
Server default: null
Optional
rate_amount
integer · i64null
Server default: null
Optional
gross_fxinteger · i64Required
meal_reduction_fxinteger · i64Required
per_diem_fxinteger · i64Required
fx_rate_micro
integer · i64null
Server default: null
Optional
per_diemMoneyRequired
expensesMoneyRequired
totalMoneyRequired
advanceMoneyRequired
balanceMoneyRequired
lines
Array<TravelLine>
Required
unverified
Array<string>
Required
entry_id
EntryIdnull
Server default: null
Optional

TravelExpense

FieldTypeRequired
idTravelExpenseIdRequired
order_idTravelOrderIdRequired
kindTravelLineKindRequired
descriptionstringRequired
doc_datestring · YYYY-MM-DDRequired
currencystringRequired
amountinteger · i64Required
attachment_idServer default: nullOptional
attachment_name
stringnull
Server default: null
Optional
cancel_reason
stringnull
Server default: null
Optional
created_atstring · ISO 8601Required
created_bystringRequired

TravelLine

FieldTypeRequired
line_nointeger · i32Required
kindTravelLineKindRequired
expense_idServer default: nullOptional
descriptionstringRequired
currencystringRequired
amount_fxinteger · i64Required
fx_rate_micro
integer · i64null
Server default: null
Optional
amountMoneyRequired

TravelOrder

FieldTypeRequired
idTravelOrderIdRequired
yearinteger · i32Required
numberinteger · i32Required
order_datestring · YYYY-MM-DDRequired
employee_idEmployeeIdRequired
employee_namestringRequired
purposestringRequired
destinationstringRequired
countrystringRequired
transportTravelTransportRequired
vehicle
stringnull
Server default: null
Optional
depart_atstringRequired
return_atstringRequired
advanceMoneyRequired
breakfastsinteger · i32Required
lunchesinteger · i32Required
dinnersinteger · i32Required
cost_center_idServer default: nullOptional
note
stringnull
Server default: null
Optional
stateTravelOrderStateRequired
total
Moneynull
Server default: null
Optional
balance
Moneynull
Server default: null
Optional
entry_id
EntryIdnull
Server default: null
Optional
cancel_reason
stringnull
Server default: null
Optional
created_atstring · ISO 8601Required
created_bystringRequired

TravelRate

FieldTypeRequired
idTravelRateIdRequired
tenant_id
string · UUIDnull
Server default: null
Optional
countrystringRequired
valid_fromstring · YYYY-MM-DDRequired
currencystringRequired
amountinteger · i64Required
sourcestringRequired
verifiedbooleanRequired
notestringRequired
reason
stringnull
Server default: null
Optional
created_atstring · ISO 8601Required
created_bystringRequired

TravelSettle

FieldTypeRequired
date
string · YYYY-MM-DDnull
Server default: null
Optional

TravelTransport

"company_vehicle""private_vehicle""bus""train""plane""other"

absences::ListQ

FieldTypeRequired
year
integer · i32null
Optional
employee_id
string · UUIDnull
Optional

leave::BalanceQ

FieldTypeRequired
employee_idstring · UUIDRequired
year
integer · i32null
Optional
on
string · YYYY-MM-DDnull
Optional

leave::DaysQ

FieldTypeRequired
fromstring · YYYY-MM-DDRequired
tostring · YYYY-MM-DDRequired

leave::ListQ

FieldTypeRequired
year
integer · i32null
Optional
employee_id
string · UUIDnull
Optional

leave::YearQ

FieldTypeRequired
year
integer · i32null
Optional

payroll_advances::ListQ

FieldTypeRequired
period
string · YYYY-MM-DDnull
Optional
employee_id
string · UUIDnull
Optional

payroll_deduction_plans::LimitQ

FieldTypeRequired
employee_idstring · UUIDRequired
periodstring · YYYY-MM-DDRequired
order_date
string · YYYY-MM-DDnull
Optional