Skip to navigation

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 (daily or hourly), amount_type (fixed or multiplier) and fine_amount are required.
  • amount_type fixed means fine_amount is money; multiplier means fine_amount multiplies the staff member’s rate.
  • fine_amount is a JSON number from 0 to 10000000 with up to 2 decimals.
  • grace_period_minutes is 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_days is 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-fine returns the grace period as HH: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_idstringRequired1-50 characters
SalaryBox ID of an active staff member.
fine_typeenumRequired
Allowed values:
amount_typeenumRequired

fixed means fine_amount is money; multiplier means it multiplies the staff member’s rate.

Allowed values:
fine_amountdoubleRequired0-10000000
Up to 2 decimals.
grace_period_minutesintegerOptional0-1439

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_daysintegerOptional0-31

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.
messagestringOptional
statusbooleanOptional
dataobjectOptional

Errors

400
Bad Request Error
403
Forbidden Error
404
Not Found Error