Back to Projects
Franco Brings Referral Tracking & Commission System
Role: Backend Engineer• Industry: Pet / Referral Marketing
Real-time webhook backend that tracks coupon redemptions, calculates tiered commissions, and notifies partners.
Webhook BackendAutomationEmail Notifications
Node.jsTypeScriptExpressNodemailerRailwayJSON Storage
Business Problem
Referral commissions for vets, sitters, and trainers were tracked manually in spreadsheets, making payouts slow, error-prone, and demotivating for partners.
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
