Finalise Staff Payroll
Finalises or un-finalises a month’s payroll for 1 to 50 staff, as Finalise and Un-finalise do in the app’s payroll. Needs Payroll on your plan. Shared rules: see Writing data.
- Payroll must already be calculated for the month. Run Create Payroll Summary and wait for Fetch Payroll Summary Status to say
successfirst; this endpoint never calculates payroll itself. finalisedis the state you want:true(the default) finalises,falseun-finalises.- Finalised salaries are locked: attendance and pay changes for that month are blocked until it is un-finalised. Un-finalising recalculates that month’s payroll.
- A future month gives
400. - Always returns
200with one entry per staff member, in request order;outcomesays what happened to each. Unknown staff ids give400and nothing is changed. - Inactive staff (for example, left during the month) are accepted.
Authentication
AuthorizationApi-Key
Format: “Api-Key {api-key}”
Request
This endpoint expects an object.
month
YYYY-MM. Payroll must already be calculated for this month.
salarybox_ids
Staff to finalise or un-finalise (1 to 50, no duplicates).
finalised
The state you want. true finalises, false un-finalises. Must be a boolean.
Response
The request was processed. Check outcome for each staff member.
message
status
data
One entry per staff member, in request order.
Errors
400
Bad Request Error
403
Forbidden Error
