Skip to Content
PeopleForce
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
/api/public/v2/employees/{employee_id}/additional_compensations

Path Parameters

employee_id*integer
Formatint64

Request Body

application/json
  1. body
compensation_type_id?integer
Formatint64
starts_on*string
Formatdate
ends_on?string
Formatdate
amount*number
Formatfloat
currency_code*string
type?string
Value in"fixed""reoccurring"
frequency?string
Value in"daily""monthly""quarterly""half_yearly""yearly"
description*string
compensation_component_id?integer
Formatint64
custom_fields?

Response Body

The created employee additional compensation.

application/json
  1. response
data*
Example Request
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"      }    }  }}