Adding employees and their first contracts

Endpoint URL (POST):

Estonia: https://Palk.merit.ee/api/v1/sendemployees

Elements for Adding Employees

Field NameField TypeComments
PersonalCode*Str 11Employee Personal ID code
SurName*Str 32
FirstName*Str 32
TypeId*IntContract's type ID's:

1 - Tööleping (Employment Contract)
2 - Juhatuse liikme leping (Board member contract)
3 - Muu leping (Other contract)
4 - Leping puudub (No contract)
5 - Töövõtuleping (Contract of Services)
StartDate*DateContract's start date
EndDateDateContract's end date if it is known and for example it is temporary contract.
ContractNoStr 64
SalaryTypeImpCode*IntBase Salary type import code.

You need to add that import code prior in Merit Palk in Base Salary type card in a "Import ID" field if not added already.
HoursDecimal 5.2Working hours per day.

Normally:
8.00 for full-time work
4.00 for 1/2 part-time work
AmountDecimal 12.4Base salary tariff.

For example if you pay monthly salary per hour (in estonian "Tunnitasu"), then the tariff is the amount for one working hour.
AutoTimeKeepingBooltrue or false

It means, do you want to use the automation for working hours calculation so that the program automatically reduces the working hours amount if the employee has absences etc.

If the working hours change every month due to the working schedules and you add the working hours by importing them or by manually in the salary row on payroll sheet, then AutoTimeKeeping has to be turned OFF (so use "false").
FullWorkingTimeBooltrue or false

true = if the working hours per day amount is full time work for that employee.
GLAccountCodeStr 32General Ledger Account Code, which has to be found in company's chart of accounts in Merit Palk.

Ignored if missing, but we strongly recommend it.
DepartmentCodeStr 32Department Code, which has to be found in company's department codes list in Merit Palk.

Ignored if missing.
CCCodeStr 32Cost Center Code, which has to be found in company's cost center codes list in Merit Palk.

Ignored if missing.
ProjectCodeStr 32Project Code, which has to be found in company's project codes list in Merit Palk.

Ignored if missing.
NRStartDateDateTime
NREndDateDateTime
NRStatestringISO2 country code
NRHasCertbooltrue or false