Skip to main content
GET
Retrieve a deduction

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

id
string
required
Example:

"ded_2Lp9Xc4vNm7K"

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

"empr_1Qx8Zt2eZvKYlo2C"

employee
string
required
Example:

"emp_5Tg7Rw2nBx8P"

benefit
string
required
Example:

"ben_4Df8Gh2jKl6M"

election
string
required
Example:

"elec_3Sd6Fg9hJk2L"

benefit_type
enum<string>
required
Available options:
hsa,
health_fsa,
limited_purpose_fsa,
dependent_care_fsa,
ichra,
lsa,
hra,
cobra,
wellness
category
enum<string>
required

contribution for money going into an account. premium for the employee's share of an ICHRA health insurance premium.

Available options:
contribution,
premium
tax_treatment
enum<string>
required
Available options:
pre_tax,
post_tax
status
enum<string>
required

scheduled before effective_date, active from then on, and ended after end_date.

Available options:
scheduled,
active,
ended
employee_amount
integer
required

Cents to withhold from the employee on each payday.

Example:

15000

employer_amount
integer
required

Cents the employer contributes on each payday.

Example:

5000

currency
string
required
Allowed value: "usd"
effective_date
string<date>
required

The first pay date the current amounts apply to.

Example:

"2027-03-19"

variable
boolean
required

Whether Hammock recalculates the amounts before each lock date, as it does for an HSA set to reach the annual limit. Fetch with pay_date before each payroll.

livemode
boolean
required
created
string<date-time>
required
updated
string<date-time>
required
end_date
string<date> | null

The last pay date to withhold on. null while the deduction is open-ended.

upcoming_change
object | null

New amounts that replace the current ones from their own effective_date.