Skip to navigation

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 success first; this endpoint never calculates payroll itself.
  • finalised is the state you want: true (the default) finalises, false un-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 200 with one entry per staff member, in request order; outcome says what happened to each. Unknown staff ids give 400 and 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.
monthstringRequired

YYYY-MM. Payroll must already be calculated for this month.

salarybox_idslist of stringsRequired

Staff to finalise or un-finalise (1 to 50, no duplicates).

finalisedbooleanOptionalDefaults to true

The state you want. true finalises, false un-finalises. Must be a boolean.

Response

The request was processed. Check outcome for each staff member.

messagestring
statusboolean
datalist of objects
One entry per staff member, in request order.

Errors

400
Bad Request Error
403
Forbidden Error