Skip to content

Terminate an enrollment

enrollments.terminate(strenrollment_id, EnrollmentTerminateParams**kwargs)
POST/v1/enrollments/{enrollment_id}/terminate

Terminates enrolled coverage immediately. An accepted qualifying life event owned by the enrollment member is required unless the plan is VPC or ICHRA. User-backed callers must provide a reason; it is optional for userless organization callers. API keys may act across the caller organization’s book. Tenant mismatches return the same non-disclosing 404 before the request body is validated.

ParametersExpand Collapse
enrollment_id: str

Unique enrollment identifier (enrl_*)

qualifying_life_event_id: Optional[str]

Accepted member qualifying life event identifier (qle_*)

reason: Optional[str]

Audit reason for the termination; required for user-backed callers and optional for userless organization callers

ticket_number: Optional[str]

Optional support or operational ticket number

maxLength1000

Terminate an enrollment

import os
from vitable_connect import VitableConnect

client = VitableConnect(
    api_key=os.environ.get("VITABLE_CONNECT_API_KEY"),  # This is the default and can be omitted
)
client.enrollments.terminate(
    enrollment_id="enrl_AAAAAAAAAAAAAAAAAAAAAQ",
    qualifying_life_event_id="qle_AAAAAAAAAAAAAAAAAAAAAQ",
    reason="Member requested coverage termination after a qualifying event.",
    ticket_number="BPT-1234",
)
Returns Examples