Skip to main content
POST
Enroll an employee

Authorizations

Authorization
string
header
required

Your secret API key, sent as Authorization: Bearer hmk_test_....

Headers

Hammock-Version
string

The API version to use for this request. Defaults to the version pinned to your API key.

Path Parameters

id
string
required

Body

application/json
benefit
string
required
Example:

"ben_4Df8Gh2jKl6M"

annual_employee_amount
integer
required

What the employee elects for the plan year, in cents.

Example:

360000

coverage_tier
enum<string>
Available options:
employee_only,
employee_spouse,
employee_children,
family

Response

The created election.

id
string
required
Example:

"elec_3Sd6Fg9hJk2L"

object
string
required
Allowed value: "election"
employer
string
required
Example:

"empr_1Qx8Zt2eZvKYlo2C"

employee
string
required
Example:

"emp_5Tg7Rw2nBx8P"

benefit
string
required
Example:

"ben_4Df8Gh2jKl6M"

benefit_type
enum<string>
required
Available options:
hsa,
health_fsa,
limited_purpose_fsa,
dependent_care_fsa,
ichra,
lsa,
hra,
cobra,
wellness
status
enum<string>
required
Available options:
active,
ended
coverage_start_date
string<date>
required
Example:

"2027-03-01"

annual_employee_amount
integer
required

What the employee elected to contribute for the plan year, in cents.

Example:

360000

annual_employer_amount
integer
required

What the employer contributes for the plan year, in cents.

Example:

120000

currency
string
required
Allowed value: "usd"
livemode
boolean
required
created
string<date-time>
required
updated
string<date-time>
required
coverage_end_date
string<date> | null
coverage_tier
enum<string> | null
Available options:
employee_only,
employee_spouse,
employee_children,
family