Apply Staff Salary Template
Works out each staff member’s salary from a salary template and saves it. This is not a preview, and it changes what the staff are paid. Shared rules: see Writing data. Needs Payroll on your plan.
template_nameis the exact name of a salary template, either the company’s own or a built-in one, as listed by the salary templates endpoint under payroll config (/payroll/config/templates).salarybox_idshas at max 50 SalaryBox IDs of active staff with no repeats. If any is unknown the result is400and nothing changes.from_dateisYYYY-MM-DDand the first day of a month. It is not before the joining month and not in a finalised month.ctc_amountis the same for every staff member in the call.- The template sets PF, ESI and allowances, replacing the staff member’s for that structure. A structure already on
from_dateis overwritten, otherwise a new one starts. PT and LWF carry over from the staff member’s current structure. - Saving recalculates each staff member’s unfinalised payroll from
from_date. - A
200does not mean everyone changed. Always check each entry indata.staff:resultisappliedorskipped, and a skipped entry carriesreason“Invalid Data” anderrors. Each staff member is saved separately, so one skip does not undo the others. - Repeating the request sets the same values.
Authentication
AuthorizationApi-Key
Format: “Api-Key {api-key}”
Request
This endpoint expects an object.
template_name
Exact name of a salary template, the company’s own or a built-in one, as listed by /payroll/config/templates.
salarybox_ids
SalaryBox IDs of active staff. If any is unknown the result is 400 and nothing changes.
from_date
YYYY-MM-DD, the first day of a month. Not before the joining month and not in a finalised month.
pay_cycle_type
Allowed values:
ctc_amount
Same for all staff in the call.
Response
The request was processed. Check result for each staff member.
message
status
data
Errors
400
Bad Request Error
403
Forbidden Error
