Skip to main content

Rebuy Post-Purchase Shopify Flow Triggers

How to use the Rebuy Post-Purchase Event trigger in Shopify Flow to automatically tag orders and build automations based on post-purchase events.

Written by Tom

Rebuy's Post-Purchase Shopify Flow integration lets merchants build automated workflows that respond to post-purchase offer events in real time. Use the Rebuy Post-Purchase Event trigger to automatically tag orders, segment customers, and power downstream automations


What Post-Purchase Orders Look Like in Shopify

Post-Purchase orders that had an offer accepted will display a unique identifier in the order history in Shopify, indicating that the Post-Purchase offer was accepted during the checkout process.

(Screenshot above: Order showing a Post-Purchase offer accepted indicator)

Tracking Post-Purchase Orders with Rebuy Post-Purchase Event Triggers in Shopify Flow

Rebuy provides a dedicated Rebuy Post-Purchase Event trigger inside Shopify Flow that fires on post-purchase events. Merchants can use it to automatically tag orders, segment customers, and build downstream automations such as email flows, without any manual tagging.

No changes to Rebuy Admin widget settings are required to use this feature. Everything is configured inside Shopify Flow.

What is the Rebuy Post-Purchase Event Trigger?

The Rebuy Post-Purchase Event trigger is a Shopify Flow trigger that fires when a customer interacts with a Rebuy Post-Purchase offer. Merchants can attach conditions to these triggers to check which type of event occurred, then define an action such as adding an order tag.

Available Variables in the Rebuy Post-Purchase Event Trigger

The following variables are available when building conditions in Shopify Flow using the Rebuy Post-Purchase Event trigger.

rebuyEvent Variable

Description

Values

The type of post-purchase event that fired.

OFFER_VIEWED, OFFER_ACCEPTED, OFFER_DECLINED, PARTIAL_PAID_REMOVED, OFFER_TIMER_EXPIRED

Reflects the product composition of the order after all post-purchase interactions are complete

ONE_TIME_ONLY, SUBSCRIPTION_ONLY, ONE_TIME_AND_SUBSCRIPTION

Details about the specific product in the offer

name, shopifyProductId, variantTitle, quantity, subtotal, isSubscription, sellingPlanName

The count of products accepted across post-purchase offers

Numeric value

The Rebuy Post-Purchase flow configuration ID that triggered the event

Numeric value (Your Post-Purchase Flow ID)

(Screenshot above: Shopify Flow condition builder showing the rebuyEvent variable picker with all available variables listed: eventType, product, orderProductType, acceptedProductsCount, and rebuyFlowId)

eventType Variable

The Post Purchase Rebuy Event eventType variable is the most commonly used variable in Rebuy post-purchase workflows. Use it to trigger different order tags or actions based on exactly what happened during a post-purchase offer, such as tagging accepted orders for fulfillment workflows, flagging declined offers for win-back email flows, identifying timed-out offers for follow-up campaigns, or tracking partial payment removals for order management.

You can check for any of the following event type values using the eventType variable:

eventType Condition Value

What it means

OFFER_VIEWED

The customer viewed a post-purchase offer page. Viewing counts any time the offer loads, including if the customer closes or leaves the page.

OFFER_ACCEPTED

The customer accepted a post-purchase offer.

OFFER_DECLINED

The customer declined a post-purchase offer.

PARTIAL_PAID_REMOVED

A post-purchase item was removed because of a partial payment.

OFFER_TIMER_EXPIRED

The timer set on the post-purchase offer expired and the customer did not take action.

orderProductType Variable

The Post Purchase Rebuy Event orderProductType variable fires separately and reflects the product composition of the order after all post-purchase interactions are complete. Use it to segment orders based on whether customers accepted one-time products, subscriptions, or a mix of both, such as routing subscription orders into a different fulfillment flow, triggering different post-purchase email sequences based on product type, or tagging orders for subscription onboarding campaigns.

Its values are:

orderProductType Condition Value

What it means

ONE_TIME_ONLY

All accepted products were one-time purchases.

SUBSCRIPTION_ONLY

All accepted products were subscriptions.

ONE_TIME_AND_SUBSCRIPTION

All accepted products include a mix of one-time and subscription products.

(Screenshot above: Shopify Flow condition builder showing rebuyEvent.orderProductType set to "Equal to" ONE_TIME_AND_SUBSCRIPTION)

Note on orderProductType: Any actions tied with the orderProductType may not show in the order on Shopify until a customer completes all post-purchase offer interactions for that order. This is expected behavior. orderProductType only resolves after all offer accept or decline events are complete.

product Variable

The Post Purchase Rebuy Event product variable gives you access to details about the specific product included in a post-purchase offer. You can use these sub-fields to build more targeted conditions in your workflows, such as tagging orders based on a specific product name, filtering actions by whether the accepted product was a subscription, applying different tags based on variant title, or tracking the quantity and subtotal of accepted offer products.

product Condition Value

What it means

name

The product name

shopifyProductId

The Shopify product ID

variantTitle

The variant title

quantity

The quantity accepted

subtotal

The subtotal in shop currency

isSubscription

Whether the product is a subscription

sellingPlanName

The subscription selling plan name

(Screenshot above: Shopify Flow condition builder showing the rebuyEvent/product variable picker with all available sub-fields listed: name, shopifyProductId, variantTitle, quantity, subtotal, and isSubscription)

acceptedProductsCount Variable

The Post Purchase Rebuy Event acceptedProductsCount variable reflects the total number of products a customer accepted across all post-purchase offers for an order. Use it to segment orders based on offer volume, such as tagging orders where multiple offers were accepted, triggering different fulfillment or email flows based on how many products were added, or building loyalty workflows that reward customers who accepted more than one offer.

acceptedProductsCount Condition Value

What it means

Numeric value

The total number of unique products accepted across all post-purchase offers for the order

Note: acceptedProductsCount reflects the number of unique products accepted, not the total quantity. For example, if a customer accepts 5 units of one product and 2 units of another, the acceptedProductsCount will be 2.

(Screenshot above: Shopify Flow condition builder showing rebuyEvent.acceptedProductsCount set to "Equal to" 2 — enter your own amount)

Important: If a customer closes the browser, leaves the page, or clicks "View order confirmation" during a post-purchase offer, any Shopify Flow actions based on acceptedProductsCount will fire approximately 1.5 hours after order placement.

For accepted product count tagging, use the following tag format — branching off an orderProductType condition:

ppo-class-{{rebuyEvent.orderProductType}}-count-{{rebuyEvent.acceptedProductsCount}}

rebuyFlowID Variable

The Post Purchase Rebuy Event rebuyFlowID variable corresponds to the ID of the specific Rebuy Post-Purchase Flow that triggered the event. Use it to build workflows that behave differently depending on which Post-Purchase Flow a customer interacted with, such as applying different order tags per flow, routing orders into separate fulfillment or email sequences based on the offer shown, or isolating tagging logic for specific campaigns like BFCM or seasonal promotions.

rebuyFlowID Condition Value

What it means

Numeric value

The ID of the Rebuy Post-Purchase Flow that triggered the event

(Screenshot above: Shopify Flow condition builder showing rebuyEvent.rebuyFlowId set to "Equal to" — enter your own Post-Purchase Flow ID from Rebuy Admin)

To find your Post-Purchase Flow ID, navigate to your Rebuy Admin > Post Purchase > Post-Purchase Flows and copy the ID number listed in the ID column next to your flow.

(Screenshot above: Rebuy Admin Post-Purchase Flows tab showing the ID column with a flow ID highlighted)


How to Set Up a Rebuy Post-Purchase Event Trigger in Shopify Flow

Follow these steps to create a workflow in Shopify Flow that automatically tags orders based on Rebuy post-purchase events.

Step 1: Open the Shopify Flow app & Create a Workflow

From your Shopify Admin, click Apps in the left sidebar, then select Flow.

Then click Create workflow in the top right corner.

(Screenshot above: Shopify Admin left sidebar with "Flow" highlighted under Apps, Shopify Flow Workflows page with "Create workflow" button visible.)

Step 2: Select the Rebuy Post Purchase Event trigger

In the workflow editor, click Select a trigger and choose Rebuy

Personalization Engine.

Select the Rebuy Post Purchase Event from the trigger list. The trigger card will display: "Triggers on Rebuy post-purchase events including offer viewed, accepted, declined, and partial paid removal."

Step 3: Add a condition

Click the + below the event trigger to add a Condition. The Condition checks for event types within the trigger

Set the condition variable to rebuyEvent (this is where different Rebuy event types will show)

Then set the rebuyEvent variable Equal to [your event type].

See section Available Variables in the Rebuy Post-Purchase Event Trigger for more info on the available Rebuy Post-Purchase Event trigger variables

Common values include: OFFER_VIEWED, OFFER_ACCEPTED, OFFER_DECLINED, PARTIAL_PAID_REMOVED, OFFER_TIMER_EXPIRED

Multiple condition branches

You can also create multiple condition branches from the trigger to handle different scenarios. For example, one branch can check Rebuy event order product type exists AND Rebuy event accepted products count exists to tag orders based on product type and count, while a separate branch checks Rebuy event event type is equal to OFFER_ACCEPTED to tag orders where an offer was accepted.

(Screenshot above: Workflow editor showing the "Rebuy Post Purchase Event" trigger branching into two conditions: "Rebuy event order product type exists AND Rebuy event accepted products count exists" on the left, and "Rebuy event event type is equal to OFFER_ACCEPTED" on the right)

Step 4: Add a Shopify action to tag the order

After setting your condition, click the True branch and add an Action.

Choose Shopify then select Add order tags.

Enter a tag name you want applied to the order (for example, ppo-accepted).

Tip: Tags in Shopify have a 40-character limit. Keep your tag names short and consistent (for example, ppo-accepted, ppo-declined, ppo-viewed).

Step 5: Activate your workflow

Click Turn on workflow to activate it.

Repeat this process to build separate workflows for each event type you want to track. You can also build multiple Condition cards with different actions in the same flow.

(Screenshot above: Workflow editor showing the full workflow — the left branch adds the tag ppo-class-{{rebuyEvent.orderProductType}}-count-{{rebuyEvent.acceptedProductsCount}} when order product type and accepted products count exist, and the right branch adds the tag ppo-accepted when event type is equal to OFFER_ACCEPTED)

Step 6: View your Shopify Orders

Once your workflow is active, you can confirm it's working by viewing the order in Shopify. A successfully tagged order will show "Rebuy Personalization Engine edited this order" in the order timeline, and the tag you configured (for example, ppo-accepted) will appear in the Tags section of the order.

(Screenshot above: Shopify order timeline showing "Rebuy Personalization Engine edited this order" and the ppo-accepted tag applied to the order — confirming the Shopify Flow workflow tagged the order successfully after a post-purchase offer was accepted)


Exporting and Importing Workflows Across Stores

Shopify Flow workflows can be exported from one store and imported into another, making it easy to replicate your Rebuy post-purchase tagging setup across multiple stores.

To export a workflow:

Open the workflow in Shopify Flow, click the More actions menu, and select Export.

(Screenshot above: Shopify Flow workflow export option in the More actions menu)

To import a workflow:

From the Shopify Flow Workflows page, click Import and select the exported workflow file.

(Screenshot above: Shopify Flow Workflows page with Import button)


Limitations of Rebuy Post-Purchase Event Triggers

Keep these limitations in mind when building workflows with the Rebuy Post-Purchase Event trigger.

  • Multiple accepts or declines result in a single tag. If a customer accepts or declines multiple post-purchase offers within the same order, only one accept or decline tag will be added to the order.

  • Tags have a 40-character limit. Shopify enforces a 40-character maximum on order tags. Plan your tag naming conventions to stay within this limit.

  • Timer and accept/decline race condition. If a timer is used on a post-purchase offer and a customer accepts or declines the offer at the same moment the timer expires, Shopify Flow actions may be impacted. Both the timer expiry and the accept/decline event can fire in close succession, which may affect which actions are triggered.

  • acceptedProductsCount counts unique products, not total quantity. The count reflects the number of distinct products accepted in post-purchase offers, not the combined quantity. For example, if a customer accepts 5 units of one product and 2 units of another, the acceptedProductsCount will be 2.

  • Rebuy Support cannot assist with Shopify Flow setup. Shopify Flow is not a Rebuy product. Questions about building or troubleshooting flows should go to Shopify Support.


Using Rebuy Reports to Track Post-Purchase Orders

The Rebuy Reports tab lets you export Post-Purchase order data directly from your Rebuy Admin without needing Shopify Flow.

  1. Navigate to your Rebuy Admin Dashboard.

  2. Select Reports from the left-hand panel.

  3. Select a date range.

  4. Click Download Report.

This downloads a CSV file containing Shopify Order IDs and showing which orders include Rebuy Post-Purchase items.

For more details, refer to the Post-Purchase Reporting Analytics help article.


Frequently Asked Questions

Can I track Post-Purchase orders without Shopify Flow?

Yes, you can track Post-Purchase orders without Shopify Flow by exporting order data from Rebuy Reports. Navigate to Reports in your Rebuy Admin, select a date range, and click Download Report to download a CSV showing which Shopify orders include Rebuy Post-Purchase items. Shopify Flow is recommended if you want automatic order tagging and downstream automations.

Does Rebuy add attribution properties to Post-Purchase orders?

No. Rebuy does not add attribution line item properties to orders for Post-Purchase items the way it does for widget-sourced cart items. Post-Purchase orders are tracked through Rebuy Reports, the Shopify order history identifier, or Shopify Flow triggers.

What is the difference between eventType and orderProductType in the Rebuy Post-Purchase Event trigger?

The eventType variable fires on a per-offer basis, meaning it captures each individual accept, decline, or view event as it happens. The orderProductType variable is different: it evaluates the full product composition of the order and only has a value once all customer interactions with post-purchase offers are complete. Use eventType when you want to react to each individual offer event, and orderProductType when you want to segment based on what was ultimately in the order.

Can I use Rebuy Post-Purchase Event triggers for email marketing or segmentation automations?

Yes. Because the Rebuy Post-Purchase Event trigger fires in Shopify Flow, you can attach any Flow-compatible action to it, including order tagging, customer segmentation updates, and triggering email flows through platforms that integrate with Shopify Flow.

Does Rebuy Support help with setting up Shopify Flows?

Shopify Flow is not a Rebuy product, and Rebuy Support is unable to assist with building or troubleshooting flows. For help with Shopify Flow, contact the Shopify Support team directly.

Did this answer your question?