Create the employer
name, external_id and primary_contact is optional and prefills hosted
setup. external_id is your own company ID. It must be unique across your employers, and you can
look an employer up by it with GET /employers?external_id=....
Send the admin to hosted setup
Create an employer link when the admin clicks through from your product, then redirect them to itsurl.
return_urlis where the admin lands when they finish or leave. Landing there doesn’t mean setup is complete, so checkrequirementsbefore you show a success state.refresh_urlis where Hammock sends an admin whose link expired or was already used. Create a fresh link there and redirect again.
Statuses and requirements
Every employer is reviewed by Hammock before it goes live, and you get an
employer.activated
event when review finishes.
Requirements can come back after an employer is active, for example when a bank account is
closed. Listen for
employer.updated and send the admin a link of type update.
What you can do before an employer is active
You can create pay schedules and employees as soon as the employer exists, so the roster is ready when review finishes. Enrollment links and payroll reports need anactive employer and return
an employer_not_active error until then.
Billing
Hosted setup doesn’t ask the employer for a payment method. Hammock invoices you for the employers you bring, and you bill them as part of your own pricing.Connecting an employer that already uses Hammock directly isn’t part of this preview. Tell us if
you have customers in that position.