get
https://api.fuul.xyz/api/v1/affiliate-portal/stats
Returns statistics for an affiliate, including total earnings, referred volume (R1 only), multilevel volume (R2+R3), total volume (R1+R2+R3), referred revenue, and referred users.
Date Filtering Options:
- All-time stats (default): Omit all date parameters to get aggregated totals across all time
- Date range: Use
fromandtoparameters together to filter stats for a specific date range - Current month: Use
this_month=trueto get stats for the current month only - Note: You cannot use
this_monthtogether withfrom/toparameters
Conversion Filtering (Optional):
- All conversions (default): Omit conversion parameters to get aggregated totals across all conversions
- By conversion ID: Use
conversion_id(UUID) to filter stats for a specific conversion - By conversion name: Use
conversion_nameto filter stats for a specific conversion by name - Note: You cannot use both
conversion_idandconversion_nameat the same time
Examples:
- All-time, all conversions:
GET /v1/affiliate-portal/stats?user_identifier=0x... - All-time, specific conversion:
GET /v1/affiliate-portal/stats?user_identifier=0x...&conversion_id=123e4567-... - Date range, all conversions:
GET /v1/affiliate-portal/stats?user_identifier=0x...&from=2024-01-01&to=2024-01-31 - Current month, specific conversion:
GET /v1/affiliate-portal/stats?user_identifier=0x...&this_month=true&conversion_name=Spot Trading
Required API Key Scope: service_role