Back
Case Study - Sbonssy

Where athlete influence becomes income.

A fully custom three-sided affiliate engagement and management platform — connecting sports brands, athlete ambassadors, and fans through commission-based storefronts, Shopify integration, injectable tracking scripts, and automated monthly payout calculation.

Sbonssy is a Finnish sports affiliate platform built on the belief that athletes and creators should earn directly from their influence — not through brand deals or agency contracts, but through authentic product recommendations that convert.

icodelabs built the entire platform from scratch as a custom Next.js application — a three-sided ecosystem connecting brands (who connect their Shopify stores and set commission structures), athlete ambassadors (who build personal storefronts and share with their audiences), and fans (who discover and shop through ambassador recommendations). The platform handles the full affiliate lifecycle: Shopify product sync, click and conversion tracking via injectable scripts, commission calculation per conversion event, and automated monthly payment processing via Stripe.

hero image

The Challenge

Affiliate platforms look simple on the surface but are complex to engineer correctly. The core challenge was building a commission attribution engine that accurately tracks the full conversion funnel — from click to order — across multiple brands, multiple ambassadors, and multiple Shopify storefronts simultaneously. Every click needed to be attributed to the right ambassador. Every order needed to map back to the right conversion event.

Commission calculations needed to handle multiple commission models (pay per click, pay per order) and aggregate correctly for monthly payout runs. And brands needed a frictionless way to connect their existing Shopify stores without rebuilding their e-commerce infrastructure — handled through injectable scripts and validated API endpoints that slot into any brand's existing website.

Tech Stack

LAYER
TECHNOLOGY

Frontend

Next.js

Backend / APIs

Node.js

Database

PostgreSQL

Commerce Integration

Shopify API

Payments & Payouts

Stripe

Tracking

Injectable JavaScript + API Endpoints

Media

Cloudinary

Language

English + Finnish

Sports-forward typography and high-contrast tones of Sbonssy

Papaya Orange

#F26915

RGB: 242, 105, 21

Dark Sienna

#390A21

RGB: 57, 10, 33

Black

#000000

RGB: 0, 0, 0

Pale Canary

#f9fd99

RGB: 249, 253, 153

Seashell

#f1f1f1

RGB: 241, 241, 241

Sunset Gothic Pro
Regular


Aa
abcdefghijklmnopqrstuvwxyz0123456789/*!~$%&()_+

What We Built

1

Three-Sided Platform Architecture

icodelabs architected Sbonssy as a three-sided platform with distinct interfaces, permissions, and workflows for each user type. Brands connect their Shopify store, set commission rates per product or category, manage ambassador relationships, and track campaign performance. Ambassadors (athletes and creators) build personal storefronts from brand product catalogues, generate affiliate links, share with their audience, and track earnings in real time. Fans discover athletes, browse their curated storefronts, and purchase products through ambassador links. Each role has its own dashboard, data visibility, and workflow — all built on a shared Next.js and PostgreSQL foundation.

2

Shopify Integration — Brand Product Sync

Brands connect their Shopify stores to Sbonssy via the Shopify API. Product catalogues, pricing, inventory status, and product metadata are synced automatically — allowing ambassadors to build storefronts from live brand inventory without any manual product management. Order data flows back from Shopify into Sbonssy's commission engine when a conversion is recorded, triggering the attribution and calculation pipeline.

3

Ambassador Storefront Builder

A personalised storefront system was built allowing each ambassador to curate a selection of products from connected brands into their own branded shop page. Ambassadors generate unique affiliate links per product, embed their storefront on their own channels, and drive traffic that is tracked back to their account for commission attribution. The storefront system supports multiple brands simultaneously — an ambassador can represent several sports and lifestyle brands within a single unified shop.

4

Injectable Tracking Script — Brand Site Integration

A lightweight JavaScript tracking script was built that brands embed on their own websites and checkout pages. The script captures click events, session attribution, and order completion signals — passing conversion data back to Sbonssy's API endpoints in real time. This allows Sbonssy to track the full funnel from ambassador link click through to order placement on the brand's own Shopify-powered website, without requiring the brand to rebuild or migrate their e-commerce setup.

5

API Endpoints for Brand Integration & Setup Validation

A suite of API endpoints was built for brand-side integration — covering tracking event ingestion, order confirmation webhooks, product catalogue sync, and commission event recording. A setup validation layer was built alongside this, giving brands a clear integration checklist and real-time validation feedback to confirm their tracking script is correctly installed and conversion events are being captured accurately before going live.

6

Commission Engine — Pay Per Click & Pay Per Order

The core of the platform. A multi-model commission engine was built supporting two attribution types: Pay Per Click (ambassador earns a fixed commission for each qualified click through their affiliate link) and Pay Per Order (ambassador earns a percentage or fixed amount commission when a click converts to a completed order on the brand's Shopify store). The engine processes every click and conversion event in real time, maps each event to the correct ambassador and brand, applies the configured commission rate, and accumulates earnings in the ambassador's account ledger within PostgreSQL.

7

Monthly Payment Calculation & Stripe Payouts

At the end of each commission period, the platform aggregates all confirmed conversion earnings per ambassador — netting off any refunded or cancelled orders — and calculates the final monthly payout amount. Stripe is used to process ambassador payouts, with the platform managing payout scheduling, payment records, and confirmation notifications. Brands are billed for their commission liabilities through the same Stripe infrastructure.

8

Brand & Ambassador Dashboards

Dedicated dashboards were built for both sides of the marketplace. Brand dashboards show active ambassadors, campaign performance, click and conversion volumes, commission liabilities, and Shopify order attribution. Ambassador dashboards show click counts, conversion rates, earnings by brand, payout history, and real-time storefront performance — giving athletes full visibility of their income without requiring a finance background to interpret.

img

Technical Highlights

  • Fully custom Next.js + Node.js + PostgreSQL platform — no marketplace framework, built from scratch
  • Shopify API integration for live product sync and order-based conversion attribution across multiple brand storefronts
  • Injectable JavaScript tracking script capturing click and conversion events on brand websites with zero Shopify migration required
  • API endpoint suite for brand integration with real-time setup validation and webhook-based order confirmation
  • Multi-model commission engine supporting pay per click and pay per order attribution simultaneously
  • PostgreSQL-based conversion ledger tracking every click, order, and commission event per ambassador per brand
  • Automated monthly payout calculation with Stripe ambassador disbursements and brand billing
  • Three-sided role architecture with dedicated dashboards for brands, ambassadors, and fan discovery
img

Ready to Build Your Marketplace?

Sbonssy started on Sharetribe and grew into a fully custom platform as their model evolved. We helped architect both journeys. We'll give you honest advice on which approach fits your stage — and build it either way.

  • 50+Marketplaces Delivered
  • 90 DaysBug-Free Guarantee
  • $3,000Starting Price
Book a Free Call

Real stories, Real Result

founder

Iiro 

Sbonssy

"As a non-technical founder, working with Jay and the iCodeLabs team has been absolutely invaluable for building Sbonssy. We started on Sharetribe, but iCodeLabs helped us pivot to a fully custom platform. More than developers, they were true partners shaping the product, solving complex problems, and guiding the right decisions. Simply put, Sbonssy exists today because of them."