Step 1: Create a Campaign
Open Campaign Settings
In your Shopify Admin, go to Apps → Referbro → Campaign Settings.This is where you define the incentive structure — what discount the friend gets and what reward the referrer earns.
Fill in Campaign Details
Configure the following fields:
| Field | What to Enter | Example |
|---|---|---|
| Campaign Name | A name for your internal reference | Summer Referral Program |
| Discount Strategy | Choose Fixed Amount or Percentage | Fixed Amount |
| Discount Amount | The discount the friend receives | 150 (₹150 off) |
| Minimum Subtotal | Minimum cart value for the discount to apply (set 0 for no minimum) | 0 |
| Referrer Reward | How much the referrer earns per successful referral | 150 (or 15 for 15% discount code) |
| Referrer Reward Type | How the referrer is rewarded: Cashback, Store Credit, Gift Card, Flat Amount Discount Code, or Percentage Discount Code | Cashback |
| Reward Return Period | Days to wait after the friend’s order delivery before issuing the reward | 7 |
Configure Widget Text
These fields control what customers see in the referral widget on your store:
Click Save when done.
| Field | Purpose | Example |
|---|---|---|
| Share Message | The default message when sharing via WhatsApp | Refer a friend and get ₹150 off on your next order. |
| First Line | Top line of the widget (the offer headline) | ₹150 off for your friends |
| Second Line | Second line of the widget (the reward) | ₹150 in your pocket |
| Third Line | Optional tagline or CTA text | (leave blank or add a tagline) |
Step 2: Configure WhatsApp
Add Your Provider
Select your WhatsApp Business API provider from the dropdown. If you use Pragma, select it from the list.Enter your provider credentials:
| Field | Where to Find It |
|---|---|
| API URL | Provided by your BSP. For Pragma, you’ll find this in your Pragma dashboard settings. |
| API Token / Key | Your authentication key. For Pragma: go to Pragma Dashboard → Settings → API Keys. |
| Phone Number ID | Required by some providers (e.g., Meta). For Pragma, this can be left blank. |
Don’t have a WhatsApp provider yet? See the Provider Setup Guide for detailed instructions on getting credentials for each supported provider.
Create Templates on Your Provider's Platform
Before mapping templates in Referbro, you must first create and get them approved on your provider’s platform.For Pragma:
- Go to logisy.tech/connect/broadcast.
- Click the Manage Template button.
- In the side panel, click New Template.
- Fill in the template name, category, language, body text with placeholders, and any buttons.
- Submit for approval — Meta typically approves templates within minutes to a few hours.
- Go to Meta Business Suite → WhatsApp Manager → Message Templates.
- Click Create Template, choose your category and language.
- Add body text with
{{1}},{{2}}placeholders and optional URL buttons. - Submit for review.
Map Templates in Referbro
Once your template is approved on the provider side, map it in Referbro. You’ll see template slots for different triggers (e.g., Referral Share, Post-Purchase Nudge, etc.). For each:See the Template Reference for the full list of available placeholders and parameter formats.
- Template ID: The exact template name as registered with your provider (e.g.,
reforder). - Template Parameters: A JSON object mapping Referbro parameters to your template’s placeholders.
Step 3: Enable Store Widgets
Enable Theme Widgets (App Embeds)
- Go to Shopify Admin → Online Store → Themes → Customize.
- In the Theme Customizer, click the App embeds icon (🧩) on the left sidebar.
- Toggle ON both:
- Refer & Earn — the floating referral button
- Referral Received — the discount popup for referred visitors
- Click Save.
Step 4: Test Your Setup
Test the Storefront Widget
Visit your store’s homepage. You should see the Refer & Earn floating button. Click it, enter a phone number, and verify you receive the WhatsApp message.
Place a Test Order
Create a test order on your store. After completing the purchase, check:
- The Order Status page shows the Referbro widget with a referral code.
- Clicking “Share on WhatsApp” sends the correct message with the referral link.