Skip to main content
POST
Send payslip notification emails to employees

Authorizations

X-Auth-Token
string
header
required

Access token obtained from OAuth2 client credentials flow

X-Org-Id
string
header
required

Organisation to scope the request to. Required when the principal can access more than one organisation; optional for single-organisation principals (the authorizer resolves it automatically).

Headers

Request-Id
string

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

Path Parameters

payrollConfigId
string
required

ID of the payroll configuration

year
integer<int32>
required

Year of the pay run

period
integer<int32>
required

Pay period number within the year

Body

application/json
employeeIds
string[] | null

The employees whose payslips to email, sent within the request. Give either this or recipients, never both.

Example:
skipAlreadyEmailed
boolean

When true, a payslip already emailed as it stands now is left out and reported in skippedEmployeeIds; one recalculated since it was emailed (a figure changed, or the pay run was unlocked and locked again) is sent again. Off by default: a plain request emails every payslip it names.

Example:

false

recipients
object | null

Who to email, sent in the background, so a request of any size is accepted at once: everyone on the pay run with figures (type payRun, the empty payslips left out), or the employees named (type employees). A payslip that cannot be sent is tried again. Give either this or employeeIds, never both.

Response

Payslip notification being sent

message
object
required

A readable message about the outcome and a stable token a client can branch on.

content
object

The data the request returns with its metadata; left out on a response that carries no data, such as most errors.

validationIssues
object[] | null

Each field the request was refused for and why; left out when the request was not refused for its fields.