Skip to main content
GET
Retrieve a payroll

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 payroll.

id
string
required
Example:

"pay_6Mn2Bv8cXz4L"

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

"empr_1Qx8Zt2eZvKYlo2C"

external_id
string
required
Example:

"payroll_2027_03_19"

type
enum<string>
required
Available options:
regular,
off_cycle
pay_period
object
required
pay_date
string<date>
required
Example:

"2027-03-19"

status
enum<string>
required

reported: received, and voidable until voidable_until. funding: the ACH pull has started. completed: the pull settled and contributions are in employees' accounts. voided: you voided it. failed: the pull was returned by the employer's bank.

Available options:
reported,
funding,
completed,
voided,
failed
totals
object
required
deductions
object[]
required
reimbursements
string[]
required

IDs of the reimbursements this payroll paid.

Example:
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
created
string<date-time>
required
Example:

"2027-03-17T19:30:00Z"

pay_schedule
string | null
Example:

"ps_7Hn3Kd9sLq2W"

voidable_until
string<date-time> | null

When the ACH pull starts and the payroll can no longer be voided. null once it has passed or the payroll is voided.

Example:

"2027-03-19T13:00:00Z"

pull
string | null

The pull that funds this payroll, when it moves money.

Example:

"pull_3Vb7Nm1qWe5R"

voided_at
string<date-time> | null
completed_at
string<date-time> | null