Commissions, grouped
affiliates:readRate limit readsCommissions summed per affiliate, product, plan, status, currency and period. The period key depends on group_by: day (default) → created_at (YYYY-MM-DD), week → week ("YYYY-MM-DD / YYYY-MM-DD"), month → year and month, quarter → quarter ("2026.Q4"), year → year. interval is a rolling window ending now; all_time (the default) has no limit. from/to apply on top of interval, and to is the start of that day: commissions made on the to date are not included. offer_id keeps commissions tagged with that offer; product_id those of one product.
Authorization
ESTAGE-API-KeystringheaderrequiredA project key, est_live_…, from Settings → API keys. Call from server code only.
Query parameters
intervalstringdefault "all_time"One of today, week, month, quarter, year, all_time
fromstringdateYYYY-MM-DD; requires to.
tostringdateYYYY-MM-DD, on or after from; requires from. Read as midnight at the start of that day.
group_bystringdefault "day"One of day, week, month, quarter, year
offer_idintegerproduct_idintegerpageintegerdefault 1≥ 1per_pageintegerdefault 50≥ 1≤ 100sortstringname (affiliate), product_name, type (status), commission; week, month, quarter or year only together with the same group_by. Default: by period.
One of name, product_name, type, commission, week, month, quarter, year
directionstringdefault "desc"One of asc, desc
curl --request GET \ --url 'https://api.estage.com/v1/affiliate-earnings' \ --header 'ESTAGE-API-Key: est_live_your-api-key'
{
"data": [
{
"contact_id": 4821,
"status": "sale",
"total_commission": "60.00",
"product_name": "Online course",
"plan_name": "One-time",
"affiliate_name": "Ana Lima",
"currency": "USD",
"created_at": "2026-11-12"
}
],
"meta": {
"page": 1,
"per_page": 50,
"total": 1,
"last_page": 1
}
}{ error: { code, message, details } }.