Update Staff Overtime Settings
Sets the overtime pay 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_idis required. All other fields are optional, but at least one must be sent: otherwise400with{"non_field_errors": ["Send at least one setting to change."]}. Only the settings sent change.per_hour_amount_type,week_off_per_day_amount_typeandpublic_holiday_per_day_amount_typearefixed(the amount is money) ormultiplier(the amount multiplies the staff member’s rate).per_hour_amount,week_off_per_day_amountandpublic_holiday_per_day_amountare JSON numbers from 0 to 10000000 with up to 2 decimals.hourly_grace_period_minutesis Overtime considered after in the app, a whole number of minutes from 0 to 1439.GET /payroll/config/overtimereturns it ashourly_grace_periodinHH:MM:SS.- 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.
per_hour_amount_type
fixed means the amount is money; multiplier means it multiplies the staff member’s rate.
Allowed values:
per_hour_amount
Up to 2 decimals.
hourly_grace_period_minutes
Overtime considered after in the app, in whole minutes.
week_off_per_day_amount_type
Allowed values:
week_off_per_day_amount
Up to 2 decimals.
public_holiday_per_day_amount_type
Allowed values:
public_holiday_per_day_amount
Up to 2 decimals.
Response
The settings were saved.
message
status
data
Errors
400
Bad Request Error
403
Forbidden Error
404
Not Found Error
