Get plan year details
client.planYears.retrieve(stringplanYearID, RequestOptionsoptions?): 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
planYearID: string
Returns
Get plan year details
import VitableConnectAPI from 'vitable-connect-api';
const client = new VitableConnectAPI({
apiKey: 'My API Key',
});
const planYear = await client.planYears.retrieve('plyr_abc123def456');
console.log(planYear.id);
{
"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"
}