The programme as a whole: traffic, referrals, sales, commissions, refunds, top affiliates
affiliates:readRate limit heavyThe whole programme for the window: daily series (hourly for interval=today) of visitors, unique visitors, referrals, sales (counts) and commissions/refunds (amounts in currency, with by_currency per point), the same row shapes as GET /affiliates/{contactId}; unique_visitors_summary counts each visitor once over the window and per month/year. top_affiliates: up to 10 by commission; top_referrals: the 5 newest people referred, with their earnings; last_activity: the 5 latest buyers, with their commissions. interval is a rolling window ending now; all_time or no value gives the last month. from/to (both together) win. Counts against the heavy rate limit.
Authorization
ESTAGE-API-KeystringheaderrequiredA project key, est_live_…, from Settings → API keys. Call from server code only.
Query parameters
intervalstringdefault "month"all_time (and no value) falls back to month here.
One of today, week, month, quarter, year, all_time
fromstringdateYYYY-MM-DD; requires to.
tostringdateYYYY-MM-DD, on or after from; requires from.
curl --request GET \ --url 'https://api.estage.com/v1/affiliates/report' \ --header 'ESTAGE-API-Key: est_live_your-api-key'
{
"data": {
"currency": "USD",
"visitors": [
{
"visitors": 52,
"report_date": "2026-11-13"
}
],
"unique_visitors": [
{
"visitors": 40,
"report_date": "2026-11-13"
}
],
"unique_visitors_summary": {
"total": 40,
"by_month": {
"2026-11": 40
},
"by_year": {
"2026": 40
}
},
"referrals": [
{
"ref_count": 2,
"report_date": "2026-11-13"
}
],
"sales": [
{
"sales_count": 3,
"report_date": "2026-11-13"
}
],
"commissions": [
{
"total": 90,
"report_date": "2026-11-13",
"currency": "USD",
"by_currency": {
"USD": 90
}
}
],
"refunds": [
{
"total": 0,
"report_date": "2026-11-13",
"currency": "USD",
"by_currency": []
}
],
"top_affiliates": [
{
"name": "Ana Lima",
"user_id": 4821,
"referrals_count": 2,
"sales_count": 3,
"total_commissions": "90.00",
"total_refunds": "0",
"currency": "USD",
"by_currency": {
"USD": {
"total_commissions": 90,
"total_refunds": 0
}
}
}
],
"top_referrals": [
{
"id": 5120,
"name": "Ben Ortiz",
"email": "ben@example.com",
"created_at": "2026-11-13T14:03:00.000000Z",
"earnings": [
{
"id": 9031,
"ref_user_id": 5120,
"created_at": "2026-11-13T14:03:00.000000Z",
"plan_id": null,
"product_id": 77,
"product": {
"id": 77,
"name": "Online course"
},
"plan": null
}
]
}
],
"last_activity": [
{
"id": 5120,
"name": "Ben Ortiz",
"email": "ben@example.com",
"created_at": "2026-11-13T14:03:00.000000Z",
"sum_commissions": "30.00",
"currency": "USD",
"by_currency": {
"USD": 30
},
"earnings": [
{
"id": 9031,
"ref_user_id": 5120,
"created_at": "2026-11-13T14:03:00.000000Z",
"plan_id": null,
"product_id": 77,
"product": {
"id": 77,
"name": "Online course"
},
"plan": null
}
]
}
]
}
}{ error: { code, message, details } }.