Skip to navigation

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_saved is true and the saved amounts are shown. Otherwise these are the computed values.
  • fine_type comes from the staff member’s fine settings (/payroll/config/late-fine): hourly or daily.
  • days is sorted by date and lists only days with a fine counted. It is empty if there were none.
  • waive_off_applied is true when the day is inside the staff member’s waive-off days (computed amount 0).
  • attendance_from_date and attendance_to_date are 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_fine as it was stored. If attendance changes after a save, a day that is no longer late drops out of days, but its amount stays in total_fine, so the total can differ from the sum of days. Saving the month again (PUT) works total_fine out from the current days.
  • amount is exact. deduct_for and rate are rounded to 2 decimals, so deduct_for x rate can differ from amount by a paisa or two on an hourly fine.
  • To change days: if is_saved is false, send them with POST /payroll/late-fine; if true, with PUT /payroll/late-fine.

Authentication

AuthorizationApi-Key

Format: “Api-Key {api-key}”

Query parameters

salarybox_idstringRequired
SalaryBox ID of the staff member. One ID per request.
monthstringRequiredformat: "^\d{4}-(0[1-9]|1[0-2])$"

Payroll month, YYYY-MM.

Response

The month's late arriving fines.
messagestringOptional
statusbooleanOptional
dataobjectOptional

Errors

400
Bad Request Error
403
Forbidden Error
404
Not Found Error