You can get payslip directly from our API, either
for a single employee,
or for all employees on the PayRun .
Set the accept header to application/octet-stream to retrieve PDF bytes through the authenticated API.
The response contains the PDF bytes in stream and the filename in content.
application/pdf is deprecated because it returns a link to the PDF.
Migrate to application/octet-stream. The end-of-life date for PDF-link responses is 1st February 2027.
Alternatively, set the accept header to application/json to receive a Payslip model.
This model contains all of the data you need to create your own payslip document for your employees.
For more information on using the accept header for reports, view the guide document for Reports