Returns statistics for an affiliate, including total earnings, referred volume (R1 only), R2 and R3 volume components, multilevel volume (R2+R3), total volume (R1+R2+R3), referred revenue, referred users, and active referral codes linked to that user for the project (if any).
The response includes current_tier (nullable). The server does not return effective_tier.
Rate limit: Standard — 100 requests/minute (see API overview).
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 external ID: Use
conversion_external_id(non-negative integer, theexternal_idof the conversion in the project) to filter stats for a specific conversion — same grain as analyticsconversion_external_id - By conversion name: Use
conversion_nameto filter stats for a specific conversion by name (exact match) - Note: You cannot use both
conversion_external_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_external_id=1 - 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
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
400Bad Request - Invalid parameters (e.g., using both conversion_external_id and conversion_name, or using this_month with from/to)
401Unauthorized - Missing or invalid API key, or insufficient scope
404Not Found - Affiliate not found, or conversion not found when filtering by conversion_external_id/conversion_name