Overview /
People & HR /
Delete a payroll
Delete a payroll
delete
https://api.flactrum.com/v1/payrolls/{payroll}
A paid payroll cannot be deleted; it records a payment that happened.
| Required scope | payroll.write |
| Success status | 204 |
Parameters
| Name | In | Type | Description |
|---|---|---|---|
| payroll * | 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/payrolls/01m43mzfq0dk1rq48ysj84xkwf' \
-H 'Authorization: Bearer flk_your_key:your_secret' \
-H 'Accept: application/json'
HTTP 204
(empty body)
curl -X DELETE 'https://api.flactrum.com/v1/payrolls/01m43mzfg2z62xz5k7hh57xhsd' \
-H 'Authorization: Bearer flk_your_key:your_secret' \
-H 'Accept: application/json'
HTTP 409 · application/json
{
"error": {
"code": "conflict",
"message": "A paid payroll cannot be deleted; it is the record of a payment that happened."
}
}