Integration Settings
The Integrations tab lets you connect Zubs with third-party services to sync subscription data and power marketing automation.
Currently Available:
- Klaviyo (Email Marketing & Analytics)
- Shopify Flow (Automation & Workflows)
Klaviyo Integration
Klaviyo is an email and SMS marketing platform. The Zubs integration sends subscription events and sets custom profile properties in Klaviyo, enabling subscription-aware marketing automation.
Connecting Klaviyo
- Open Settings → Integrations in your Zubs merchant portal
- Find the Klaviyo card and click Connect
- Log in to your Klaviyo account when prompted
- Allow access for Zubs to connect
Once connected, the status shows Connected with a green indicator and events start syncing in real-time.
The connect link is valid for 10 minutes. If you see Klaviyo connect link expired, click Connect again on the integrations page that opens.
Events
Zubs automatically sends the following events to Klaviyo as metrics. You can use these to trigger flows, build segments, and create campaigns. These events fire whenever your Klaviyo integration is connected, independent of your native Zubs email notification toggles.
Subscription Lifecycle Events
| Event Name | Triggered When |
|---|---|
Zubs: Subscription Created | Customer starts a new subscription |
Zubs: Subscription Cancelled | Subscription is cancelled |
Zubs: Cancellation Scheduled | A cancellation is scheduled on a subscription that hasn't reached its Minimum cycles yet, by the customer or by you. The subscription keeps billing until the minimum is reached; Zubs: Subscription Cancelled follows when it actually ends. |
Zubs: Scheduled Cancellation Revoked | A scheduled cancellation is withdrawn, by the customer (Keep Subscription) or by you (Revoke Cancellation) |
Zubs: Subscription Paused | Customer pauses their subscription |
Zubs: Subscription Reactivated | Paused subscription is resumed |
Billing & Payment Events
| Event Name | Triggered When |
|---|---|
Zubs: Billing Failure | A billing attempt fails, because the payment failed or an item is out of stock. Sent once per failed attempt that Zubs handles: after it has scheduled the next retry or, on the last attempt, taken your on-failure action (skip, cancel, or pause). It isn't sent for a failure on a subscription that's already cancelled or an order that's already paid, or for an out-of-stock attempt that Zubs turns into an order with Ship available items now, send the rest when back in stock. |
Zubs: Renewal Successful | A billing attempt succeeds |
Zubs: Item Backordered | A renewal ships without items that are out of stock, under the strategy Ship available items now, send the rest when back in stock. The held items follow once they're back in stock. Sent once per order. |
Billing Failure Properties
Zubs: Billing Failure fires on every failed attempt Zubs handles, not just the first or the last. Use a trigger filter on these properties to pick the attempts a flow should react to:
| Property | Type | Description |
|---|---|---|
failure_type | String | payment when the charge failed, inventory when an item is out of stock |
attempt_number | Number | Which attempt this was for the current order, counting the first charge as 1. Payment and out-of-stock attempts on the same order count together |
total_attempts | Number | How many attempts your dunning settings allow in total: the first charge plus every retry |
attempts_remaining | Number | How many more retries your dunning settings allow after this one |
is_final_attempt | Boolean | true when no retry is left and your on-failure action has run |
dunning_stage | String | retry, last_retry (the next attempt is the last one), or exhausted (no retry left) |
next_attempt_date | String | Date of the next retry in UTC, e.g. 2026-11-10. Not set on the final attempt |
terminal_action | String | Your on-failure action from the dunning settings: cancelled, paused, or skipped. Only set on the final attempt |
errorCode | String | Shopify's error code for the failed attempt |
errorMessage | String | Shopify's error message for the failed attempt |
amountAttempted | String | The amount Zubs tried to charge, when Shopify reports it |
currencyCode | String | Currency of amountAttempted |
billingCycleIndex | Number | Which billing cycle of the subscription the failed order belongs to |
Common trigger filters:
- First failure:
attempt_numberequals1 - Last chance before the final attempt:
dunning_stageequalslast_retry - Retries used up:
is_final_attemptistrue - Out-of-stock problems only:
failure_typeequalsinventory
A flow triggered by Zubs: Billing Failure without a trigger filter runs on every failed attempt, so a customer can receive the same email several times for one order.
Order & Change Events
| Event Name | Triggered When |
|---|---|
Zubs: Upcoming Order Reminder | Configurable days before next billing |
Zubs: Order Skipped | A billing cycle is marked as skipped, including a cycle Zubs skips automatically |
Zubs: Order Unskipped | A billing cycle is marked as unskipped |
Zubs: Subscription Items Updated | Customer modifies subscription items |
Zubs: Frequency Changed | Customer changes billing frequency |
Zubs: Shipping Address Changed | Customer updates shipping address |
Zubs: Customer Details Changed | Customer updates their details |
Zubs: Ship Now Initiated | Customer triggers an immediate shipment |
Zubs: Billing Date Changed | A billing date moves to a different day |
Zubs: Delivery Method Changed | Customer changes the delivery method of a subscription |
Zubs: Discount Added | A discount code is applied to a subscription |
Zubs: Subscription Product Replaced | A bulk action replaces a product on a subscription. Sent once per replaced product, with the old and new product, the old and new price, the currency, the price choice (pricing: KEEP_CURRENT or NEW_PRODUCT), the next order date, the new product's image and the bulk action's id |
Gift Events
Sent for gift subscriptions. To send a gift email from a Klaviyo flow instead, switch the Zubs email off in Notification Settings only once your flow is live.
| Event Name | Triggered When |
|---|---|
Zubs: Gift Voucher Issued | A gift order is paid. Sent once per gift code, on the gifter's profile, and again when you Resend a code. Not sent when the gift order has no email address |
Zubs: Gift Redeemed | A recipient redeems a code and the gift's order is placed. On the recipient's profile |
Zubs: Gift Redeemed For Gifter | At the same time, on the gifter's profile. Not sent when the gifter redeemed their own code, or when the gift order has no email address |
Zubs: Gift Ending | The number of days you set in Notification Settings before a gift's last delivery, or within a day of the redemption when the last delivery is closer than that, with the link to continue in your store's checkout. On the recipient's profile, once per gift, and only while a delivery is still to come, the recipient hasn't started a subscription of their own and the gifted variant can be bought |
Zubs: Gift Ended | A gift's last delivery is being prepared and the gift ends. On the recipient's profile. Not sent when the recipient has already started a subscription of their own, which sent Zubs: Subscription Created |
Gift Event Properties
| Property | Events | Description |
|---|---|---|
product_title, variant_title | All | The gifted product and variant. variant_title is empty for a product without variants, and on Zubs: Gift Voucher Issued when the recipient chooses the variant |
delivery_count | All except Zubs: Gift Ending | How many deliveries the gift has |
code | Zubs: Gift Voucher Issued | The gift code as it's printed, e.g. ABCD-EFGH-JKLM |
redeem_link | Zubs: Gift Voucher Issued | Link to the redeem page in the customer portal, with the code filled in |
printable_link | Zubs: Gift Voucher Issued | Link to the code's printable gift page |
recipient_chooses | Zubs: Gift Voucher Issued | true when the recipient picks the variant when redeeming |
resentAt | Zubs: Gift Voucher Issued | When you sent the code again with Resend, in UTC. Not set on the first send |
orderName | Zubs: Gift Voucher Issued, Zubs: Gift Redeemed For Gifter | The gift order, e.g. #1042 |
orderId | Zubs: Gift Redeemed, Zubs: Gift Ended | The Shopify ID of the recipient's order at no cost that schedules every delivery of the gift |
voucherId | All | Zubs' ID of the gift code, the same on every event about that code |
lng | All except Zubs: Gift Ending | On the gifter's events the gift order's language, on the recipient's the language saved on their customer, e.g. de |
redeemed_at | Zubs: Gift Redeemed For Gifter | When the code was redeemed, in UTC |
code_ending | Zubs: Gift Redeemed For Gifter | The code's last four characters. Only set for an order with several codes |
last_delivery_date, last_delivery_at | Zubs: Gift Ending | The gift's last delivery, as written in the email and as a UTC timestamp |
continue_link | Zubs: Gift Ending, Zubs: Gift Ended | Link to your store's checkout with the gifted variant as a subscription at the gift's delivery frequency, where the recipient starts their own subscription. Empty on Zubs: Gift Ended when the variant can't be bought |
continuation_text | Zubs: Gift Ended | The email's line that offers the recipient their own subscription, in their language. Empty when the variant can't be bought |
A flow on Zubs: Gift Voucher Issued sends one email per code, where the Zubs Gift Code Issued email lists all of an order's codes in one, and a Resend triggers the flow again.
Each event includes rich metadata such as subscription details, product information, billing data, and customer context. Use Klaviyo's flow builder to personalize emails based on this event data.
Event Properties
For subscriptions that use a Custom Pickup Location, every subscription event above, including the upcoming-order reminder, carries a nested pickup_location object in its event properties. Zubs: Customer Details Changed belongs to the customer, not to a subscription, so it has no pickup_location:
| Property | Type | Description |
|---|---|---|
pickup_location.name | String | Name of the pickup location (always set when pickup_location is present) |
pickup_location.address | String | Street address of the pickup location (optional) |
pickup_location.country_code | String | ISO country code of the pickup location (optional) |
pickup_location.expected_delivery_day | String | Expected delivery day, e.g. "Wednesday" (optional) |
Subscriptions without a Custom Pickup Location do not have a pickup_location key on their events.
Use dot notation in Klaviyo flows and segment filters, e.g. pickup_location.country_code equals "DE" to segment pickup customers in Germany, or {{ event.pickup_location.name }} to personalize a template with the store name.
Events that concern the products of a subscription also list them as plain lists, so you can filter flows by product:
| Property | Type | Description |
|---|---|---|
variant_ids | List | Numeric Shopify variant IDs, e.g. ["12345", "67890"] |
product_ids | List | Numeric Shopify product IDs |
skus | List | SKUs of the products |
product_titles | List | Product titles |
| Event | Products Listed |
|---|---|
Zubs: Subscription Created | The new subscription |
Zubs: Subscription Cancelled | The cancelled subscription |
Zubs: Subscription Paused | The paused subscription |
Zubs: Subscription Reactivated | The reactivated subscription |
Zubs: Upcoming Order Reminder | The upcoming order |
Zubs: Subscription Items Updated | The subscription after the change |
Each value appears once. A list is empty when the subscription has no products. If Zubs couldn't read the subscription's products, the event arrives without these properties.
To start a flow only for one product, add a trigger filter such as variant_ids contains "12345", or skus contains "COFFEE-250". A filter matches whole entries only: product_titles contains "Coffee" doesn't match a product titled "Coffee Beans". To react to several products, combine filters with OR; to leave products out, combine doesn't contain filters with AND. Klaviyo offers these properties in the filter dropdown once an event carrying them has arrived; until then, type the property name.
Zubs: Upcoming Order Reminder carries the date the upcoming order is billed:
| Property | Type | Description |
|---|---|---|
billingAttemptExpectedDate | String | When Zubs bills the upcoming order, as an ISO 8601 timestamp in UTC, e.g. 2026-11-03T04:00:00Z |
To show the date in your reminder email, use {{ event.billingAttemptExpectedDate|format_date_string|date:"d.m.Y" }}, or any other Klaviyo date format. It is always the date of the order this reminder is for, including for customers with several subscriptions.
Zubs: Upcoming Order Reminder also tells you whether the upcoming order contains one-time items, and whether your customer picked them:
| Property | Type | Description |
|---|---|---|
has_one_time_items | Boolean | true when the upcoming order contains at least one one-time item |
has_customer_selected_one_time_items | Boolean | true when your customer picked at least one of those one-time items themselves. Items placed by Default Item Fill, a Sequential Flow or a Shopify Flow action don't count. |
activeContract.lines[].isOneTime | Boolean | true for a one-time item, false for a recurring subscription item |
activeContract.lines[].isCustomerSelected | Boolean | true for a one-time item your customer picked themselves |
To remind customers who haven't chosen their items yet, filter a flow on has_customer_selected_one_time_items equals false.
When Zubs skips a cycle automatically, Zubs: Order Skipped also tells you why:
| Property | Type | Description |
|---|---|---|
reason | String | no_items_selected when the cycle held only the main product, below_minimum_order_amount when its value was below the minimum order amount. Not set on skips made by you, your customer or an integration. |
cycleTotal | Number | The cycle's value before discounts, including shipping (below-minimum skips only) |
minimumOrderAmount | Number | The minimum the cycle fell short of (below-minimum skips only) |
currencyCode | String | Currency of cycleTotal (below-minimum skips only) |
To send a flow only for automatic skips, add the trigger filter reason is set; for one reason only, filter on reason equals "no_items_selected".
Zubs: Subscription Cancelled also carries the reason the subscription was cancelled for, so you can tailor win-back flows to it:
| Property | Type | Description |
|---|---|---|
cancellationReason | String | The cancellation reason that was picked, as it's named in your cancellation settings. Not set when no reason was given. The customer's extra details aren't sent to Klaviyo; they stay on the subscription timeline. |
To run a win-back flow for one reason only, filter on cancellationReason equals "Too expensive".
Zubs: Cancellation Scheduled tells you who scheduled it and what it's waiting for, so a retention flow can reach the customer while they still owe orders:
| Property | Type | Description |
|---|---|---|
actor | String | CUSTOMER when the customer scheduled it in the customer portal, MERCHANT when you did in the merchant portal |
scheduledAt | String | When the cancellation was scheduled, in UTC |
minCycles | Number | How many orders the subscription has to reach before it ends |
ordersAtScheduling | Number | How many orders it had completed when the cancellation was scheduled |
cancellationReason | String | The cancellation reason that was picked, as it's named in your cancellation settings. Not set when no reason was given. The customer's extra details aren't sent. |
Zubs: Scheduled Cancellation Revoked carries actor and the scheduledAt of the cancellation it withdrew. Use it as a flow filter or exit condition, so a customer who kept their subscription drops out of the retention flow.
To react only to customers who asked to cancel themselves, filter on actor equals "CUSTOMER".
Custom Profile Properties
Zubs sets the following custom properties on each customer's Klaviyo profile. These are updated automatically whenever a subscription event occurs and can be used for segmentation and personalization.
| Property | Type | Description | Example |
|---|---|---|---|
zubs_is_active_subscriber | Boolean | Whether the customer has at least one active subscription | true |
zubs_active_subscription_count | Number | Number of active subscriptions | 2 |
zubs_active_variant_ids | String | Semicolon-separated numeric Shopify variant IDs | 12345;67890 |
zubs_active_variant_names | String | Semicolon-separated variant names | Dark Roast - 1kg;Medium Roast - 500g |
zubs_subscription_frequencies | String | Semicolon-separated delivery frequencies per subscription | 11111:1 MONTH;22222:2 WEEK |
zubs_has_pickup_subscription | Boolean | Whether the customer has at least one active subscription with a Custom Pickup Location | true |
zubs_active_pickup_locations | String | Semicolon-separated subscriptionId:pickupLocationName per pickup-enabled subscription | 11111:Main Street Store;22222:Downtown Café |
The zubs_subscription_frequencies format is subscriptionId:intervalCount INTERVAL, where the interval is one of DAY, WEEK, MONTH, or YEAR. It tells you how often the customer receives a delivery, not how often they're charged. For most plans those are the same, but they differ on prepaid plans where one charge covers several deliveries: a customer on "delivered every 3 months, paid for 3 up front" shows 3 MONTH.
Use these properties to build Klaviyo segments such as:
- Active subscribers —
zubs_is_active_subscriberistrue - Multi-subscription customers —
zubs_active_subscription_countgreater than 1 - Customers subscribed to a specific product —
zubs_active_variant_idscontains a variant ID - Non-subscribers —
zubs_is_active_subscriberisfalse(for win-back campaigns) - Pickup customers —
zubs_has_pickup_subscriptionistrue(for collection reminders or pickup-specific flows)
Test Connection
After connecting Klaviyo, use the Test connection button on the integration card to verify everything works and to make every current Zubs event available as a flow trigger.
How to use:
- Click Test connection on the Klaviyo integration card
- Open Klaviyo and search for the profile with email
info@zubs.app - Verify that the
Zubs: Test Connectionevent, the current event names listed above and thezubs_test_connection_verified_atproperty appear on the profile
What happens:
- A profile is created (or updated) in Klaviyo using the
info@zubs.appemail address. Real customer profiles are not affected - A
Zubs: Test Connectionevent is sent to that profile - Every current event name listed above is sent to that profile as an empty test event, once per test. Each one carries only the property
zubs_testset totrue, so it becomes available as a flow trigger - A
zubs_test_connection_verified_attimestamp is set on the profile. The other custom profile properties are left untouched
The full properties described above arrive with real activity in your store, for example a new subscription, a skipped order or a scheduled order reminder. Test events count in your Klaviyo metrics like any other event and can trigger flows for the info@zubs.app test profile.
Backfill Data
The Backfill data button syncs profile properties for all existing customers with active subscriptions. This is useful when you first connect Klaviyo or need to re-sync profile data.
When to use:
- After first connecting Klaviyo (existing subscribers won't have profile properties yet)
- After reconnecting a previously disconnected integration
- If you suspect profile data is out of sync
What happens:
- Zubs iterates through all customers with active subscriptions in your store
- For each customer, it computes and sets the custom profile properties listed above
- The process runs in the background — you can close the page
Backfilling can take a while depending on the number of active subscribers. You'll see a confirmation dialog before starting. Only run a backfill if you are aware it may take some time to complete.
Customer Hub Integration
Integration with the Customer Hub (customer-facing portal) is not yet available. Currently, the Klaviyo integration only syncs data from the merchant portal side (Shopify admin). Customer Hub support is planned for a future release.
Shopify Flow
Shopify Flow is Shopify's built-in automation builder. Zubs integrates natively — no connection step is needed. The integration is always available and appears in your Integrations tab with an Available status.
From the integration card you can jump directly into the Shopify Flow builder or read the documentation. Once in Flow, you can use Zubs triggers (subscription created, renewal successful, billing failure, and more) as starting points for automations, and Zubs actions (cancel subscription, skip next cycle, add free item, fetch subscription contracts) as steps within a flow.
See the Shopify Flow Integration article for the full list of triggers and actions.
Disconnecting Integrations
- Navigate to Settings → Integrations
- Find the connected integration and click Disconnect
- Confirm disconnection
What happens:
- Data sync stops immediately
- Future events will not be sent
- Existing data remains in Klaviyo
- You can reconnect at any time
Troubleshooting
Events Not Appearing in Klaviyo
- Check that the integration status shows Connected
- Use the Test connection button to verify the connection works
- The test sends each current event name as an empty event marked
zubs_test. The full event properties appear once the matching activity happens in your store - Events sync in real-time but may take up to a minute to appear
Test Connection Fails
- Check your network connection
- Try again in a few minutes — Klaviyo may be temporarily unavailable
- When the
Zubs: Test Connectionevent fails, the other event names aren't sent. Run the test again once it passes to make them available as triggers - Contact support if the issue persists
Related Resources
- Notification Settings — Configure Zubs native email notifications
- General Settings — Set up subscription features and retention