Skip to navigation

Add Staff Overtime

Sets the overtime paid to a staff member on each listed date. A date that already has an entry is overwritten. Shared rules: see Writing data. Needs Payroll on your plan.

  • salarybox_id is required.
  • entries is required, 1-31 items, each date at most once: 400 on entries, “2026-11-04 is listed twice.”
  • Each entry has date (YYYY-MM-DD), ot_type (HOUR or DAY), paid_for (a number from 0.01 to 24 with up to 2 decimals: hours or days of overtime) and rate (a number from 0.01 to 10000000 with up to 2 decimals: per hour or per day).
  • The amount is worked out as rate x paid_for, at most 10000000: otherwise 400 on paid_for, “Rate times paid_for cannot exceed 10000000.”
  • A date in the future, or in a finalised payroll month, is rejected with 400 on entries.
  • No notification is sent.
  • GET /payroll/overtime works out each day’s amount from the staff member’s current overtime rate, so send the rate from GET /payroll/config/overtime, or the figure shown may differ.

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.
entrieslist of objectsRequired
Overtime to set, each date at most once.

Response

The overtime was saved.
messagestringOptional
statusbooleanOptional
dataobjectOptional

Errors

400
Bad Request Error
403
Forbidden Error
404
Not Found Error