Auth
Login, registration, OTP and session handling.
Tracking
Public storefront tracking — clicks, conversions and analytics events. Authenticated with a store API key (X-API-Key).
Webhooks
Server-to-server event receivers. Authenticated with an API key or an HMAC signature.
SaaS
Subscription lifecycle and billing events for SaaS workspaces: sign-ups, trials, subscriptions, payments and refunds. Drives recurring partner commissions.
Affiliate
Partner portal endpoints, including the SaaS partner dashboard. Authenticated with the session cookie.
SaaS (Admin)
SaaS workspace: KPIs and metrics, referred customers and subscriptions, plans, the recurring commission plan, integrations and the billing-event ledger.
Affiliates (Admin)
Manage partner accounts and their status.
Referrals (Admin)
Review, approve and reject referral leads.
Commissions (Admin)
Commission ledger, maturation and commission rules.
Payouts (Admin)
Create, complete and automate affiliate payouts; invoices, transactions and refunds.
Programs (Admin)
Programs, program settings, partner groups and coupons.
Analytics (Admin)
Dashboards, detailed analytics, live sessions and reports.
Integrations (Admin)
Store integrations, API keys, usage and outbound webhooks.
Team (Admin)
Merchant profile, workspace mode and onboarding, team members and merchant switching.
System
Health and status probes for uptime monitors and the deploy platform. Public.
Billing (Admin)
Your Affiliatops plan, billed through Stripe: checkout with the free trial, plan changes, cancellation, the Stripe customer portal, billing history, and the billing webhook. Needs STRIPE_SECRET_KEY (and STRIPE_WEBHOOK_SECRET for the webhook).
Schemas
Shared data models used across the API