Add Staff Salary Component
Records an incentive or a reimbursement for a staff member in payroll. It records an entry and moves no money. Shared rules: see Writing data. Needs Payroll on your plan.
- After a timeout or failure, check
GET /payroll/salary-componentsfor the same staff member, type and dates before sending again. - To correct an entry, use Update Staff Salary Component. There is no delete through the API; delete it in the SalaryBox app.
component_typeisincentiveorreimbursement.salarybox_idis an active staff member of the company.dateisYYYY-MM-DDand not after the staff member’s local today.amountis a JSON number from 0.01 to 10000000 with up to 2 decimals.notesis optional, at max 500 characters, trimmed.incentive_typeis optional, the exact name fromGET /payroll/config/incentive-types, and only withcomponent_typeincentive. Withreimbursementit is refused with400onincentive_type.- For a reimbursement,
statusisapprovedstraight away, as when an Admin adds one in the app. Admins cannot raise a reimbursement request for themselves. - To decide a pending reimbursement, see Approve or Reject Reimbursement Requests (
PUT /payroll/reimbursement/{salarybox_id}/decision).
Authentication
AuthorizationApi-Key
Format: “Api-Key {api-key}”
Request
This endpoint expects an object.
salarybox_id
SalaryBox ID of an active staff member.
component_type
Allowed values:
date
YYYY-MM-DD. Not after the staff member’s local today.
amount
Up to 2 decimals. Must be a JSON number.
notes
incentive_type
Exact name from GET /payroll/config/incentive-types. Only with component_type incentive.
Response
The entry was recorded.
message
status
data
Errors
400
Bad Request Error
403
Forbidden Error
404
Not Found Error
