API Versions
v1.2.5
Public API - compensation package lines in the compensation history, current rows of historical custom tables by default, holiday calendars, and employee custom fields.
API v1.2.5 New features
POST /api/v1/employees/{employee_id}/compensations/search - package lines
- Every compensation version now returns
lines- the regular amounts of the package: base salary, allowances, deductions, and employer contributions. - Each line carries
compensation_type(id,title,is_archived),amount_gross,amount_net,currency,per_type,description,kind,is_included_in_gross,is_payable_to_employee,is_included_in_total_cost,rate_type, andpercent. Amounts are strings. compensation_type.idis the same component id as incompensation_type.idof additional compensations.- Use
linestogether withdate_effective_from/date_effective_toof the version to get the period of a regular allowance. linesisnullwithout theemployee_compensation_linesfield permission. Off-payroll payments are not returned.- The field is additive: the existing fields of the response are unchanged.
Additional compensations are one-time payments
GET /api/v1/employees/{employee_id}/additional-compensationsreturns one-time payments only: bonuses, premiums, expense reimbursements. A payment hasdate_effective_fromand no end date.- Recurring additional compensations were moved into the compensation package and are returned as
linesofPOST /api/v1/employees/{employee_id}/compensations/search. type,frequency_type, anddate_effective_toin the create and update body are ignored.
Holiday calendars
GET /api/v1/calendar-holidays- holiday calendars of the company:id,title,country.POST /api/v1/calendar-holidays/dates/search- dates of the calendars betweendate_fromanddate_to(at most 366 days), each withtype:non_working,workingorcompensated.POST /api/v1/calendar-holidays/employees/search- the current calendar of each employee, resolved from the location, department and division of the current position.- Requires permission
manage_holidays=edit. See Public holidays.
Employee custom fields
GET /api/v1/custom-fields/fields- employee custom fields the token owner can view, withslug, types, flags andoptions. See Custom fields.
POST /api/v1/custom-fields/tables/{table_id}/rows/search - history on request
- A historical table (
is_historical: true) now returns only the current row of each employee by default. - Pass
with_history: trueto get every row, as before. Tables that are not historical are unaffected. - For employees whose table history the token is not allowed to view, only the current row is returned even with
with_history: true. - Integrations that export a historical table for a period must add
with_history: trueto the request.
