Download the payslip as a PDF

Returns the employee's payslip for a year and period as a PDF. The document is rendered once and stored, so later requests serve the stored copy until the payslip changes. The file is not password-protected; only the emailed copy is.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

The response is the PDF itself (Content-Type: application/pdf), not the usual JSON envelope. Send Accept: application/pdf.

Two response headers are worth reading:

  • Content-Disposition carries the file name, Payslip-{year}-{period}-{LastName}-{FirstName}.pdf.
  • X-Document-Source is render when the document was produced for this request and cache when it was served from the stored copy. A payslip that has not changed always answers cache after its first download.

Preview payslips are served the same way, and a recalculation makes the next request re-render. A period with no payslip answers 404 with the token payslipNotFound in the JSON envelope.

Path Params
int32
required

Tax year of the payslip

int32
required

Pay period number within the year

string
required

ID of the employee

Query Params
string
enum

Optional payment frequency override. When provided, overrides the frequency from the employee's payroll config.

int32

Optional lock cycle. When provided, the PDF of the payslip's version for that cycle (1 = the first lock) instead of the current payslip.

Headers
string

Optional. Your id for this request: it is carried into every log line about it, so quote it when you contact support.

string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

Language
Credentials
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/pdf
application/json