Skip to main content
POST
Report 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.

Idempotency-Key
string

A unique value, up to 255 characters, that makes the request safe to retry for 24 hours.

Maximum string length: 255

Body

application/json
employer
string
required
external_id
string
required

Your ID for this payroll. Unique within the employer, and reusable only after the earlier payroll is voided.

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

Required for regular payrolls.

deductions
object[]
reimbursements
string[]

IDs of the pending reimbursements this payroll pays.

metadata
object

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

Example:

Response

The reported 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