Fetch Single Staff Late Arriving Fines
Returns the late arriving fine for each day of one payroll month for one staff member, as payroll counts it now, with the month’s total. Needs Payroll on your plan. One staff member per call.
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?).
- If an admin has saved the month,
is_savedistrueand the saved amounts are shown. Otherwise these are the computed values. fine_typecomes from the staff member’s fine settings (/payroll/config/late-fine):hourlyordaily.daysis sorted by date and lists only days with a fine counted. It is empty if there were none.waive_off_appliedistruewhen the day is inside the staff member’s waive-off days (computed amount 0).attendance_from_dateandattendance_to_dateare the attendance window payroll uses for the month, which follows your Attendance Cycle (Fetch Payroll Settings).- Money and hours are strings with 2 decimals.
- How saved totals behave: payroll uses the saved
total_fineas it was stored. If attendance changes after a save, a day that is no longer late drops out ofdays, but its amount stays intotal_fine, so the total can differ from the sum ofdays. Saving the month again (PUT) workstotal_fineout from the current days. amountis exact.deduct_forandrateare rounded to 2 decimals, sodeduct_forxratecan differ fromamountby a paisa or two on an hourly fine.- To change days: if
is_savedisfalse, send them withPOST /payroll/late-fine; iftrue, withPUT /payroll/late-fine.
Authentication
AuthorizationApi-Key
Format: “Api-Key {api-key}”
Query parameters
salarybox_id
SalaryBox ID of the staff member. One ID per request.
month
Payroll month, YYYY-MM.
Response
The month's late arriving fines.
message
status
data
Errors
400
Bad Request Error
403
Forbidden Error
404
Not Found Error
