Overview /
People & HR /
Delete a salary
Delete a salary
delete
https://api.flactrum.com/v1/salaries/{salary}
A salary with payroll records cannot be deleted.
| Required scope | payroll.write |
| Success status | 204 |
Parameters
| Name | In | Type | Description |
|---|---|---|---|
| salary * | path | string | ULID of the record. |
Examples
Recorded from the test suite — these are real requests and their real responses.
curl -X DELETE 'https://api.flactrum.com/v1/salaries/01m43mzf7zyj23zb0502k4zmhe' \
-H 'Authorization: Bearer flk_your_key:your_secret' \
-H 'Accept: application/json'
HTTP 204
(empty body)
curl -X DELETE 'https://api.flactrum.com/v1/salaries/01m43mzfkxk3tz8xbqk2mx39wf' \
-H 'Authorization: Bearer flk_your_key:your_secret' \
-H 'Accept: application/json'
HTTP 409 · application/json
{
"error": {
"code": "conflict",
"message": "This salary has 1 payroll record(s) and cannot be deleted.",
"details": {
"payroll_count": 1
}
}
}