ESTAGE Support
IdeasMy tickets

Commissions, grouped

Permission affiliates:readRate limit reads

Commissions 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.

GEThttps://api.estage.com/v1/affiliate-earnings

Authorization

ESTAGE-API-Keystringheaderrequired

A 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

fromstringdate

YYYY-MM-DD; requires to.

tostringdate

YYYY-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_idinteger
product_idinteger
pageintegerdefault 1≥ 1
per_pageintegerdefault 50≥ 1≤ 100
sortstring

name (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

RequestcURL
curl --request GET \
  --url 'https://api.estage.com/v1/affiliate-earnings' \
  --header 'ESTAGE-API-Key: est_live_your-api-key'
OK
{
  "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
  }
}
Example. Errors are { error: { code, message, details } }.