get
https://api.fuul.xyz/api/v1/affiliate-portal/total-stats
Returns aggregated statistics for all affiliates in a project, including total affiliates count, active/suspended affiliates, total volume, revenue, attributions, referred users, and total earnings.
This endpoint provides project-wide metrics by summing all affiliates' data. It's designed for dashboard views where project totals are displayed.
Authentication:
- Supports both regular API keys (project_id is automatically determined from the API key)
- Supports master API keys (project_id must be provided as a query parameter)
Earnings Currency Handling:
- Non-POINT currencies are converted to USD and aggregated together
- POINTS are kept separate and not converted to USD
- The response includes an array of earnings, with separate entries for USD and POINTS
Required API Key Scope: service_role (for regular API keys)