> ## Documentation Index
> Fetch the complete documentation index at: https://partners.usehammock.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Event types

> Every event Hammock sends, and the object it points to.

An event type is `<object>.<action>`. The event's `related_object` is the object named in the
type. New types can be added without a new API version, so ignore the ones you don't handle.

## Employers

| Type | Sent when |
| - | - |
| `employer.created` | You create an employer. |
| `employer.updated` | Its details, `status` or `requirements` change. |
| `employer.activated` | Hammock's review finishes and the employer becomes `active`. |
| `employer.closed` | The employer stops offering Hammock benefits. |

## Pay schedules

| Type | Sent when |
| - | - |
| `pay_schedule.created` | You create a pay schedule. |
| `pay_schedule.updated` | You update one. |
| `pay_schedule.payroll_overdue` | A payday passes with active deductions and no payroll report. |

## Employees

| Type | Sent when |
| - | - |
| `employee.created` | You create an employee. |
| `employee.updated` | Their details, `status` or `enrollment_status` change. |

## Benefits and elections

| Type | Sent when |
| - | - |
| `benefit.created` | An employer adds a benefit, including each new plan year. |
| `benefit.updated` | A benefit's dates or status change. |
| `election.created` | An employee elects a benefit. |
| `election.updated` | The amounts or coverage tier of an election change. |
| `election.ended` | An election's coverage ends. |

## Deductions and reimbursements

| Type | Sent when |
| - | - |
| `deduction.created` | A new standing deduction exists. Add it to payroll. |
| `deduction.updated` | Its amounts change, now or as an `upcoming_change`. |
| `deduction.ended` | It gets an `end_date`. Stop withholding after that date. |
| `reimbursement.created` | A claim is approved. Pay it on the next payroll. |
| `reimbursement.paid` | A payroll you reported paid it. |
| `reimbursement.canceled` | It was withdrawn before being paid. Don't pay it. |
| `employer_contribution.posted` | A one-time employer contribution reached an employee's account. |
| `employer_contribution.reversed` | A one-time employer contribution was taken back. |

## Payrolls and pulls

| Type | Sent when |
| - | - |
| `payroll.created` | You report a payroll. |
| `payroll.funding_started` | Its pull starts. It can no longer be voided. |
| `payroll.completed` | Its pull settled and contributions are in employees' accounts. |
| `payroll.voided` | You void it. |
| `payroll.failed` | Its pull was returned by the employer's bank. |
| `pull.created` | A pull is scheduled. Show the employer an upcoming debit. |
| `pull.updated` | Its amount or date changes before it starts. |
| `pull.processing` | The ACH debit starts. |
| `pull.settled` | The debit settled. |
| `pull.failed` | The bank returned the debit. |
| `pull.canceled` | It was canceled before starting, for example by a payroll void. |

## The events most integrations need

To run payroll correctly you need five: `deduction.created`, `deduction.updated`,
`deduction.ended`, `reimbursement.created` and `reimbursement.canceled`. Add `employer.activated`
and `employee.updated` to keep your product's status displays current, and `pull.created` and
`pull.failed` to show employers their debits.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.