Add Staff Late Arriving Fines
Saves the late arriving fines of a payroll month that has nothing saved yet, with your own amount per day. Payroll then uses the saved month’s total. Shared rules: see Writing data. Needs Payroll on your plan.
deduct_for is how much of the day is fined: hours on an hourly fine (the app’s Deduct For), 1 (fined) or 0 (not fined) on a daily fine (the app’s Deduct fine for the day?).
- Call
GET /payroll/late-finefirst to see which days have a fine and the currentdeduct_for. - Send only the days to change. Every other day is saved exactly as it stands now, with the same amount.
salarybox_idis required, at max 50 characters.monthis required,YYYY-MM, and must be a payroll month that has ended and is not finalised.entriesis required, 1-31 items, each date at most once. Eachdatemust be a day listed indaysbyGET /payroll/late-fine.deduct_formust be a JSON number, 0 to 24 with up to 2 decimals. The day’samountis worked out asdeduct_forx that day’srate.- A month that is already saved gives
400; change it withPUT /payroll/late-fine. So a retried POST cannot overwrite later edits. - How saved totals behave when attendance changes: see Fetch Single Staff Late Arriving Fines.
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 late arriving fines were saved. data is the month after the save.
message
status
data
Errors
400
Bad Request Error
403
Forbidden Error
404
Not Found Error
