How to Set Up the Klaviyo Integration

Trigger email flows with subscription, payment and renewal events.

Read the setup guide

Kaching Subscriptions connects with Klaviyo using Klaviyo Flows.

Whenever something important happens with a customer's subscription (like when they create a new subscription, pause it, or have a successful payment), Kaching automatically sends that event along with detailed customer and subscription data to Klaviyo.

Once these events arrive in Klaviyo, you can create powerful automation flows that trigger emails based on specific events.

Supported events

Kaching Subscriptions currently supports 9 different subscription events that you can use to trigger Klaviyo flows:

Subscription Lifecycle Events

  1. Subscription contract create: Triggered when a customer creates a new subscription.
  2. Subscription contract pause: Triggered when a customer pauses their subscription.
  3. Subscription contract activate: Triggered when a customer resumes a paused subscription.
  4. Subscription contract cancel: Triggered when a customer cancels their subscription.

Billing & Payment Events

  1. Billing attempt success: Triggered when a subscription renewal payment is successfully processed. You can use this to confirm the payment and let customers know when to expect their order.
  2. Billing attempt failure: Triggered when a subscription renewal payment fails. Critical for notifying customers about payment issues so they can update their payment method before their subscription is affected.
  3. Upcoming billing attempt: Triggered one day before subscription renewal date. Number of days before the next billing attempt can be adjusted.

Order Management Events

  1. Order skipped: Triggered when a customer skips an upcoming order.
  2. Order unskipped: Triggered when a customer unskips a previously skipped order.
Klaviyo Integration settings in Kaching Subscriptions: an event name and on/off switch for each event, with the connection status and a test event button

Setting up your first Klaviyo flow: Subscription Cancelled

Let's walk through creating a Klaviyo flow for when a customer cancels their subscription.

Before You Start

Make sure you've already:

  • Connected your Klaviyo account to Kaching Subscriptions by entering your Klaviyo private API key: How to create Klaviyo private API key
  • Enabled the "Subscription contract cancel" event in your integration settings
  • Noted the event name you're using (the default is kaching_subscription_contract_cancel)

Step 1: Create a New Flow in Klaviyo

  1. Log in to your Klaviyo account
  2. Navigate to Flows in the left sidebar
  3. Click Create Flow in the top right corner
  4. Select Build your own (this gives you full control)
  5. Give it a name "Kaching subscription cancellation flow" and click Create flow:
Klaviyo Flows list, with the Create flow button highlighted
Klaviyo Create Flow page, with the Build your own button highlighted
Create flow dialog named Kaching subscription cancelled flow, with the Create flow button highlighted

Step 2: Add the event trigger

  1. Click on the trigger block that appears in your new flow
  2. Select Your Metrics > API as the trigger type
  3. Find the event name you configured in Kaching Subscriptions (e.g., kaching_subscription_contract_cancel)
Flow trigger picker on Your metrics, with the kaching_subscription_contract_cancel API metric highlighted
Trigger set to kaching_subscription_contract_cancel, with the Save button highlighted
Confirm your trigger selection dialog, with the Confirm and save button highlighted
Dispatch test event dialog in Kaching Subscriptions, with Subscription contract cancel selected and Dispatch event highlighted

Step 3: Add an email action

  1. Drag & drop Email from the actions menu
Dragging the Email action from the Actions list into the flow, under the trigger

Step 4: Import the pre-designed email template

Good news! You don't have to design your email from scratch. We've created professional email templates for all 9 events that you can use right away.

Download the Template:

  1. Visit our templates repository: https://github.com/kachingappz/subscriptions-integrations/tree/main/Klaviyo/templates
  2. Find the template for "subscription_contract_cancel"
  3. Copy the HTML

Import the Template into Klaviyo:

  1. Open Templates
  2. Click Import
  3. Select Paste HTML tab
  4. Give template name "Kacing subscription contract cancel"
  5. Paste HTML into the Template HTML field
  6. Check the "Only check this box if this template will be used for triggered emails which are not marketing related." checkbox and click Import template
Klaviyo Templates page, with Templates in the sidebar and the Import button highlighted
Import template dialog on the Paste HTML tab, with the non-marketing checkbox ticked and Import template highlighted

Step 5: Use template in the email action

Now that you've created a template, you can fill out the email details for the action:

  1. Set the email name
  2. Set the subject line
  3. Select the template
  4. Uncheck the "Skip recently emailed profiles" setting
  5. Click Save
  6. Click Review and turn on > Save
Email details panel in the flow, with the Select template button highlighted
Saved email templates in Klaviyo, with Use template highlighted in the imported template's menu
The template's HTML in Klaviyo's message editor, with the Done button highlighted
Email details with the template applied, Skip recently emailed profiles left unchecked, and Save and Review and turn on highlighted

Verify your flow is working

After completing these steps, your Klaviyo flow should be live! But before you call it done, let's make sure everything is working correctly.

Test your flow:

  1. Go back to your Kaching Subscriptions dashboard
  2. Navigate to Settings > Integrations > Klaviyo
  3. Click Dispatch test event
  4. Select "Subscription contract cancel" as the event type
  5. Enter your email address
  6. Click Dispatch event

Within a few moments, you should receive the email. Don't forget to check your spam folder if it doesn't appear in your inbox right away!

Monitor Flow Activity:

To see if your flow is being triggered properly:

  1. In Klaviyo, go to your flow and click on it
  2. Turn on Analytics (if not already enabled) to track performance metrics like open rates and click rates
  3. Enable Flow History to see a real-time log of when the flow triggers and for which customers
  4. Check the flow history after sending your test event - you should see it listed there
The flow with analytics shown and View flow history open in the Manage flow menu

View Event Data in Klaviyo:

Want to see the actual event data that Kaching sent to Klaviyo?

Here's how:

  1. Exit the flow editor and go to Audience > Profiles in Klaviyo
  2. Search for and click on the email address you used for the test event
  3. On the right you should see events feed section
  4. Look for the kaching_subscription_contract_cancel event (or whatever you named it)
  5. Click on the event to see the complete payload with all the subscription data
A Klaviyo profile's event feed with the kaching_subscription_contract_cancel event opened to show its data

If you want to see all the available data fields and their types for each event, check out our comprehensive guide: Klaviyo Event Payload Structure


Congratulations! ๐ŸŽ‰

You've successfully set up your first Klaviyo flow with Kaching Subscription.