Deduction Changes

When employees enroll in or modify their benefit deductions, Benbase automatically sends webhooks to keep your system synchronized with these changes in real-time.

What are Deduction Changes?

Deduction changes occur when:

  • An employee enrolls in a new benefit (deduction created)
  • An employee modifies their existing benefit enrollment (deduction updated)
  • Changes to contribution amounts, coverage types, or effective dates

These webhooks ensure your payroll and HR systems stay up-to-date with the latest benefit enrollment information.

Webhook Events

Benbase sends the following webhook events for deduction changes:

  • Deprecated employee.deduction-created - Triggered when a new deduction is created for an employee. This event will be deprecated in the future.
  • employee.deduction-updated - Triggered when a deduction is modified or created

Webhook Payload

Here's an example of the webhook payload structure:

{
  "created_at": "2024-07-01T05:31:56Z",
  "data": {
    "coverage_type": "member",
    "description": "Principal Vision (VSP Choice Network)",
    "effective_end": "2025-12-31T05:31:56Z",
    "effective_start": "2024-07-01T05:31:56Z",
    "employee_id": "emp_LRgFZ2uXBSVsR6Q0g9Q54",
    "employer_contribution": "1.84",
    "id": "pben_tqYzdjv7yzbKX6m5Bf80P",
    "line_of_coverage": "accident",
    "member_contribution": "0.46",
    "period": "monthly",
    "taxability": "pre_tax"
  },
  "event_type": "employee.deduction-created",
  "id": "wh_tqYaajv7yzbKX6m5Bf80P"
}

You can also access and view example payloads inside the Svix portal directly.

Webhook Payload Fields

The webhook payload contains the following top-level fields:

FieldTypeRequiredDescription
created_atstringYesTimestamp when the event was sent (ISO 8601 format)
dataobjectYesThe deduction data object
event_typestringYesThe type of event (e.g., employee.deduction-updated)
idstringYesUnique identifier for the webhook event

Payroll Deduction Fields

The data object contains the following fields:

FieldTypeRequiredDescriptionPossible Values
idstringYesID of the deduction-
employee_idstringYesEmployee ID-
line_of_coveragestringYesThe line of coverageaccident, accidental_death, cancer, dental, dependent_care_fsa, healthcare_fsa, hospital_indemnity, hsa, life, limited_purpose_fsa, long_term_disability, medical, short_term_disability, vision, voluntary_critical_illness, voluntary_life, voluntary_accidental_death, voluntary_short_term_disability
member_contributionstringYesHow much the employee contributes-
employer_contributionstringYesHow much the employer contributes-
periodstringYesWhen the deductions happenweekly, biweekly, semimonthly, monthly
taxabilitystringYesDeduction tax statuspre_tax, post_tax
coverage_typestringNoCoverage typemember, member_spouse, member_child, member_children, member_family
descriptionstringNoDescription of deduction-
effective_startstringNoWhen the deduction starts applying (ISO 8601 timestamp)-
effective_endstringNoWhen the deduction stops applying (ISO 8601 timestamp)-

Was this page helpful?