Skip to main content
GET
Retrieve an employer

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

Response

The employer.

id
string
required
Example:

"empr_1Qx8Zt2eZvKYlo2C"

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

"Acme Robotics"

status
enum<string>
required

onboarding: hosted setup isn't finished. pending_review: setup is submitted and Hammock is reviewing it. active: employees can enroll and payrolls can be reported. closed: the employer no longer offers Hammock benefits.

Available options:
onboarding,
pending_review,
active,
closed
requirements
object
required
metadata
object
required

Up to 50 key-value pairs you can attach to an object. Keys are up to 40 characters and values up to 500.

Example:
livemode
boolean
required

false for objects in the sandbox.

created
string<date-time>
required
Example:

"2027-02-01T15:00:00Z"

Example:

"Acme Robotics, Inc."

external_id
string | null

Your ID for this company. Unique across your employers.

Example:

"company_8f2k1"

ein_last4
string | null

Last four digits of the employer's EIN. The full EIN is never returned.

Example:

"6789"

address
object | null
primary_contact
object