Skip to navigation

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" with errors.month for a bad month, or errors.salarybox_id when 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." with errors.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_idstringRequired
SalaryBox ID of the staff member. One ID per request.
monthstringRequiredformat: "^\d{4}-(0[1-9]|1[0-2])$"

Month, YYYY-MM. Always the full calendar month.

Response

messagestring
statusboolean
dataobject
rate_limitlist of stringsOptional