Hesam Alavi.
Menu
HomeProjectsServicesAboutContact
Work with me
Back to projects

Franco Brings Referral Tracking & Commission System

Real-time webhook backend that tracks coupon redemptions, calculates tiered commissions, and notifies partners.

Role
Backend Engineer
Industry
Pet / Referral Marketing
Webhook BackendAutomationEmail Notifications
Node.jsTypeScriptExpressNodemailerRailwayJSON Storage

The challenge

Referral commissions for vets, sitters, and trainers were tracked manually in spreadsheets, making payouts slow, error-prone, and demotivating for partners.

The solution

Built a webhook server that listens to Subbly coupon redemptions, maps them to partners, calculates earnings with tiered bonuses, updates cumulative totals, and sends detailed emails to both partners and admins.

Key highlights

  • Coupon-to-partner mapping with flexible configuration.
  • Tiered bonus milestones at 10, 25, 50, and 100 redemptions.
  • Partner-facing earnings summaries and admin notifications.
  • File-based storage for a lightweight, low-maintenance setup.
  • Robust error handling, logging, and environment-based config.

AI & automation

Not AI-driven; showcases clean, type-safe backend design and incentive-aligned automation.

Outcome & impact

Automated referral tracking, improved transparency, and gave partners real-time feedback on their earnings, boosting engagement and trust.

Gallery

Like what you see?

I'd love to hear about what you're building. Let's figure out how I can help.

Get in touch