Add Free Product to Upcoming Recharge Order on Customer Tag

11 min setup
No coding required
Runs automatically

Delight your customers with a surprise gift by automatically adding a free product to their next Recharge order when a specific tag is added to their Shopify customer profile. This MESA workflow template makes it easy to reward loyal customers or engage targeted segments with a one-time complimentary item. Enhance customer satisfaction and strengthen loyalty with thoughtful, automated gestures.

Shopify logo icon
Customer Updated
Retrieve Customer
Filter
Get List of Customers
Get List of Subscriptions
Create One-time
Shopify logo icon
Customer Add Tag

You're in good company

"MESA has been a game changer for us. And, if you ever get stuck, their support team is always super helpful."

  • Ico star
  • Ico star
  • Ico star
  • Ico star
  • Ico star
PetFriendly

"It's like Zapier but exactly designed for Shopify. I have been able to complete all the workflows that I've needed."

  • Ico star
  • Ico star
  • Ico star
  • Ico star
  • Ico star
Zailys

"The MESA team has been amazing at helping us set up our automations. We would highly recommend this app!"

  • Ico star
  • Ico star
  • Ico star
  • Ico star
  • Ico star
Rothy's

How it works

7 steps to start adding free products to Recharge orders via customer tags automatically

Shopify logo icon

Customer Updated

App connector: Shopify • Time to complete: 0 minutes (Auto-configured)
Why this matters: This trigger captures customer tag modifications, enabling subscription gift management through simple tagging in Shopify admin rather than complex Recharge interface navigation, making gift campaigns accessible to any team member.

When customer tags are updated in Shopify (tags added, removed, or modified through admin, bulk actions, or other workflows), this trigger activates the workflow and captures the customer ID and current tag state. The workflow runs for every customer tag change. No configuration is required—it's pre-connected to your Shopify store and monitors tag updates automatically.

Tag-based gift workflow: This approach lets you manage subscription gifts at scale—bulk tag customers from a segment, CSV upload, or manually tag VIP customers—and the workflow handles the Recharge complexity.

Retrieve Customer

App connector: Shopify • Time to complete: 0 minutes (Auto-configured)
Why this matters: Fetches complete customer details including all current tags needed for verification logic that prevents duplicate gift additions and ensures only properly tagged customers receive free products.

This step retrieves the full Shopify customer record using the customer ID. It returns complete customer data including all current tags as a comma-separated string. This comprehensive tag list is essential for the next step's filtering logic that checks for both the "add-free-product" trigger tag and the "recharge-workflow" processing marker.

Filter

App connector: Filter • Time to complete: 0 minutes (Auto-configured)
Why this matters: Acts as a dual-purpose gate that ensures gifts only go to properly tagged customers and prevents duplicate gifts if customer tags are modified after the initial gift addition, protecting profit margins and preventing customer confusion.

This filter implements two critical checks using AND logic. The workflow proceeds only when BOTH conditions are true:

  1. "recharge-workflow" NOT in customer tags: Ensures this workflow hasn't already processed this customer (preventing duplicate gifts)
  2. "add-free-product" IN customer tags: Confirms the customer is tagged for a gift (the trigger condition)

Logic breakdown:

  1. First check prevents re-running if someone modifies other tags after gift was added
  2. Second check ensures only intentionally tagged customers receive gifts
  3. Combined logic prevents edge cases like accidental duplicate processing

If either condition fails, the workflow stops without adding a gift.

Get List of Customers

App connector: Recharge • Time to complete: 0 minutes (Auto-configured)
Why this matters: Searches Recharge for the customer account using their Shopify customer ID, establishing the connection between Shopify customer records and Recharge subscription data needed for order modifications.

This step queries Recharge's customer database using the Shopify customer ID as the external_customer_id parameter. It returns matching Recharge customer records with the Recharge customer ID needed for querying subscriptions. The first result (index 0) contains the customer's Recharge ID.

Shopify-Recharge connection: Recharge stores the Shopify customer ID as external_customer_id, enabling lookups that bridge the two systems. This is automatically set when customers create subscriptions through Shopify checkout.

Get List of Subscriptions

App connector: Recharge • Time to complete: 0 minutes (Auto-configured)
Why this matters: Retrieves the customer's active subscription details including shipping address and next charge date required for scheduling the one-time free product addition to the correct order at the correct address.

This step queries Recharge for subscriptions belonging to the Recharge customer ID. It returns subscription details including address_id (shipping address), next_charge_scheduled_at (next order date), subscription product information, and billing details. The first subscription (index 0) is used for adding the gift—if customers have multiple subscriptions, the gift adds to the first subscription's order.

Multi-subscription consideration: Customers with multiple active subscriptions will receive the gift on their first subscription's next order. To add gifts to all subscriptions, you'd need to loop through all subscriptions and create multiple one-time products.

Create One-time

App connector: Recharge • Time to complete: 5 minutes
Why this matters: Adds the free product as a one-time addition to the customer's next subscription order, delivering the gift seamlessly within their regular subscription shipment without creating separate orders or additional shipping costs.

This step creates a Recharge "one-time" product—a product added to a single upcoming subscription order rather than recurring.

Configuration: You must set two values during setup:

  1. Product title: The display name for the gift product (like "Free Sample - Thank You Gift" or "Loyalty Bonus Product")
  2. Shopify Variant ID: The variant ID of the gift product in Shopify (found in product admin URL or using Shopify API)

The one-time product includes:

  1. address_id: Shipping address from the subscription (ensures gift ships to correct location)
  2. price: Set to "0" (makes it free)
  3. next_charge_scheduled_at: Scheduled for the subscription's next charge date (adds to upcoming order)
  4. product_title: Your configured gift product name
  5. quantity: Set to "1" (one gift per customer)
  6. external_variant_id: Your configured Shopify variant ID (connects to actual product)

One-time vs subscription: One-time products appear only on the next order, not every order. Perfect for gifts, promotions, or bonuses that shouldn't recur.

Shopify logo icon

Customer Add Tag

App connector: Shopify • Time to complete: 0 minutes (Auto-configured)
Why this matters: Tags the customer with "recharge-workflow" to mark them as processed, preventing duplicate gift additions if their tags are modified again while maintaining the "add-free-product" tag for tracking which customers received gifts.

This step adds the "recharge-workflow" tag to the customer's Shopify record. This processing marker ensures the filter in step 3 will block future workflow runs for this customer, even if someone edits other tags or re-adds the "add-free-product" tag. The tag remains permanently unless manually removed.

Tag management strategy:

  1. Keep "add-free-product" tag to track who received gifts
  2. Add "recharge-workflow" tag to prevent duplicates
  3. To send another gift later, remove both tags and re-tag with "add-free-product"

Ready to set this up? It only takes 11 minutes.

Our support team will even help you personalize this workflow for free.

Get started →

Make it your own!

Customize this workflow even further:

Add multiple gift products
Duplicate the "Create One-time" step with different variant IDs to add multiple free products in one workflow run, creating gift bundles or multi-item rewards for special occasions.
Segment by subscription tier
Add filters that check subscription product details or tags and vary the gift product based on subscription tier (premium subscribers get better gifts), creating tiered loyalty rewards.
Schedule gifts for specific dates
Modify the next_charge_scheduled_at value to add gifts to orders beyond the next one (like 2 months from now for birthday gifts), enabling scheduled promotional campaigns.
Send gift notifications
Add email or SMS steps after the one-time creation that notify customers about their surprise gift, building excitement and reinforcing the loyalty program value.

Common questions

How do I find the Shopify Variant ID?

Can I add gifts to customers with multiple subscriptions?

What happens if the customer doesn't have an active subscription?

Ready to start adding free products to Recharge orders via customer tags automatically?

7-day free trial • 11 min setup • Cancel anytime

Need help? Our automation experts will help you personalize this workflow for free. Contact support