KontoCloud
Ruby 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

Ruby SDK

result = client.json("get_t_tid_absences",
    params: {"tid" => "00000000-0000-4000-8000-000000000001"}, query: {})

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

Ruby SDK

body = JSON.parse("{\n  \"employee_id\": \"00000000-0000-4000-8000-000000000001\",\n  \"kind\": \"sick\",\n  \"date_from\": \"2026-01-01\",\n  \"date_to\": \"2026-01-01\"\n}")
result = client.json("post_t_tid_absences",
    params: {"tid" => "00000000-0000-4000-8000-000000000001"}, query: {}, body: body)

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

Ruby SDK

body = JSON.parse("{\n  \"reason\": \"example\"\n}")
result = client.json("post_t_tid_absences_id_cancel",
    params: {"tid" => "00000000-0000-4000-8000-000000000001", "id" => "1"}, query: {}, body: body)

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

Ruby SDK

body = JSON.parse("{\n  \"kind\": \"indefinite\",\n  \"valid_from\": \"2026-01-01\",\n  \"hours_per_week\": 1,\n  \"salary_basis\": \"gross\",\n  \"salary_amount\": 1,\n  \"cost_account\": \"example\",\n  \"reason\": \"example\"\n}")
result = client.json("post_t_tid_contracts_id",
    params: {"tid" => "00000000-0000-4000-8000-000000000001", "id" => "00000000-0000-4000-8000-000000000001"}, query: {}, body: body)

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

Ruby SDK

result = client.json("get_t_tid_employees",
    params: {"tid" => "00000000-0000-4000-8000-000000000001"}, query: {})

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

Ruby SDK

body = JSON.parse("{\n  \"embg\": \"example\",\n  \"first_name\": \"example\",\n  \"last_name\": \"example\"\n}")
result = client.json("post_t_tid_employees",
    params: {"tid" => "00000000-0000-4000-8000-000000000001"}, query: {}, body: body)

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

Ruby SDK

result = client.json("get_t_tid_employees_id",
    params: {"tid" => "00000000-0000-4000-8000-000000000001", "id" => "00000000-0000-4000-8000-000000000001"}, query: {})

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

Ruby SDK

body = JSON.parse("{\n  \"first_name\": \"example\",\n  \"last_name\": \"example\",\n  \"reason\": \"example\"\n}")
result = client.json("post_t_tid_employees_id",
    params: {"tid" => "00000000-0000-4000-8000-000000000001", "id" => "00000000-0000-4000-8000-000000000001"}, query: {}, body: body)

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

Ruby SDK

body = JSON.parse("{\n  \"kind\": \"indefinite\",\n  \"valid_from\": \"2026-01-01\",\n  \"hours_per_week\": 1,\n  \"salary_basis\": \"gross\",\n  \"salary_amount\": 1,\n  \"cost_account\": \"example\"\n}")
result = client.json("post_t_tid_employees_id_contracts",
    params: {"tid" => "00000000-0000-4000-8000-000000000001", "id" => "00000000-0000-4000-8000-000000000001"}, query: {}, body: body)

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

Ruby SDK

body = JSON.parse("{\n  \"code\": \"example\"\n}")
result = client.json("post_t_tid_employees_id_municipality",
    params: {"tid" => "00000000-0000-4000-8000-000000000001", "id" => "00000000-0000-4000-8000-000000000001"}, query: {}, body: body)

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

Ruby SDK

result = client.json("get_t_tid_leave",
    params: {"tid" => "00000000-0000-4000-8000-000000000001"}, query: {})

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

Ruby SDK

result = client.json("get_t_tid_leave_balance",
    params: {"tid" => "00000000-0000-4000-8000-000000000001"}, query: {"employee_id" => "00000000-0000-4000-8000-000000000001"})

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

Ruby SDK

result = client.json("get_t_tid_leave_decisions",
    params: {"tid" => "00000000-0000-4000-8000-000000000001"}, query: {})

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

Ruby SDK

body = JSON.parse("{\n  \"employee_id\": \"00000000-0000-4000-8000-000000000001\",\n  \"year\": 2026,\n  \"decision_date\": \"2026-01-01\",\n  \"date_from\": \"2026-01-01\",\n  \"date_to\": \"2026-01-01\"\n}")
result = client.json("post_t_tid_leave_decisions",
    params: {"tid" => "00000000-0000-4000-8000-000000000001"}, query: {}, body: body)

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

Ruby SDK

result = client.json("get_t_tid_leave_decisions_id",
    params: {"tid" => "00000000-0000-4000-8000-000000000001", "id" => "1"}, query: {})

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

Ruby SDK

body = JSON.parse("{\n  \"reason\": \"example\"\n}")
result = client.json("post_t_tid_leave_decisions_id_cancel",
    params: {"tid" => "00000000-0000-4000-8000-000000000001", "id" => "1"}, query: {}, body: body)

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

Ruby SDK

body = JSON.parse("{\n  \"date_from\": \"2026-01-01\",\n  \"date_to\": \"2026-01-01\"\n}")
result = client.json("post_t_tid_leave_decisions_id_usages",
    params: {"tid" => "00000000-0000-4000-8000-000000000001", "id" => "1"}, query: {}, body: body)

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

Ruby SDK

result = client.json("get_t_tid_leave_entitlements",
    params: {"tid" => "00000000-0000-4000-8000-000000000001"}, query: {})

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

Ruby SDK

body = JSON.parse("{\n  \"employee_id\": \"00000000-0000-4000-8000-000000000001\",\n  \"year\": 2026,\n  \"base_days\": 1\n}")
result = client.json("post_t_tid_leave_entitlements",
    params: {"tid" => "00000000-0000-4000-8000-000000000001"}, query: {}, body: body)

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

Ruby SDK

result = client.json("get_t_tid_leave_rules",
    params: {"tid" => "00000000-0000-4000-8000-000000000001"}, query: {})

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

Ruby SDK

body = JSON.parse("{\n  \"reason\": \"example\"\n}")
result = client.json("post_t_tid_leave_usages_id_cancel",
    params: {"tid" => "00000000-0000-4000-8000-000000000001", "id" => "1"}, query: {}, body: body)

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

Ruby SDK

result = client.json("get_t_tid_leave_working_days",
    params: {"tid" => "00000000-0000-4000-8000-000000000001"}, query: {"from" => "2026-01-01", "to" => "2026-01-01"})

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

Ruby SDK

result = client.json("get_t_tid_payroll_advance_limit",
    params: {"tid" => "00000000-0000-4000-8000-000000000001"}, query: {"employee_id" => "00000000-0000-4000-8000-000000000001"})

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

Ruby SDK

result = client.json("get_t_tid_payroll_advances",
    params: {"tid" => "00000000-0000-4000-8000-000000000001"}, query: {})

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

Ruby SDK

body = JSON.parse("{\n  \"employee_id\": \"00000000-0000-4000-8000-000000000001\",\n  \"amount\": 1\n}")
result = client.json("post_t_tid_payroll_advances",
    params: {"tid" => "00000000-0000-4000-8000-000000000001"}, query: {}, body: body)

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

Ruby SDK

body = JSON.parse("{\n  \"amount\": 1\n}")
result = client.json("post_t_tid_payroll_advances_group",
    params: {"tid" => "00000000-0000-4000-8000-000000000001"}, query: {}, body: body)

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

Ruby SDK

result = client.json("get_t_tid_payroll_advances_id",
    params: {"tid" => "00000000-0000-4000-8000-000000000001", "id" => "1"}, query: {})

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

Ruby SDK

body = JSON.parse("{\n  \"reason\": \"example\"\n}")
result = client.json("post_t_tid_payroll_advances_id_cancel",
    params: {"tid" => "00000000-0000-4000-8000-000000000001", "id" => "1"}, query: {}, body: body)

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

Ruby SDK

body = JSON.parse("{\n  \"bank_account_id\": \"00000000-0000-4000-8000-000000000001\",\n  \"value_date\": \"2026-01-01\"\n}")
result = client.json("post_t_tid_payroll_advances_id_payment_order",
    params: {"tid" => "00000000-0000-4000-8000-000000000001", "id" => "1"}, query: {}, body: body)

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

Ruby SDK

result = client.json("get_t_tid_payroll_deduction_plans",
    params: {"tid" => "00000000-0000-4000-8000-000000000001"}, query: {})

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

Ruby SDK

body = JSON.parse("{\n  \"employee_id\": \"00000000-0000-4000-8000-000000000001\",\n  \"type_code\": \"example\",\n  \"total\": 1,\n  \"installment\": 1,\n  \"start_period\": \"2026-01-01\",\n  \"creditor\": \"example\"\n}")
result = client.json("post_t_tid_payroll_deduction_plans",
    params: {"tid" => "00000000-0000-4000-8000-000000000001"}, query: {}, body: body)

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

Ruby SDK

body = JSON.parse("{\n  \"period\": \"2026-01-01\"\n}")
result = client.json("post_t_tid_payroll_deduction_plans_apply",
    params: {"tid" => "00000000-0000-4000-8000-000000000001"}, query: {}, body: body)

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

Ruby SDK

result = client.json("get_t_tid_payroll_deduction_plans_id",
    params: {"tid" => "00000000-0000-4000-8000-000000000001", "id" => "1"}, query: {})

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

Ruby SDK

body = JSON.parse("{\n  \"reason\": \"example\"\n}")
result = client.json("post_t_tid_payroll_deduction_plans_id_close",
    params: {"tid" => "00000000-0000-4000-8000-000000000001", "id" => "1"}, query: {}, body: body)

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

Ruby SDK

result = client.json("get_t_tid_payroll_garnishment_limit",
    params: {"tid" => "00000000-0000-4000-8000-000000000001"}, query: {"employee_id" => "00000000-0000-4000-8000-000000000001", "period" => "2026-01-01"})

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

Ruby SDK

result = client.json("get_t_tid_payroll_item_types",
    params: {"tid" => "00000000-0000-4000-8000-000000000001"}, query: {})

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

Ruby SDK

result = client.json("get_t_tid_payroll_items",
    params: {"tid" => "00000000-0000-4000-8000-000000000001"}, query: {})

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

Ruby SDK

body = JSON.parse("{\n  \"employee_id\": \"00000000-0000-4000-8000-000000000001\",\n  \"period\": \"2026-01-01\",\n  \"type_code\": \"example\",\n  \"amount\": 1\n}")
result = client.json("post_t_tid_payroll_items",
    params: {"tid" => "00000000-0000-4000-8000-000000000001"}, query: {}, body: body)

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

Ruby SDK

body = JSON.parse("{\n  \"reason\": \"example\"\n}")
result = client.json("post_t_tid_payroll_items_id_cancel",
    params: {"tid" => "00000000-0000-4000-8000-000000000001", "id" => "1"}, query: {}, body: body)

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

Ruby SDK

result = client.json("post_t_tid_payroll_mpin_epdd_id_check",
    params: {"tid" => "00000000-0000-4000-8000-000000000001", "id" => "1"}, query: {})

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

Ruby SDK

result = client.json("get_t_tid_payroll_mpin_municipalities",
    params: {"tid" => "00000000-0000-4000-8000-000000000001"}, query: {})

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

Ruby SDK

result = client.json("get_t_tid_payroll_mpin_settings",
    params: {"tid" => "00000000-0000-4000-8000-000000000001"}, query: {})

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

Ruby SDK

body = JSON.parse("{}")
result = client.json("post_t_tid_payroll_mpin_settings",
    params: {"tid" => "00000000-0000-4000-8000-000000000001"}, query: {}, body: body)

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

Ruby SDK

result = client.json("get_t_tid_payroll_parameters",
    params: {"tid" => "00000000-0000-4000-8000-000000000001"}, query: {})

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

Ruby SDK

body = JSON.parse("{\n  \"code\": \"example\",\n  \"valid_from\": \"2026-01-01\",\n  \"value\": \"dark\",\n  \"source\": \"example\",\n  \"verified\": true,\n  \"reason\": \"example\"\n}")
result = client.json("post_t_tid_payroll_parameters",
    params: {"tid" => "00000000-0000-4000-8000-000000000001"}, query: {}, body: body)

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

Ruby SDK

result = client.json("get_t_tid_payroll_preview",
    params: {"tid" => "00000000-0000-4000-8000-000000000001"}, query: {})

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

Ruby SDK

body = JSON.parse("{\n  \"period\": \"2026-01-01\"\n}")
result = client.json("post_t_tid_payroll_preview",
    params: {"tid" => "00000000-0000-4000-8000-000000000001"}, query: {}, body: body)

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

Ruby SDK

result = client.json("get_t_tid_payroll_runs",
    params: {"tid" => "00000000-0000-4000-8000-000000000001"}, query: {})

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

Ruby SDK

body = JSON.parse("{\n  \"period\": \"2026-01-01\"\n}")
result = client.json("post_t_tid_payroll_runs",
    params: {"tid" => "00000000-0000-4000-8000-000000000001"}, query: {}, body: body)

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

Ruby SDK

result = client.json("get_t_tid_payroll_runs_id",
    params: {"tid" => "00000000-0000-4000-8000-000000000001", "id" => "1"}, query: {})

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

Ruby SDK

result = client.json("get_t_tid_payroll_runs_id_header",
    params: {"tid" => "00000000-0000-4000-8000-000000000001", "id" => "1"}, query: {})

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

Ruby SDK

result = client.json("get_t_tid_payroll_runs_id_mpin",
    params: {"tid" => "00000000-0000-4000-8000-000000000001", "id" => "1"}, query: {})

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

Ruby SDK

body = JSON.parse("{\n  \"reference\": \"example\"\n}")
result = client.json("post_t_tid_payroll_runs_id_mpin",
    params: {"tid" => "00000000-0000-4000-8000-000000000001", "id" => "1"}, query: {}, body: body)

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

Ruby SDK

result = client.json("get_t_tid_payroll_runs_id_mpin_epdd",
    params: {"tid" => "00000000-0000-4000-8000-000000000001", "id" => "1"}, query: {})

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

Ruby SDK

result = client.json("post_t_tid_payroll_runs_id_mpin_epdd",
    params: {"tid" => "00000000-0000-4000-8000-000000000001", "id" => "1"}, query: {})

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

Ruby SDK

result = client.json("post_t_tid_payroll_runs_id_mpin_epdd_sign",
    params: {"tid" => "00000000-0000-4000-8000-000000000001", "id" => "1"}, query: {})

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

Ruby SDK

body = JSON.parse("{}")
result = client.json("post_t_tid_payroll_runs_id_post",
    params: {"tid" => "00000000-0000-4000-8000-000000000001", "id" => "1"}, query: {}, body: body)

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

Ruby SDK

result = client.json("get_t_tid_travel_allowance_rates",
    params: {"tid" => "00000000-0000-4000-8000-000000000001"}, query: {})

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

Ruby SDK

body = JSON.parse("{\n  \"country\": \"example\",\n  \"valid_from\": \"2026-01-01\",\n  \"currency\": \"MKD\",\n  \"amount\": 1,\n  \"source\": \"example\",\n  \"reason\": \"example\"\n}")
result = client.json("post_t_tid_travel_allowance_rates",
    params: {"tid" => "00000000-0000-4000-8000-000000000001"}, query: {}, body: body)

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

Ruby SDK

body = JSON.parse("{\n  \"reason\": \"example\"\n}")
result = client.json("post_t_tid_travel_expenses_id_cancel",
    params: {"tid" => "00000000-0000-4000-8000-000000000001", "id" => "1"}, query: {}, body: body)

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

Ruby SDK

result = client.json("get_t_tid_travel_orders",
    params: {"tid" => "00000000-0000-4000-8000-000000000001"}, query: {})

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

Ruby SDK

body = JSON.parse("{\n  \"employee_id\": \"00000000-0000-4000-8000-000000000001\",\n  \"purpose\": \"example\",\n  \"destination\": \"example\",\n  \"country\": \"example\",\n  \"transport\": \"company_vehicle\",\n  \"depart_at\": \"example\",\n  \"return_at\": \"example\"\n}")
result = client.json("post_t_tid_travel_orders",
    params: {"tid" => "00000000-0000-4000-8000-000000000001"}, query: {}, body: body)

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

Ruby SDK

result = client.json("get_t_tid_travel_orders_id",
    params: {"tid" => "00000000-0000-4000-8000-000000000001", "id" => "1"}, query: {})

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

Ruby SDK

body = JSON.parse("{\n  \"reason\": \"example\"\n}")
result = client.json("post_t_tid_travel_orders_id_cancel",
    params: {"tid" => "00000000-0000-4000-8000-000000000001", "id" => "1"}, query: {}, body: body)

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

Ruby SDK

body = JSON.parse("{\n  \"kind\": \"per_diem\",\n  \"description\": \"example\",\n  \"doc_date\": \"2026-01-01\",\n  \"amount\": 1\n}")
result = client.json("post_t_tid_travel_orders_id_expenses",
    params: {"tid" => "00000000-0000-4000-8000-000000000001", "id" => "1"}, query: {}, body: body)

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

Ruby SDK

body = JSON.parse("{\n  \"kind\": \"advance\",\n  \"bank_account_id\": \"00000000-0000-4000-8000-000000000001\",\n  \"value_date\": \"2026-01-01\"\n}")
result = client.json("post_t_tid_travel_orders_id_payment_order",
    params: {"tid" => "00000000-0000-4000-8000-000000000001", "id" => "1"}, query: {}, body: body)

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

Ruby SDK

result = client.json("get_t_tid_travel_orders_id_preview",
    params: {"tid" => "00000000-0000-4000-8000-000000000001", "id" => "1"}, query: {})

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

Ruby SDK

body = JSON.parse("{}")
result = client.json("post_t_tid_travel_orders_id_settle",
    params: {"tid" => "00000000-0000-4000-8000-000000000001", "id" => "1"}, query: {}, body: body)

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