Skip to navigation

Update Payslip Settings

Sets which sections appear on payslips. This is company-wide. The first call creates the setting and later calls update it. Shared rules: see Writing data. Needs Payroll on your plan.

  • visibility is required and must have exactly these five booleans, all required: show_hours_worked, show_overtime, show_salary_calculations, show_attendance_summary and show_tds_breakdown. They must be JSON booleans.
  • To change one value, send the other four as they are now.
  • If payslip customisation is switched off for the company, SalaryBox’s defaults (everything shown) still apply and GET /payroll/config/salary-slip shows those until it is switched on.

Authentication

AuthorizationApi-Key

Format: “Api-Key {api-key}”

Request

This endpoint expects an object.
visibilityobjectRequired

The sections to show on payslips. Unknown keys are rejected with 400.

Response

The settings were saved.
messagestringOptional
statusbooleanOptional
dataobjectOptional

Errors

400
Bad Request Error
403
Forbidden Error