Add Staff Work Basis Payment
Records a one-off work basis payment 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/work-basis-paymentfor the same staff member and dates before sending again. - To correct an entry, use Update Staff Work Basis Payment. There is no delete through the API; delete it in the SalaryBox app.
salarybox_idis an active staff member of the company.dateisYYYY-MM-DD, not after the staff member’s local today, and not in a finalised payroll month.- There is no
amountin the request.work_nameis 1-200 characters, trimmed.rate_per_unitis a JSON number from 0.01 to 10000000 with up to 2 decimals.quantityis a JSON number from 0.001 to 1000000 with up to 3 decimals.rate_per_unitxquantitymust be at most 10000000. category_nameis optional, 1-200 characters, trimmed.notesis optional, at max 500 characters, trimmed.- The response
amountisrate_per_unitxquantity. - The staff member gets the usual in-app notification, as when an admin adds it in the app.
Authentication
AuthorizationApi-Key
Format: “Api-Key {api-key}”
Request
This endpoint expects an object.
salarybox_id
SalaryBox ID of an active staff member.
date
YYYY-MM-DD. Not after the staff member’s local today and not in a finalised payroll month.
work_name
rate_per_unit
Up to 2 decimals. Must be a JSON number.
quantity
Up to 3 decimals. Must be a JSON number. rate_per_unit x quantity must be at most 10000000.
category_name
notes
Response
The work basis payment was recorded.
message
status
data
Errors
400
Bad Request Error
403
Forbidden Error
404
Not Found Error
