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.
visibilityis required and must have exactly these five booleans, all required:show_hours_worked,show_overtime,show_salary_calculations,show_attendance_summaryandshow_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-slipshows those until it is switched on.
Authentication
AuthorizationApi-Key
Format: “Api-Key {api-key}”
Request
This endpoint expects an object.
visibility
The sections to show on payslips. Unknown keys are rejected with 400.
Response
The settings were saved.
message
status
data
Errors
400
Bad Request Error
403
Forbidden Error
