Employees
Deprecated
Company API v1 is deprecated. It no longer receives changes and will stop being supported, so move integrations to Company API v3.
Create an employee additional compensation
Deprecated
POST
employee_id*integerFormat
int64application/x-www-form-urlencoded- body
compensation_type_id*stringstarts_on*stringFormat
dateends_on?stringFormat
dateamount*stringcurrency_code*stringtype?stringValue in
"fixed""reoccurring"frequency?stringValue in
"daily""monthly""quarterly""half_yearly""yearly"description?stringcustom_fields?The created employee additional compensation.
application/json- response
data*curl -X POST 'https://app.peopleforce.io/api/public/v1/employees/0/additional_compensations' \ -H 'Content-Type: application/x-www-form-urlencoded' \ -d 'compensation_type_id=string&starts_on=2019-08-24&amount=string¤cy_code=string'Example Response
{ "data": { "id": 0, "type": "fixed", "description": "string", "amount": "string", "currency_code": "string", "starts_on": "2019-08-24", "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z", "compensation_type": { "id": 0, "name": "string" }, "frequency": "daily", "ends_on": "2019-08-24", "custom_fields": { "property1": { "name": "string", "value": "string" }, "property2": { "name": "string", "value": "string" } } }}