Employee compensation
Webhook topics and example payloads for employee salary records.
Alongside an employee's profile attributes, PeopleForce keeps separate records for position and salary. To preserve the history of salary reviews and other changes, add a new record rather than editing the existing one.
The salary record emits these webhooks:
employee_salary_create— a salary record is addedemployee_salary_update— a salary record is updated
Both fire immediately for any employee, active or terminated.
A custom column on the salary table appears in attributes under its column
ID, with a name and a value. The value is sent as stored, and an option
or person ID in it is a string. The additional compensation webhooks send their
custom columns the same way.
Employee salary created
Action: employee_salary_create.
{
"action": "employee_salary_create",
"data": {
"id": 80093,
"attributes": {
"effective_on": "2022-09-21",
"amount": "45000.0",
"per": "month",
"currency_code": "UAH",
"comment": ""
},
"employee": {
"id": 133710,
"employee_number": "IT-1029",
"first_name": "Volodymyr",
"last_name": "Markovich",
"email": "mv@example.com"
},
"meta": {
"created_at": "2022-09-21T15:59:57.173+01:00",
"updated_at": "2022-09-21T15:59:57.173+01:00"
}
}
}Employee salary updated
Action: employee_salary_update. The payload shape matches
employee_salary_create, with the updated values.
