Overview /
People & HR /
Mark a payroll as paid
Mark a payroll as paid
post
https://api.flactrum.com/v1/payrolls/{payroll}/mark-paid
Stamps the payment time. Paying twice is refused.
| Required scope | payroll.write |
| Success status | 200 |
| Returns | One Payroll object |
Parameters
| Name | In | Type | Description |
|---|---|---|---|
| payroll * | path | string | ULID of the record. |
Response fields
| Field | Type | Description |
|---|---|---|
| id | string | — |
| salary_id | string | — |
| employee_id | string | — |
| period_start | string | — |
| period_end | string | — |
| gross_amount | number | — |
| deductions | number | — |
| net_amount | number | Always gross minus deductions; it cannot be written directly. |
| status | string | — |
| paid_at | string|null | — |
Examples
Recorded from the test suite — these are real requests and their real responses.
curl -X POST 'https://api.flactrum.com/v1/payrolls/01m43mzfcfgee6n2cbyb9sw4xw/mark-paid' \
-H 'Authorization: Bearer flk_your_key:your_secret' \
-H 'Accept: application/json'
HTTP 200 · application/json
{
"data": {
"id": "01m43mzfcfgee6n2cbyb9sw4xw",
"salary_id": "01m43mzfc8mnmj6ts0d1gsnd35",
"user_id": null,
"period_start": "2026-10-01",
"period_end": "2026-10-31",
"gross_amount": 36000,
"deductions": 7000,
"net_amount": 29000,
"status": "paid",
"paid_at": "2026-10-04T14:27:08+00:00",
"created_at": "2026-10-04T14:27:08+00:00",
"updated_at": "2026-10-04T14:27:08+00:00"
}
}
curl -X POST 'https://api.flactrum.com/v1/payrolls/01m43mzfg2z62xz5k7hh57xhsd/mark-paid' \
-H 'Authorization: Bearer flk_your_key:your_secret' \
-H 'Accept: application/json'
HTTP 409 · application/json
{
"error": {
"code": "conflict",
"message": "This payroll is already marked as paid.",
"details": {
"paid_at": "2026-10-04T14:27:08+00:00"
}
}
}