Skip to main content
You are the system of record for the roster. Create an employee in Hammock when a benefit-eligible worker joins, update them when their details change, and set a termination date when they leave.

Create an employee

  • external_id is your worker ID. It’s unique within the employer, and Hammock rejects a second employee with the same one (external_id_taken). Look an employee up with GET /employees?employer=...&external_id=....
  • email must be unique within the employer.
  • date_of_birth, ssn and address are optional. Opening an account requires them, so sending them saves the employee from typing them again. ssn is write-only: Hammock returns ssn_last4 and never the full number.
Only send workers who are eligible for benefits. Contractors and ineligible workers don’t belong on the roster.

Invitations

send_invitation decides who tells the employee about their benefits. You can combine them: invite by email and also link from your product. To send an invitation later, update the employee with "send_invitation": true. Enrollment is hosted by Hammock. It covers eligibility questions, the elections themselves, and the signatures and identity details that opening an account requires.
Create the link when the employee clicks, then redirect them to its url. The link signs them in as that employee, so treat it like a credential: it’s single-use, it expires within minutes, and it must only be created for the signed-in worker it belongs to. The same call works after enrollment. An enrolled employee who follows a new link lands on their benefits, where they can change an election when the plan allows it.

Track enrollment

Each employee has an enrollment_status: When an employee elects a benefit you receive election.created, and deduction.created when that benefit withholds from payroll. See benefits and elections.

Update and terminate

Send only the fields that changed.
Setting termination_date has these effects:
  • The employee’s status becomes terminated on that date.
  • Their deductions get an end_date and you receive deduction.ended. Withhold through the last payday on or before the end date.
  • They keep access to the money already in their accounts.
Send "termination_date": null to reinstate someone. Employees are never deleted.