Update Staff Late Arriving Fine Settings
Sets the late arrival fine settings for one staff member. The first call creates the setting and later calls update it. Shared rules: see Writing data. Needs Payroll on your plan.
salarybox_id,fine_type(dailyorhourly),amount_type(fixedormultiplier) andfine_amountare required.amount_typefixedmeansfine_amountis money;multipliermeansfine_amountmultiplies the staff member’s rate.fine_amountis a JSON number from 0 to 10000000 with up to 2 decimals.grace_period_minutesis Only deduct if late by more than (or Only deduct if they leave earlier than) in the app: optional, a whole number of minutes from 0 to 1439. Left out, it stays as it is (0 for a new setting).waive_off_daysis Allowed Late Days (or Allowed Early Leaving Days) in the app: optional, a whole number from 0 to 31. Left out, it stays as it is (0 for a new setting).GET /payroll/config/late-finereturns the grace period asHH:MM:SS, while this request takes whole minutes.- Changing the setting makes SalaryBox recalculate that staff member’s saved payroll, as in the app.
Authentication
AuthorizationApi-Key
Format: “Api-Key {api-key}”
Request
This endpoint expects an object.
salarybox_id
SalaryBox ID of an active staff member.
fine_type
Allowed values:
amount_type
fixed means fine_amount is money; multiplier means it multiplies the staff member’s rate.
Allowed values:
fine_amount
Up to 2 decimals.
grace_period_minutes
Only deduct if late by more than (Only deduct if they leave earlier than, for early leaving) in the app, in whole minutes. Left out, it stays as it is (0 for a new setting).
waive_off_days
Allowed Late Days (Allowed Early Leaving Days, for early leaving) in the app: late days forgiven each payroll month. Left out, it stays as it is (0 for a new setting).
Response
The settings were saved.
message
status
data
Errors
400
Bad Request Error
403
Forbidden Error
404
Not Found Error
