Skip to navigation

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-fine first to see which days have a fine and the current deduct_for.
  • Send only the days to change. Every other day is saved exactly as it stands now, with the same amount.
  • salarybox_id is required, at max 50 characters. month is required, YYYY-MM, and must be a payroll month that has ended and is not finalised.
  • entries is required, 1-31 items, each date at most once. Each date must be a day listed in days by GET /payroll/late-fine.
  • deduct_for must be a JSON number, 0 to 24 with up to 2 decimals. The day’s amount is worked out as deduct_for x that day’s rate.
  • A month that is already saved gives 400; change it with PUT /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_idstringRequired1-50 characters
SalaryBox ID of the staff member.
monthstringRequiredformat: "^\d{4}-(0[1-9]|1[0-2])$"

Payroll month, YYYY-MM. Must have ended and not be finalised.

entrieslist of objectsRequired
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.

messagestringOptional
statusbooleanOptional
dataobjectOptional

Errors

400
Bad Request Error
403
Forbidden Error
404
Not Found Error