Skip to navigation

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_id is required. All other fields are optional, but at least one must be sent: otherwise 400 with {"non_field_errors": ["Send at least one setting to change."]}. Only the settings sent change.
  • per_hour_amount_type, week_off_per_day_amount_type and public_holiday_per_day_amount_type are fixed (the amount is money) or multiplier (the amount multiplies the staff member’s rate).
  • per_hour_amount, week_off_per_day_amount and public_holiday_per_day_amount are JSON numbers from 0 to 10000000 with up to 2 decimals.
  • hourly_grace_period_minutes is Overtime considered after in the app, a whole number of minutes from 0 to 1439. GET /payroll/config/overtime returns it as hourly_grace_period in HH: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_idstringRequired1-50 characters
SalaryBox ID of an active staff member.
per_hour_amount_typeenumOptional

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

Allowed values:
per_hour_amountdoubleOptional0-10000000
Up to 2 decimals.
hourly_grace_period_minutesintegerOptional0-1439
Overtime considered after in the app, in whole minutes.
week_off_per_day_amount_typeenumOptional
Allowed values:
week_off_per_day_amountdoubleOptional0-10000000
Up to 2 decimals.
public_holiday_per_day_amount_typeenumOptional
Allowed values:
public_holiday_per_day_amountdoubleOptional0-10000000
Up to 2 decimals.

Response

The settings were saved.
messagestringOptional
statusbooleanOptional
dataobjectOptional

Errors

400
Bad Request Error
403
Forbidden Error
404
Not Found Error