Skip to main content
DELETE
Remove an employee from their pension

Path Parameters

employeeId
string
required

Query Parameters

optOutDate
string<date>

The date the member left the scheme. Pay runs whose pay period ends before it keep their contributions. Without it, the employee comes off from the latest pay run still open, and today is recorded as the end date. Supplying it asserts that the member left, so without a reason the ending is recorded as OptOut, or as MembershipCeased for a member with no right to opt out. Must not be earlier than the employee's enrolment date.

processRefund
boolean

The employer's decision to refund the member's contributions through payroll: every settled member contribution from enrolment to the opt-out date, on the next payslip. Defaults to false. Whether the opt-out is inside the statutory opt-out period is the employer's assessment (The Pensions Regulator's detailed guidance 7); the employer holds the notice and the evidence.

reason
enum<string>

Why the membership ended, as the employer asserts it: OptOut, MembershipCeased or AdministrativeRemoval. OptOut is refused (400) for a member put in under their contract or who asked to join as an entitled worker: the law gives them no right to opt out (The Pensions Regulator's detailed guidance 7, para 9), so their membership ceases instead. Defaults to OptOut when an optOutDate is supplied or processRefund=true (MembershipCeased for those members), and to AdministrativeRemoval for a bare removal with neither. Only OptOut and MembershipCeased suppress re-enrolment until the scheme's next 3-yearly cyclical re-enrolment date.

Available options:
OptOut,
MembershipCeased,
AdministrativeRemoval
refundOutsideOptOutPeriodReason
string

Why a refund is being made even though the membership ended OUTSIDE the statutory opt-out period. Required in that case and rejected in any other. Outside the period a defined-contribution scheme owes no refund (The Pensions Regulator's detailed guidance 7, paras 25 and 55-57); the employer may still choose to pay one, and this records that it was a deliberate decision and who made it. Call GET /employee-pension/{employeeId}/refund-preview to find out whether the date is inside the period.

noPayrollRefundReason
string

Why the employee is not being refunded through payroll, for example "Already refunded with a pay element". Records the employer's refund decision on an opt-out without a refund. Refused with processRefund=true. An opt-out with neither stays on GET /organisation/opt-out-refunds?status=awaitingDecision until someone decides.

optOutNoticeReference
string

Only with an opt-out the member made by handing the employer the provider's paper opt-out form: the reference printed on it, exactly as printed (letters and numbers, up to 20, keeping leading zeros). Sent to the provider with the opt-out. Leave it out when the member opted out with the provider directly: the provider already holds that opt-out.

optOutNoticeReceivedInTime
boolean

Required with optOutNoticeReference, and must be true: the employer's declaration that the paper form reached them within the opt-out period. A form that arrived later is not an opt-out, so the request is refused.

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.