API problem types / Employees and payroll
HTTP 409 · Conflict
Payroll Run Invalid Transition
https://corplyst.com/problems/payroll-run-invalid-transition
What it means
The payroll run can't move to the requested state from where it is now. A run goes from draft to approved to posted, and it can only be posted once it has approved payslips.
What to do
Reload the payroll run to see its current state.
Example response
Sent with Content-Type: application/problem+json. The detail field describes this specific occurrence.
{
"type": "https://corplyst.com/problems/payroll-run-invalid-transition",
"title": "Payroll Run Invalid Transition",
"status": 409,
"detail": "…"
}