Events
All webhook event types and when they are triggered.
Events follow the naming convention {resource}.{action}.
Enrollment
Section titled “Enrollment”| Event | Description |
|---|---|
enrollment.accepted | An enrollment has been accepted. Learn more |
enrollment.terminated | An enrollment has been terminated. Learn more |
enrollment.elected | An employee has elected a benefit. Learn more |
enrollment.granted | An enrollment has been granted. Learn more |
enrollment.waived | An employee has waived a benefit. Learn more |
enrollment.started | An enrollment has started. Learn more |
Employee
Section titled “Employee”| Event | Description |
|---|---|
employee.eligibility_granted | An employee has been granted benefits eligibility. Learn more |
employee.eligibility_terminated | An employee’s benefits eligibility has been terminated. Learn more |
employee.deactivated | An employee has been deactivated. Learn more |
employee.deduction_created | A new payroll deduction has been generated for an employee. Learn more |
Employer
Section titled “Employer”| Event | Description |
|---|---|
employer.eligibility_policy_created | An eligibility policy has been created for an employer. Learn more |
Understanding Event Flows
Section titled “Understanding Event Flows”The diagram below shows how all webhook events relate to each other across resource types. Each event is grouped by its resource.
sequenceDiagram
participant P as Partner
participant V as Vitable API
P->>V: Create eligibility policy
V--)P: employer.eligibility_policy_created
P->>V: Census sync employees
V--)P: employee.eligibility_granted (per employee)
Note over V: Employee opens enrollment
V--)P: enrollment.started
alt Employee enrolls
V--)P: enrollment.elected + enrollment.accepted
else Employee declines
V--)P: enrollment.waived
end
Note over V: Monthly deduction cycle (1st of each month)
V--)P: employee.deduction_created (per employee)
Note over V: If employee is later terminated
V--)P: employee.eligibility_terminated
V--)P: enrollment.terminated (per enrollment)
V--)P: employee.deactivated
Event flow summary:
- An eligibility policy (
employer.eligibility_policy_created) sets the rules for when employees become eligible. - Employee eligibility events (
employee.eligibility_granted,employee.eligibility_terminated) signal when employees can or can no longer enroll. - Enrollment events track the full benefit selection lifecycle from
enrollment.startedthroughenrollment.acceptedorenrollment.waived. - Payroll deductions (
employee.deduction_created) are generated on a monthly schedule for employees with active enrollments. - Employee deactivation (
employee.deactivated) occurs after termination and may trigger enrollment terminations.
Related Resources
Section titled “Related Resources”- Employer Onboarding — end-to-end integration setup
- Employee Lifecycle — employee statuses and eligibility events
- Enrollment Lifecycle — enrollment statuses and transitions
- Census Sync — submitting and monitoring employee data
- Eligibility Policies — configuring waiting periods and classifications
- Payroll Deductions — processing payroll deduction events