> ## Documentation Index
> Fetch the complete documentation index at: https://partners.usehammock.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Benefits and elections

> Read what an employer offers and what each employee chose.

Benefits and elections are read-only. Employers choose their benefits in hosted setup, and
employees make elections in hosted enrollment. You read both to show them in your product, and to
understand where each deduction comes from.

## Benefits

A benefit is one thing an employer offers for one plan year.

```bash theme={null}
curl "https://api.usehammock.co/benefits?employer=empr_1Qx8Zt2eZvKYlo2C&status=active" \
  -H "Authorization: Bearer hmk_live_..."
```

```json theme={null}
{
  "id": "ben_4Df8Gh2jKl6M",
  "object": "benefit",
  "employer": "empr_1Qx8Zt2eZvKYlo2C",
  "type": "hsa",
  "name": "HSA",
  "status": "active",
  "plan_year": { "start_date": "2027-01-01", "end_date": "2027-12-31" },
  "payroll": {
    "deductions": true,
    "reimbursements": false,
    "reimbursement_tax_treatment": null
  }
}
```

The `payroll` object tells you what a benefit asks of you:

| Type | `deductions` | `reimbursements` | `reimbursement_tax_treatment` |
| - | - | - | - |
| `hsa` | `true` | `false` | `null` |
| `health_fsa` | `true` | `false` | `null` |
| `limited_purpose_fsa` | `true` | `false` | `null` |
| `dependent_care_fsa` | `true` | `true` | `non_taxable` |
| `ichra` | `true` when employees pay part of a premium | `true` on plans that reimburse expenses | `non_taxable` |
| `lsa` | `false` | `true` | `taxable` |
| `hra`, `cobra`, `wellness` | `false` | `false` | `null` |

Before you offer an employer, make sure your payroll has an earning or deduction type for each
row that applies. A new plan year is a new benefit, with its own ID.

## Elections

An election is one employee's choice for one benefit.

```json theme={null}
{
  "id": "elec_3Sd6Fg9hJk2L",
  "object": "election",
  "employer": "empr_1Qx8Zt2eZvKYlo2C",
  "employee": "emp_5Tg7Rw2nBx8P",
  "benefit": "ben_4Df8Gh2jKl6M",
  "benefit_type": "hsa",
  "status": "active",
  "coverage_start_date": "2027-03-01",
  "coverage_end_date": null,
  "coverage_tier": "employee_only",
  "annual_employee_amount": 360000,
  "annual_employer_amount": 120000,
  "currency": "usd"
}
```

The annual amounts are what the employee and employer put in over the plan year. Use them for
display. For what to withhold on a given paycheck, always read the
[deduction](https://partners.usehammock.co/guides/deductions.md): it accounts for the paydays left in the year, changes already
made, and limits.

| Event | When |
| - | - |
| `election.created` | An employee elects a benefit. |
| `election.updated` | They change the amount or coverage tier, or the employer's contribution changes. |
| `election.ended` | Coverage ends: termination, the end of the plan year, or a waived benefit. |

## What employees do in Hammock

After enrolling, employees use Hammock directly for everything that isn't payroll: their balance,
their card, submitting claims and investing HSA funds. An
[enrollment link](https://partners.usehammock.co/guides/employees.md#link-an-employee-into-enrollment) signs them in from your
product.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.