Get enrollment details
enrollments.retrieve(enrollment_id) -> Enrollment { id, benefit_product_id, created_at, 13 more }
/v1/enrollments/{enrollment_id}
Retrieves detailed information for a specific enrollment by ID. Returns selected plan, coverage dates, enrolled dependents, premium amounts, and status. This endpoint is critical for viewing comprehensive enrollment information.
Parameters
enrollment_id: String
Returns
Get enrollment details
require "vitable_connect_api"
vitable_connect_api = VitableConnectAPI::Client.new(
api_key: "My API Key",
environment: "environment_1" # defaults to "production"
)
enrollment = vitable_connect_api.enrollments.retrieve("enrl_abc123def456")
puts(enrollment)
{
"id": "id",
"benefit_product_id": "benefit_product_id",
"created_at": "2019-12-27T18:11:19.117Z",
"employee_id": "employee_id",
"plan_year_id": "plan_year_id",
"status": "pending",
"updated_at": "2019-12-27T18:11:19.117Z",
"coverage_end_date": "2019-12-27",
"coverage_start_date": "2019-12-27",
"coverage_tier": "Unspecified",
"decision": "decision",
"employee_contribution_cents": 0,
"employer_contribution_cents": 0,
"enrolled_dependents": [
{
"dependent_id": "dependent_id",
"first_name": "first_name",
"last_name": "last_name",
"relationship": "Spouse"
}
],
"selected_plan_id": "selected_plan_id",
"selected_plan_name": "selected_plan_name"
}
Returns Examples
{
"id": "id",
"benefit_product_id": "benefit_product_id",
"created_at": "2019-12-27T18:11:19.117Z",
"employee_id": "employee_id",
"plan_year_id": "plan_year_id",
"status": "pending",
"updated_at": "2019-12-27T18:11:19.117Z",
"coverage_end_date": "2019-12-27",
"coverage_start_date": "2019-12-27",
"coverage_tier": "Unspecified",
"decision": "decision",
"employee_contribution_cents": 0,
"employer_contribution_cents": 0,
"enrolled_dependents": [
{
"dependent_id": "dependent_id",
"first_name": "first_name",
"last_name": "last_name",
"relationship": "Spouse"
}
],
"selected_plan_id": "selected_plan_id",
"selected_plan_name": "selected_plan_name"
}