Record Staff Advance
Records an advance given to a staff member. It records an entry and moves no money; an online payout is a different flow. Shared rules: see Writing data. Needs Payroll on your plan.
- After a timeout or failure, check
GET /payroll/advancefor the same staff member and dates before sending again. - To correct an entry, use Update Staff Advance. There is no delete through the API; delete it in the SalaryBox app.
salarybox_idis an active staff member of the company.dateis the month the advance counts in. It isYYYY-MM-DD, not after the staff member’s local today, and not in a finalised payroll month.paid_onis optional,YYYY-MM-DD, not in the future. It defaults todate.payment_modeis optional:CASH,CHEQUE,DEBIT_CARD,IMPS,NEFT,NET_BANKING,RTGSorUPI. It defaults toCASH.amountis a JSON number from 0.01 to 10000000 with up to 2 decimals.notesis optional, at max 500 characters, trimmed.- The staff member gets an SMS as well as the usual in-app notification.
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. The month the advance counts in. Not after the staff member’s local today and not in a finalised payroll month.
amount
Up to 2 decimals. Must be a JSON number.
paid_on
YYYY-MM-DD, not in the future. Defaults to date.
payment_mode
Defaults to CASH.
notes
Response
The advance was recorded.
message
status
data
Errors
400
Bad Request Error
403
Forbidden Error
404
Not Found Error
