Get plan year details
plan_years.retrieve(plan_year_id) -> PlanYear { id, benefit_product_id, contribution_classes, 9 more }
/v1/plan-years/{plan_year_id}
Retrieves detailed configuration for a specific plan year by ID. Returns coverage dates, open enrollment period, available plans, and contribution structure.
Parameters
plan_year_id: String
Returns
Get plan year details
require "vitable_connect_api"
vitable_connect_api = VitableConnectAPI::Client.new(
api_key: "My API Key",
environment: "environment_1" # defaults to "production"
)
plan_year = vitable_connect_api.plan_years.retrieve("plyr_abc123def456")
puts(plan_year)
{
"id": "id",
"benefit_product_id": "benefit_product_id",
"contribution_classes": [
{
"id": "id",
"employee_contribution_cents": 0,
"employer_contribution_cents": 0,
"employment": "employment",
"family_status": "Unspecified"
}
],
"coverage_end": "2019-12-27",
"coverage_start": "2019-12-27",
"created_at": "2019-12-27T18:11:19.117Z",
"employer_id": "employer_id",
"open_enrollment_end_date": "2019-12-27",
"open_enrollment_start_date": "2019-12-27",
"plans": [
{
"id": "id",
"carrier_plan_id": "carrier_plan_id",
"monthly_premium_cents": 0,
"name": "name",
"deductible_cents": 0,
"out_of_pocket_max_cents": 0,
"tier": "Bronze"
}
],
"status": "draft",
"updated_at": "2019-12-27T18:11:19.117Z"
}
Returns Examples
{
"id": "id",
"benefit_product_id": "benefit_product_id",
"contribution_classes": [
{
"id": "id",
"employee_contribution_cents": 0,
"employer_contribution_cents": 0,
"employment": "employment",
"family_status": "Unspecified"
}
],
"coverage_end": "2019-12-27",
"coverage_start": "2019-12-27",
"created_at": "2019-12-27T18:11:19.117Z",
"employer_id": "employer_id",
"open_enrollment_end_date": "2019-12-27",
"open_enrollment_start_date": "2019-12-27",
"plans": [
{
"id": "id",
"carrier_plan_id": "carrier_plan_id",
"monthly_premium_cents": 0,
"name": "name",
"deductible_cents": 0,
"out_of_pocket_max_cents": 0,
"tier": "Bronze"
}
],
"status": "draft",
"updated_at": "2019-12-27T18:11:19.117Z"
}