Back to home

Welcome to Reflio Docs

Reflio helps SaaS teams set up referral and rewards programs in minutes. This guide walks you through embedding the widget, connecting payments, and running your first campaign.

1. Installation

Add the Reflio widget to your app with a single line of code:

<script async src="https://cdn.reflio.app/widget.js"
  data-project-id="YOUR_PROJECT_ID"
  data-user-id="{{USER_ID}}"
  data-email="{{USER_EMAIL}}">
</script>
  • data-project-id: Your Reflio project ID (from dashboard → Settings → Embed).
  • data-user-id: Your internal user identifier.
  • data-email: (Optional) user email for attribution.

The widget automatically generates a referral link and shows rewards progress.

2. Create Your First Campaign

In the dashboard, go to Campaigns → Create Campaign and configure:

  • Reward type: credit, discount, or cash
  • Reward value (e.g., $29 credit)
  • Double-sided rewards (yes/no)
  • Minimum invoice rule (default: 1 paid invoice)

Click Save & Activate. Your campaign is live.

3. Connect Payments

Reflio currently supports Stripe (GA).

  • Go to Integrations → Connect Stripe.
  • Authorize your account.
  • Reflio will listen to invoice.paid events to qualify referrals.

Other payment providers (Paddle, Lemon Squeezy) are coming soon.

4. Track Referrals

The Referrals tab shows all activity:

  • Pending → new referral created
  • Qualified → first invoice paid (meets campaign rule)
  • Rewarded → reward issued

You can manually approve/deny flagged referrals.

5. Fraud Protection

Available from day one:

  • Block same-IP/email
  • Disposable email blacklist
  • Manual flagging

Advanced fraud detection will roll out as the product grows.

6. Support

Questions? Email hello@pirax.app or DM us on X @PiraxAI.