Employees
Deprecated
Company API v2 is deprecated. It no longer receives changes and will stop being supported, so move integrations to Company API v3, which serves every v2 path under
/api/public/v3.Create employee additional compensation
Deprecated
POST
employee_id*integerFormat
int64application/json- body
compensation_type_id?integerFormat
int64starts_on*stringFormat
dateends_on?stringFormat
dateamount*numberFormat
floatcurrency_code*stringtype?stringValue in
"fixed""reoccurring"frequency?stringValue in
"daily""monthly""quarterly""half_yearly""yearly"description*stringcompensation_component_id?integerFormat
int64custom_fields?The created employee additional compensation.
application/json- response
data*curl -X POST 'https://app.peopleforce.io/api/public/v2/employees/0/additional_compensations' \ -H 'Content-Type: application/json' \ -d '{ "starts_on": "2019-08-24", "amount": 0.1, "currency_code": "string", "description": "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", "compensation_component": { "id": 0, "name": "string", "code": "string", "payout_type": "once_off", "frequency": "hourly" }, "custom_fields": { "property1": { "name": "string", "value": "string" }, "property2": { "name": "string", "value": "string" } } }}