Fetch Single Staff Payslip
Returns one staff member’s payslip PDF for a month. Needs Payroll and Payroll and Compliance Reports on your plan. It is the same payslip the app downloads, and is generated during the call, so it can take several seconds. For every staff member at once, use Create Company Payslips.
Payslips exist only once the month’s payment is saved for the staff member, same as in the app. Staff who have since left can still get their payslip for a month they were paid. The file also appears in the app under Reports > Downloads for the person whose key made the call.
Errors
400"Invalid Data"witherrors.monthfor a bad month, orerrors.salarybox_idwhen it is missing.400"Payment for this month is not saved for this staff member. Save the payment in SalaryBox first, then generate the payslip."400"No payroll for this staff member in this month: their salary structure is missing or their PF settings need attention. Fix it in the SalaryBox app, then generate the payslip."witherrors.month.403"Payroll reports are not included in your plan. Contact us."404"Staff not found."502"The payslip could not be generated right now, please try again". Retry later.
Authentication
AuthorizationApi-Key
Format: “Api-Key {api-key}”
Query parameters
salarybox_id
SalaryBox ID of the staff member. One ID per request.
month
Month, YYYY-MM. Always the full calendar month.
Response
message
status
data
rate_limit
