Skip to main content

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​

  1. Open Settings → Integrations in your Zubs merchant portal
  2. Find the Klaviyo card and click Connect
  3. Log in to your Klaviyo account when prompted
  4. 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 NameTriggered When
Zubs: Subscription CreatedCustomer starts a new subscription
Zubs: Subscription CancelledSubscription is cancelled
Zubs: Cancellation ScheduledA 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 RevokedA scheduled cancellation is withdrawn, by the customer (Keep Subscription) or by you (Revoke Cancellation)
Zubs: Subscription PausedCustomer pauses their subscription
Zubs: Subscription ReactivatedPaused subscription is resumed

Billing & Payment Events​

Event NameTriggered When
Zubs: Billing FailureA 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 SuccessfulA billing attempt succeeds
Zubs: Item BackorderedA 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:

PropertyTypeDescription
failure_typeStringpayment when the charge failed, inventory when an item is out of stock
attempt_numberNumberWhich 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_attemptsNumberHow many attempts your dunning settings allow in total: the first charge plus every retry
attempts_remainingNumberHow many more retries your dunning settings allow after this one
is_final_attemptBooleantrue when no retry is left and your on-failure action has run
dunning_stageStringretry, last_retry (the next attempt is the last one), or exhausted (no retry left)
next_attempt_dateStringDate of the next retry in UTC, e.g. 2026-11-10. Not set on the final attempt
terminal_actionStringYour on-failure action from the dunning settings: cancelled, paused, or skipped. Only set on the final attempt
errorCodeStringShopify's error code for the failed attempt
errorMessageStringShopify's error message for the failed attempt
amountAttemptedStringThe amount Zubs tried to charge, when Shopify reports it
currencyCodeStringCurrency of amountAttempted
billingCycleIndexNumberWhich billing cycle of the subscription the failed order belongs to

Common trigger filters:

  • First failure: attempt_number equals 1
  • Last chance before the final attempt: dunning_stage equals last_retry
  • Retries used up: is_final_attempt is true
  • Out-of-stock problems only: failure_type equals inventory
warning

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 NameTriggered When
Zubs: Upcoming Order ReminderConfigurable days before next billing
Zubs: Order SkippedA billing cycle is marked as skipped, including a cycle Zubs skips automatically
Zubs: Order UnskippedA billing cycle is marked as unskipped
Zubs: Subscription Items UpdatedCustomer modifies subscription items
Zubs: Frequency ChangedCustomer changes billing frequency
Zubs: Shipping Address ChangedCustomer updates shipping address
Zubs: Customer Details ChangedCustomer updates their details
Zubs: Ship Now InitiatedCustomer triggers an immediate shipment
Zubs: Billing Date ChangedA billing date moves to a different day
Zubs: Delivery Method ChangedCustomer changes the delivery method of a subscription
Zubs: Discount AddedA discount code is applied to a subscription
Zubs: Subscription Product ReplacedA 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 NameTriggered When
Zubs: Gift Voucher IssuedA 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 RedeemedA recipient redeems a code and the gift's order is placed. On the recipient's profile
Zubs: Gift Redeemed For GifterAt 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 EndingThe 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 EndedA 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​
PropertyEventsDescription
product_title, variant_titleAllThe 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_countAll except Zubs: Gift EndingHow many deliveries the gift has
codeZubs: Gift Voucher IssuedThe gift code as it's printed, e.g. ABCD-EFGH-JKLM
redeem_linkZubs: Gift Voucher IssuedLink to the redeem page in the customer portal, with the code filled in
printable_linkZubs: Gift Voucher IssuedLink to the code's printable gift page
recipient_choosesZubs: Gift Voucher Issuedtrue when the recipient picks the variant when redeeming
resentAtZubs: Gift Voucher IssuedWhen you sent the code again with Resend, in UTC. Not set on the first send
orderNameZubs: Gift Voucher Issued, Zubs: Gift Redeemed For GifterThe gift order, e.g. #1042
orderIdZubs: Gift Redeemed, Zubs: Gift EndedThe Shopify ID of the recipient's order at no cost that schedules every delivery of the gift
voucherIdAllZubs' ID of the gift code, the same on every event about that code
lngAll except Zubs: Gift EndingOn the gifter's events the gift order's language, on the recipient's the language saved on their customer, e.g. de
redeemed_atZubs: Gift Redeemed For GifterWhen the code was redeemed, in UTC
code_endingZubs: Gift Redeemed For GifterThe code's last four characters. Only set for an order with several codes
last_delivery_date, last_delivery_atZubs: Gift EndingThe gift's last delivery, as written in the email and as a UTC timestamp
continue_linkZubs: Gift Ending, Zubs: Gift EndedLink 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_textZubs: Gift EndedThe 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.

info

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:

PropertyTypeDescription
pickup_location.nameStringName of the pickup location (always set when pickup_location is present)
pickup_location.addressStringStreet address of the pickup location (optional)
pickup_location.country_codeStringISO country code of the pickup location (optional)
pickup_location.expected_delivery_dayStringExpected 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:

PropertyTypeDescription
variant_idsListNumeric Shopify variant IDs, e.g. ["12345", "67890"]
product_idsListNumeric Shopify product IDs
skusListSKUs of the products
product_titlesListProduct titles
EventProducts Listed
Zubs: Subscription CreatedThe new subscription
Zubs: Subscription CancelledThe cancelled subscription
Zubs: Subscription PausedThe paused subscription
Zubs: Subscription ReactivatedThe reactivated subscription
Zubs: Upcoming Order ReminderThe upcoming order
Zubs: Subscription Items UpdatedThe 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:

PropertyTypeDescription
billingAttemptExpectedDateStringWhen 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:

PropertyTypeDescription
has_one_time_itemsBooleantrue when the upcoming order contains at least one one-time item
has_customer_selected_one_time_itemsBooleantrue 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[].isOneTimeBooleantrue for a one-time item, false for a recurring subscription item
activeContract.lines[].isCustomerSelectedBooleantrue 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:

PropertyTypeDescription
reasonStringno_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.
cycleTotalNumberThe cycle's value before discounts, including shipping (below-minimum skips only)
minimumOrderAmountNumberThe minimum the cycle fell short of (below-minimum skips only)
currencyCodeStringCurrency 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:

PropertyTypeDescription
cancellationReasonStringThe 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:

PropertyTypeDescription
actorStringCUSTOMER when the customer scheduled it in the customer portal, MERCHANT when you did in the merchant portal
scheduledAtStringWhen the cancellation was scheduled, in UTC
minCyclesNumberHow many orders the subscription has to reach before it ends
ordersAtSchedulingNumberHow many orders it had completed when the cancellation was scheduled
cancellationReasonStringThe 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.

PropertyTypeDescriptionExample
zubs_is_active_subscriberBooleanWhether the customer has at least one active subscriptiontrue
zubs_active_subscription_countNumberNumber of active subscriptions2
zubs_active_variant_idsStringSemicolon-separated numeric Shopify variant IDs12345;67890
zubs_active_variant_namesStringSemicolon-separated variant namesDark Roast - 1kg;Medium Roast - 500g
zubs_subscription_frequenciesStringSemicolon-separated delivery frequencies per subscription11111:1 MONTH;22222:2 WEEK
zubs_has_pickup_subscriptionBooleanWhether the customer has at least one active subscription with a Custom Pickup Locationtrue
zubs_active_pickup_locationsStringSemicolon-separated subscriptionId:pickupLocationName per pickup-enabled subscription11111: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.

Segmentation Ideas

Use these properties to build Klaviyo segments such as:

  • Active subscribers — zubs_is_active_subscriber is true
  • Multi-subscription customers — zubs_active_subscription_count greater than 1
  • Customers subscribed to a specific product — zubs_active_variant_ids contains a variant ID
  • Non-subscribers — zubs_is_active_subscriber is false (for win-back campaigns)
  • Pickup customers — zubs_has_pickup_subscription is true (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:

  1. Click Test connection on the Klaviyo integration card
  2. Open Klaviyo and search for the profile with email info@zubs.app
  3. Verify that the Zubs: Test Connection event, the current event names listed above and the zubs_test_connection_verified_at property appear on the profile

What happens:

  • A profile is created (or updated) in Klaviyo using the info@zubs.app email address. Real customer profiles are not affected
  • A Zubs: Test Connection event 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_test set to true, so it becomes available as a flow trigger
  • A zubs_test_connection_verified_at timestamp 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
caution

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​

  1. Navigate to Settings → Integrations
  2. Find the connected integration and click Disconnect
  3. 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 Connection event 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