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

Path Parameters

employee_id*integer
Formatint64

Request Body

application/x-www-form-urlencoded
  1. body
compensation_type_id*string
starts_on*string
Formatdate
ends_on?string
Formatdate
amount*string
currency_code*string
type?string
Value in"fixed""reoccurring"
frequency?string
Value in"daily""monthly""quarterly""half_yearly""yearly"
description?string
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/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&currency_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"      }    }  }}