Update Staff Early Leaving Fines
Changes the early leaving fines of a payroll month that is already saved. Payroll then uses the new total. Shared rules: see Writing data. Needs Payroll on your plan.
- The body and rules for
entriesare the same asPOST /payroll/early-leaving-fine. - Every day you leave out is saved exactly as it stands now, with the same amount.
- How saved totals behave when attendance changes: see Fetch Single Staff Early Leaving Fines.
- A month with nothing saved gives
404undermonth: “No early leaving fines are saved for this month; save them with POST.” - Repeating the same request sets the same values.
Authentication
AuthorizationApi-Key
Format: “Api-Key {api-key}”
Request
This endpoint expects an object.
salarybox_id
SalaryBox ID of the staff member.
month
Payroll month, YYYY-MM. Must have ended and not be finalised.
entries
The days to change, each date at most once.
Response
The month’s early leaving fines were updated. data is the month after the save.
message
status
data
Errors
400
Bad Request Error
403
Forbidden Error
404
Not Found Error
