Shopify Coupon Codes Integration

Samantha Brown Updated by Samantha Brown

Overview

Friendbuy’s Shopify Coupons Integration supports a wide range of advanced discount configuration options that give merchants greater flexibility and control over how rewards and incentives are issued and redeemed. These enhancements allow Shopify coupon rules to be tailored based on discount type, subscription duration, product eligibility, customer segments, shipping rules, and more.

This expanded functionality is available when configuring any of the following reward types in Friendbuy:

  • Advocate Reward (within Referral Campaigns)
  • Friend Incentive (within Referral Campaigns)
  • Loyalty Earning Events
  • Loyalty Redemption Events

Setting Up an Advocate Reward or Friend Incentive to use the Shopify Coupons Integration

The Shopify integration is required to use this feature. To set up or check if it is installed, go to Developer Center > Integrations > Shopify to confirm a blue checkmark is visible on the card

Setting Up an Advocate Reward or Friend Incentive to Use Shopify Coupons

Step 1: Configure the Reward or Incentive Type

For Advocates: Go to the desired Referral campaign > Edit > Advocate Reward tab > Reward Settings. Select Shopify Coupons from the dropdown menu under How will you reward your Advocates? 

For Friends: Go to the desired Referral campaign > Edit > Friend Incentive tab > Incentive Settings. Select Shopify Coupons from the dropdown menu under: How will you incentivize referred Friends?

Step 2: Customize Shopify Coupon Rules

Within the Shopify Coupon Rules modal, customize your rules for how customers can redeem the coupon codes at your Shopify store.

Click Modify Rules in the Shopify Coupon Rules modal to configure the following settings.

Basic Configuration

  • Code Prefix (Recommended):
    Add an alphanumeric prefix to track referral-generated codes (e.g., adv for Advocates, frnd for Friends).
  • Discount Type (Required):
    Choose from:
    • Fixed Amount (e.g., $10 off)
    • Percentage Discount (e.g., 10% off)
  • Discount Amount (Required):
    Enter the value of the discount.
  • Minimum Purchase Requirement (Optional):
    Set a cart minimum (pre-discount) for coupon eligibility.
  • New Customers Only Requirement (Optional):
    Restrict coupon redemption to customers with number_of_orders = 0.
Important: If New Customer Only requirement is enabled, your Shopify store settings must have a customer segment set up for customers who haven't purchased (see screenshot below), with the corresponding business logic: number_of_orders = 0

Advanced Discount Configuration (NEW)

➤ Discount Details

1. Order Discounts: Applies to entire order (excluding tax).

• Type (Required):

• Fixed amount (e.g., $5)

• Percentage off (e.g., 10%)

• Applies To:

• Subscriptions & One-Time Products

• Discount Duration (for subscriptions):

• One Charge Only

• Next X Charges → Set the number of charges

• All Future Charges

2. Product Discounts: Applies to all or specific products.

• Eligible Products:

• Restrict to Specific Products: Search by SKU or Title

• Restrict to Specific Collections: Search Shopify collections by Title

• If left blank, applies to all products.

• Discount Duration (for subscriptions):

• Same options as Order Discounts

• Applies To:

• Subscriptions & One-Time Products

3. Free Shipping: Covers shipping cost

• Applies To:

• Subscriptions & One-Time Products

• Discount Duration (for subscriptions):

• One Charge Only

• Next X Charges

• All Future Charges

• Shipping Discount Restrictions:

• Applicable Countries: Select countries eligible for free shipping

• Max Shipping Rate: Exclude shipping rates above a set amount

➤ Discount Audience Restrictions

• Applicable Customer Segments:

• Leave blank to apply to all

• Search for segments in Shopify (e.g., Email Subscribers)

• Shopify Admin → Customers → Segments

Segment Example

➤ Minimum Requirements

• None: No restrictions

• Minimum Purchase Amount: Set a cart threshold before discount applies

➤ Discount Validity Window

• Start Date:

• Immediate (default)

• Or enable calendar option to specify start date/time

• End Date:

• None (default)

• Or choose from:

• Calendar Date

• X Days After Distribution

➤ Discount Combinations

All discount types can combine with:

• Shipping Discounts

• Order Discounts

• Product Discounts

Step 3: Save and Publish

Once all rules are configured:

• Double-check your entries

• Click Save Changes (if campaign is a draft) or Publish Changes (if campaign is live)

Step 4 (Optional): Modify Rules Post-Launch

To edit existing rules:

• Click Modify Rules next to the coupon code summary

• Changes apply only to newly generated coupon codes

• Existing codes remain unaffectedWhen configuring your coupon reward under Modify Rules, the following advanced options are available:

How to View These Codes in Shopify

When created through Friendbuy’s Shopify Coupon integration, codes:

  • Appear in the same Discounts section
  • Are often auto-generated with a prefix, such as:
    • ADV-XXXXXX for Advocate Rewards
    • FRND-XXXXXX for Friend Incentives

Admin Actions Available

Merchants can:

  • Search for specific codes
  • Filter by type, usage, customer eligibility
  • View performance (redemption count, usage history

How did we do?

Setting Up a Friend Incentive

How to Run an A/B Test

Contact