get
https://api.sandbox.flowpayroll.ai/v1/payslip/data////file
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
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
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-Dispositioncarries the file name,Payslip-{year}-{period}-{LastName}-{FirstName}.pdf.X-Document-Sourceisrenderwhen the document was produced for this request andcachewhen it was served from the stored copy. A payslip that has not changed always answerscacheafter 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.
