Skip to main content
The Campaign is the core of your referral program. It defines what incentives you offer, how rewards work, and what customers see in the referral widgets.

Creating a Campaign

Navigate to Apps → Referbro → Campaign Settings in your Shopify Admin.

Discount Strategies

Choose how the friend (referee) receives their discount:
StrategyHow It WorksBest For
Fixed AmountA flat currency discount (e.g., ₹150 off)Consistent margins, lower-AOV stores
PercentageA percentage of the cart subtotal (e.g., 10% off)High-AOV stores, encouraging larger orders

Campaign Fields Reference

Incentive Configuration

FieldTypeDescription
Campaign NameTextInternal name for your reference (customers don’t see this)
Discount StrategySelectFixed Amount or Percentage
Discount Amount / PercentageNumberThe discount value for the friend
Minimum SubtotalCurrencyMinimum cart value required for the discount to apply. Set to 0 for no minimum
Referrer RewardNumberAmount or percentage the referrer earns per successful referral. For Percentage Discount Code, enter the percent (e.g., 15 for 15%)
Referrer Reward TypeSelectHow the referrer is rewarded: Cashback, Store Credit, Gift Card, Flat Amount Discount Code, or Percentage Discount Code
Reward Return Period (Days)NumberDays to wait after the friend’s order delivery before issuing the referrer’s reward. Use this to account for return/refund windows
Store Credit Expiry (Days)Number(Only for Store Credit) Number of days before issued store credit expires. Leave blank for no expiry
Active StatusTogglePause or resume the campaign at any time

Advanced Options

FieldDescription
Allow Without CodeIf enabled, rewards are issued even when a friend doesn’t apply the discount code at checkout — as long as the referral source was tracked via the link click
Combines With Order DiscountsWhether this referral discount can stack with other order-level discounts
Combines With Product DiscountsWhether this referral discount can stack with product-level discounts
Combines With Shipping DiscountsWhether this referral discount can stack with shipping discounts

Widget Configuration

These fields control the text and behavior of the Refer & Earn widget that appears on your storefront:
FieldWhat It ControlsExample
Share MessageThe default text pre-filled when a customer shares via WhatsAppRefer a friend and get ₹150 off!
First LineMain headline in the widget (the offer)₹150 off for your friends
Second LineSub-headline (the reward)₹150 in your pocket
Third LineOptional tagline or additional CTA(e.g., “Share now!”)
Button LabelText on the share/CTA buttonShare & Earn
Show Referral Code on UIWhether to display the raw referral code in the widgetToggle on/off
Auto-Generate for Logged InAutomatically generate a referral code for logged-in customersToggle on/off

UTM-Based Display

You can configure the widget to appear only for visitors who arrive via specific UTM parameters:
FieldDescription
Show on UTMEnable to restrict widget visibility to UTM-tagged traffic
UTM ParametersKey-value pairs that must match (e.g., utm_source: referral)

Discount Codes

When a campaign is active, Referbro automatically manages discount codes on Shopify:
  • For Referrers: Each customer gets a unique referral code (e.g., JOHN-AB12). This code is linked to a Shopify discount that gives the friend the configured discount.
  • For Friends: When a friend clicks a referral link and reaches your store, the discount is applied (or available to apply) at checkout.
Updating campaign settings (e.g., changing the discount amount) applies to future referrals only. Existing discount codes retain their original values unless you run the bulk update via the API endpoint POST /api/shop/:shopId/update-discount-codes.

Common Scenarios

”I want ₹150 off for friends and ₹150 cashback for referrers”

  • Discount Strategy: Fixed Amount
  • Discount Amount: 150
  • Referrer Reward: 150
  • Referrer Reward Type: Cashback

”I want 10% off for friends and store credit for referrers”

  • Discount Strategy: Percentage
  • Percentage: 10
  • Referrer Reward: 200
  • Referrer Reward Type: Store Credit
  • Store Credit Expiry: 90 (expires after 90 days)

“I want ₹100 off for friends and a ₹100 discount code for referrers”

  • Discount Strategy: Fixed Amount
  • Discount Amount: 100
  • Referrer Reward: 100
  • Referrer Reward Type: Flat Amount Discount Code
  • After the return period, a unique cart-wide ₹100 discount code is created on Shopify and sent to the referrer via WhatsApp.

”I want 15% off for friends and a 10% discount code for referrers”

  • Discount Strategy: Percentage
  • Percentage: 15
  • Referrer Reward: 10 (enter 10 for 10%)
  • Referrer Reward Type: Percentage Discount Code
  • After the return period, a unique cart-wide 10% discount code is created on Shopify and sent to the referrer via WhatsApp.

”I want to allow rewards even if the friend forgets to apply the code”

  • Enable Allow Without Code — as long as the friend arrived via the referral link, the referrer still earns their reward.