Skip to main content

Integration

Purpose and when to use

Divi Membership’s Zapier integration sends webhooks when subscription events occur so you can automate workflows in Zapier and connected apps. Use it for CRM updates, email sequences, or any app that accepts webhooks.

Setting up webhooks for subscription events

You can configure webhooks for:

  • Subscription Created
  • Subscription Cancelled
  • Subscription Refunded

How to add webhook URLs

  1. Go to Divi Engine → Divi Membership → Integrations.
  2. Find the Zapier section.
  3. Enter your Zapier webhook URLs in the fields for each subscription action.
  4. Click Save Changes to enable the webhooks.

Modifying data sent to Zapier

You can change the payload sent to Zapier using these filters:

  • dmem_zapier_created_subscription_data
  • dmem_zapier_cancelled_subscription_data
  • dmem_zapier_refunded_subscription_data

Each filter receives $data and $subscription_id. Return the modified $data array.

Code example

functions.php or plugin
add_filter( 'dmem_zapier_created_subscription_data', 'my_zapier_created_data', 10, 2 );
function my_zapier_created_data( $data, $subscription_id ) {
$data['custom_field'] = 'Custom Value';
$data['subscription_status'] = 'active';
return $data;
}

Replace the filter name with the relevant one for the event (created, cancelled, or refunded).

What's Next

  • Developer hooks — Actions and filters for subscription lifecycle and custom logic.
  • Subscription management — How subscriptions are created, cancelled, and refunded in the admin.
  • Settings — Where to find the Integrations tab and Zapier URLs.