Overview /
People & HR /
Update a salary
Update a salary
patch
https://api.flactrum.com/v1/salaries/{salary}
| Required scope | payroll.write |
| Success status | 200 |
| Returns | One Salary object |
Parameters
| Name | In | Type | Description |
|---|---|---|---|
| salary * | path | string | ULID of the record. |
Request body
| Field | Type | Description |
|---|---|---|
| employee_id * | string | — |
| branch_id | string|null | — |
| gross_salary * | number | — |
| net_salary | number|null | — |
| currency | string | — |
| effective_date * | string | — |
| is_active | boolean | — |
Response fields
| Field | Type | Description |
|---|---|---|
| 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 PATCH 'https://api.flactrum.com/v1/salaries/01m43mzf864sz8r25pqr766a56' \
-H 'Authorization: Bearer flk_your_key:your_secret' \
-H 'Content-Type: application/json' \
-d '{
"net_salary": 28000
}'
HTTP 200 · application/json
{
"data": {
"id": "01m43mzf864sz8r25pqr766a56",
"user_id": null,
"branch_id": null,
"gross_salary": 36000,
"net_salary": 28000,
"currency": "TRY",
"effective_date": "2026-10-04",
"is_active": true,
"created_at": "2026-10-04T14:27:08+00:00",
"updated_at": "2026-10-04T14:27:08+00:00"
}
}