Overview / People & HR / Set a salary

Set a salary

post https://api.flactrum.com/v1/salaries

Creating an active salary deactivates the user's previous one. Old records are kept — past payrolls refer to them.

Required scope payroll.write
Success status201
Returns One Salary object

Request body

FieldTypeDescription
employee_id * string —
branch_id string|null —
gross_salary * number —
net_salary number|null —
currency string —
effective_date * string —
is_active boolean —

Response fields

FieldTypeDescription
id string —
employee_id string —
branch_id string|null —
gross_salary number —
net_salary number|null —
currency string —
effective_date string —
is_active boolean Only one active salary per employee; a new one deactivates the previous.

Examples

Recorded from the test suite — these are real requests and their real responses.

curl -X POST 'https://api.flactrum.com/v1/salaries' \
  -H 'Authorization: Bearer flk_your_key:your_secret' \
  -H 'Content-Type: application/json' \
  -d '{
    "employee_id": "01m43mzf7m0r5yhb6d7szg0bya",
    "gross_salary": 30000,
    "effective_date": "2025-10-04"
}'

HTTP 201 · application/json

{
    "data": {
        "id": "01m43mzf7zyj23zb0502k4zmhe",
        "user_id": null,
        "branch_id": null,
        "gross_salary": 30000,
        "net_salary": null,
        "currency": "TRY",
        "effective_date": "2025-10-04",
        "is_active": true,
        "created_at": "2026-10-04T14:27:08+00:00",
        "updated_at": "2026-10-04T14:27:08+00:00"
    }
}