Skip to main content
PUT
Choose how pension letters are sent

Path Parameters

letterType
string
required

Body

application/json

How a letter still to be given goes out, for one worker or many: by itself when the worker's next pay run is finalised, or when somebody sends it.

employeeIds
string[] | null
required

Whose letter. Repeated ids are collapsed.

sendAutomatically
boolean
required

True: Flow sends it when the worker's next pay run is finalised, unless it has been sent by then. False: it waits for somebody to send it.

Response

OK

The response envelope every FlowPayroll API answers with: a message, the content, and any validationIssues. errors and the top-level metadata are deprecated copies of validationIssues and content.metadata, and will be removed.

message
object
required

What happened, as English text and a stable token to translate from. textId and textParameters are deprecated copies of token and tokenArguments.

content
object
validationIssues
object[] | null
errors
object[] | null
deprecated
read-only

Deprecated: the same issues as validationIssues (reasonText is reason, reasonId is reasonToken, reasonParameters is reasonTokenArguments). Read validationIssues; this will be removed.

metadata
object
deprecated

Deprecated: the same values as content.metadata. Read that; this will be removed.