Skip to main content
This walkthrough uses a sandbox key and the test helpers, which stand in for the hosted flows and the waiting periods. Every request goes to the sandbox:
1

Create an employer

The employer starts in onboarding. In production you would now send its admin through an employer link. In the sandbox, skip ahead:
2

Add a pay schedule and an employee

3

Enroll the employee

In production the employee enrolls through an enrollment link. In the sandbox, enroll them directly. List the employer’s benefits to find the HSA’s ID first.
Hammock creates an election and a standing deduction, and sends election.created and deduction.created events.
4

Read what to withhold

Ask for the deductions that apply to your next payday.
5

Report the payroll

The payroll comes back reported, with a voidable_until time and the pull that will fund it.
6

Watch it fund

In production the pull starts on the pay date and settles three business days later. In the sandbox, advance it yourself. The first call starts the pull and the second settles it.
The payroll moves to funding, then completed, and you receive payroll.funding_started, pull.settled and payroll.completed events.

What to build next