Skip to main content
PUT
Decide an opt-out refund

Path Parameters

employeeId
string
required
membershipEndDate
string<date>
required

Body

application/json

The employer's refund decision for an opt-out. Exactly one of: refund through payroll, or a reason for not doing so. Whether the employee is owed money back through payroll is the employer's decision; the platform shows the amounts and records what was decided, it never decides from a provider's own refund rules.

processRefund
boolean

True puts the refund of the employee's contributions on their next payslip.

noPayrollRefundReason
string | null

Why the employee is not being refunded through payroll, for example "Already refunded with a pay element". Required when processRefund is false; refused when it is true.

refundOutsideOptOutPeriodReason
string | null

Why a refund is being made even though the opt-out was recorded as outside its opt-out period. Required only in that case.

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.