Sequential Flows
Sequential Flows let you automatically modify a customer's subscription at specific order milestones — no manual work required. You define rules like "after the 3rd order, do X" and Zubs takes care of the rest on every billing cycle.
What you can do
Each flow is tied to a subscription plan and consists of one or more rules. Each rule triggers on a specific order number and can perform the following actions:
- Replace a product — Swap one variant for another (e.g. upgrade a customer to a larger size after their 2nd order)
- Apply a discount — Set a percentage or fixed discount on a line item (e.g. give 10% off after the 4th order)
- Add a free one-time item — Include one or more bonus products in the next order at no charge (e.g. send a free sample after the 2nd order). You can gift all the products you add, or a number of them picked at random — see Choosing which free items are gifted
Choosing which free items are gifted
Once a rule that adds free one-time items holds at least two products, you choose below the product list under How many of these products are gifted?:
- All of them — every product in the list that's available for sale is added.
- Some of them, picked at random — each customer gets the number you set under Number of products, picked at random from the products in the list. The number can be anything from 1 up to the number of products (each variant you add counts as one).
With a single product there's nothing to choose, so it's always gifted.
The gift is picked when the order that triggers the rule is placed — for "after the 3rd order", when the 3rd order is created — from the products that are available for sale at that moment. A product that isn't available for sale then is left out in both modes, for example a gift that sold out with Continue selling when out of stock turned off. A random pick only chooses among the available ones, so a sold-out gift is replaced by another one rather than leaving the order without a gift. If fewer products are available than the number you set, the customer gets the ones that are available; if none are, no gift is added and the order bills as usual.
Each rule gifts once per subscription. Once a rule has added a gift, it doesn't pick again for that subscription — not even if the same order is processed twice.
The subscription's timeline shows what was gifted, on which billing cycle, and why the other products weren't: not available for sale, not picked, no longer existing, or not accepted by Shopify.
How order counting works
Rules are worded as "after the Nth order", and Zubs counts orders from the very start of the subscription:
- The 1st order is the order the customer places when they subscribe — their checkout order.
- The 2nd order is their first renewal, the 3rd order the second renewal, and so on.
So "after the 1st order" means after the checkout order, and "after the 2nd order" means after the first recurring order.
When the action is applied
A sequential flow runs the moment its order number is created — it's triggered by that order, not queued for just before the next one. So "after the Nth order" means Zubs reacts as soon as order N exists and immediately updates the subscription, which is why the change is prepared far ahead of order N + 1 rather than at the last second before it bills. The order that triggered the flow is already placed and is never touched — the change first appears on order N + 1:
- "After the 1st order" fires as soon as the checkout order is created, then applies to the customer's next order (their first renewal) — the checkout order itself is never modified.
- "After the 3rd order" fires when the 3rd order is created and first takes effect on the 4th order.
Because the flow runs right when order N is created, that first affected order (N + 1) is prepared immediately and shows the Scheduled change badge well before it bills (see Where scheduled changes appear). What happens over the following orders depends on the action:
- Replace a product and Apply a discount modify the subscription itself, so the change stays on every order from that point onward.
- Add a free one-time item is added only to that next order — it's a one-off, not recurring.
Each rule fires once, right after its order number; it isn't re-evaluated on later orders. To keep an effect running past a milestone, use a persistent action (replace or discount) rather than the one-time free item.
What happens when a product is replaced
The new product takes the old one's place on the same subscription line:
- Plan — it goes on the new product's own subscription plan that bills and delivers as often as the subscription does. If the new product is on several such plans, it stays on the one the subscription is already on.
- Price — the new product's price in the customer's market, with that plan's subscription discount.
- What stays — a discount you gave that line, an automatic discount the customer got at checkout and the line's item properties carry over to the new product. A discount code the customer used at checkout carries over only if it also applies to the new product. One-time items already added to upcoming orders stay as they are, and so do skipped orders.
The new product therefore has to be on a subscription plan with the same billing and delivery frequency as the subscriptions the flow runs on. If it isn't on any — or is on several and the subscription isn't on one of them — the product isn't replaced: the subscription keeps the old product, and its timeline records the action as failed, so you can add the new product to the right plan.
Subscriptions a flow leaves alone
A flow only changes a subscription where one payment covers exactly one delivery. On a prepaid subscription — one payment covering several deliveries — the rules are skipped, and the subscription's timeline records the action as skipped rather than applied. One payment has already covered those deliveries, so what they contain and what they cost are both fixed — the same reason items and frequency can't be edited there.
The same goes for the handful of plans whose billing cycle doesn't cover a whole number of deliveries — weekly deliveries billed monthly, for example, where the number of deliveries per charge varies from one cycle to the next. Zubs can't work out what a replaced product or a discount should cost per charge there, so it leaves the subscription alone rather than charge the wrong amount.
If you want a milestone change on one of these subscriptions, cancel it and create a new one on the schedule the customer wants.
Example use cases
Loyalty discount at milestone Offer a 15% discount after the 3rd order to reward long-term subscribers and reduce churn.
Automatic product upgrade Start customers on a starter pack, then automatically replace it with the full-size version after the 1st order.
Win-back before likely cancellation Apply a discount after the 5th order — a common point where subscribers reconsider — to keep them around.
Surprise gift for loyal subscribers Add a free one-time item after the 6th order as an unexpected thank-you — a small gesture that delights customers and strengthens retention.
How to create a flow
- Navigate to Sequential flows in the sidebar
- Click Create flow and give it a name
- Select the subscription plan(s) the flow applies to
- Add a rule with a trigger order number and an action
- Save and activate the flow
Flows only apply to new orders going forward from the point they are activated.
Where scheduled changes appear
Once a flow will affect an upcoming order, that order is previewed with the change already applied — before it actually bills:
- Customers see a Scheduled change badge on the affected order in their upcoming orders view, with a short note (e.g. "From this order on, the price of your subscription changes") and the new price shown next to the old one.
- You see the same badge on that order in the contract's upcoming billing cycles in the merchant portal, noting which flow applies and after which order.
A free gift shows up in the preview of the order it's added to, as long as the order that triggers it hasn't been placed yet. The preview only lists products that are available for sale right now — a sold-out or deleted product is left out, because it wouldn't be gifted. For a rule that picks gifts at random, which products the customer gets is only decided when the triggering order is placed, so the preview shows the pick rather than every product:
- In the merchant portal, the order's item count includes only the gifts that will ship — the number picked, not every product the rule holds. View details lists the products the gift is picked from together, under a label such as Picked at random: 1 of 3, and the note under the order says how many of how many products are picked.
- In the customer portal, the customer sees one Free gift card (or "2 free gifts" for a pick of two) naming the products it's picked from, and a note such as "A free gift, picked from 3 products, is added to this order." The Free Items count includes the gifts that will ship, not every product they're picked from.
The preview is informational — the change is applied automatically when the order actually bills.
Subscriptions a flow leaves alone show no badge — there's nothing scheduled to change.