Skip to Content
PeopleForce
Employees

Create compensation (legacy alias of salaries)

POST
/api/public/v3/employees/{employee_id}/compensations

Path Parameters

employee_id*integer
Formatint64

Request Body

application/json
  1. body
effective_on*string
Formatdate
amount*number
Formatfloat
currency_code*string
comment*string
compensation_component_id?integer
Formatint64
per?string
overtime?boolean
pay_schedule_id?integer
Formatint64
custom_fields?

Response Body

The created compensation.

application/json
  1. response
data*
Example Request
curl -X POST 'https://app.peopleforce.io/api/public/v3/employees/0/compensations' \  -H 'Content-Type: application/json' \  -d '{  "effective_on": "2019-08-24",  "amount": 0.1,  "currency_code": "string",  "comment": "string"}'
Example Response
{  "data": {    "id": 0,    "effective_on": "2019-08-24",    "amount": "string",    "currency_code": "string",    "per": "string",    "comment": "string",    "created_at": "2019-08-24T14:15:22Z",    "updated_at": "2019-08-24T14:15:22Z",    "compensation_component": {      "id": 0,      "name": "string",      "code": "string",      "payout_type": "once_off",      "frequency": "hourly"    },    "overtime": true,    "pay_schedule": {      "id": 0,      "name": "string"    },    "custom_fields": {      "property1": {        "name": "string",        "value": "string"      },      "property2": {        "name": "string",        "value": "string"      }    }  }}