Payroll calculation via API is not possible, and we do not have a documented API for the HR agenda, nor do we provide support for it.
However, it is theoretically possible to add and edit absences, wage components, employment contracts, and other HR settings via the API. It is also possible to retrieve a list of employees (in HR).
Example of a file in HR:
{
"winstrom":{
"@version":"1.0",
"osoba":[
{
"id":"3",
"lastUpdate":"2018-01-11T14:13:32.783+01:00",
"jmeno":"Karel",
"prijmeni":"Novák",
"detiOdpoc":{
}
}
]
}
}
Example of working with a wage component:
{
"winstrom": {
"@version": "1.0",
"mzdova-slozka": [
{
"id": "20",
"osoba": [
{
"id": "1",
"osbCis": "1234",
"jmeno": "Karel",
"prijmeni": "Novák"
}
],
"hodiny": "0.0",
"castkaHod": "800.0",
"castMzd": "0.0"
}
]
}
}
We must unfortunately inform you that we are not liable for any errors arising from this approach.
We strongly recommend testing all procedures on a test company before using them on live data.
