One affiliate: traffic, referrals, sales, commissions, refunds and payouts
affiliates:readRate limit heavyDaily series for the window (hourly for interval=today), money in the currency the affiliate is paid in. interval is a rolling window ending now (week = 7 days, month = 31 days); all_time or no interval gives the last month. from/to (both together) always win and give a daily series. Without offer_id every sale of the affiliate in the project counts; with it, only sales and visits of that offer. Series rows: visitors / unique_visitors {visitors, report_date}, referrals {ref_count, report_date}, sales {sales_count, report_date}, commissions / refunds {total, report_date, currency, by_currency}; with interval=today the date key is visit_date / created_date and the value keys are visitors, count_ref, count_sales, sum_commissions. unique_visitors_summary counts each visitor once over the whole window and per month/year. payouts.list holds up to 15 payouts, newest first. contact is only {id} when the affiliate has no active membership. Note: contact.joined_at is currently the creation date of the affiliate's top program, not the date they joined. Counts against the heavy rate limit.
Authorization
ESTAGE-API-KeystringheaderrequiredA project key, est_live_…, from Settings → API keys. Call from server code only.
Path parameters
contactIdintegerrequiredQuery parameters
intervalstringdefault "month"Rolling window ending now. 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.
offer_idintegercurl --request GET \ --url 'https://api.estage.com/v1/affiliates/contact-id' \ --header 'ESTAGE-API-Key: est_live_your-api-key'
{
"data": {
"contact": {
"id": 4821,
"email": "ana@example.com",
"name": "Ana Lima",
"joined_at": "2026-03-02T10:00:00Z"
},
"currency": "USD",
"visitors": [
{
"visitors": 14,
"report_date": "2026-11-12"
},
{
"visitors": 9,
"report_date": "2026-11-13"
}
],
"unique_visitors": [
{
"visitors": 11,
"report_date": "2026-11-12"
},
{
"visitors": 8,
"report_date": "2026-11-13"
}
],
"unique_visitors_summary": {
"total": 17,
"by_month": {
"2026-11": 17
},
"by_year": {
"2026": 17
}
},
"referrals": [
{
"ref_count": 1,
"report_date": "2026-11-12"
},
{
"ref_count": 0,
"report_date": "2026-11-13"
}
],
"sales": [
{
"sales_count": 1,
"report_date": "2026-11-12"
},
{
"sales_count": 0,
"report_date": "2026-11-13"
}
],
"commissions": [
{
"total": 30,
"report_date": "2026-11-12",
"currency": "USD",
"by_currency": {
"USD": 30
}
},
{
"total": 0,
"report_date": "2026-11-13",
"currency": "USD",
"by_currency": []
}
],
"refunds": [
{
"total": 0,
"report_date": "2026-11-12",
"currency": "USD",
"by_currency": []
},
{
"total": 0,
"report_date": "2026-11-13",
"currency": "USD",
"by_currency": []
}
],
"payout": {
"provider": "stripe",
"ready": true,
"blocker": null,
"recipient": "acct_1Q2w3E4r5T6y7U8i",
"details": null
},
"payouts": {
"summary": {
"provider": "stripe",
"currency": "usd",
"pending_amount": 30,
"available_amount": 120,
"debt_amount": 0,
"paid_amount": 250,
"maturation_days": 30,
"by_currency": {
"usd": {
"pending_amount": 30,
"available_amount": 120,
"debt_amount": 0,
"paid_amount": 250
}
}
},
"list": [
{
"id": 311,
"contact_id": 4821,
"provider": "stripe",
"status": "paid",
"amount": "250.00",
"currency": "USD",
"recipient": "acct_1Q2w3E4r5T6y7U8i",
"period": "02-09-2026 - 28-09-2026",
"failure_reason": null,
"processed_at": "2026-10-29T09:00:12Z",
"created_at": "2026-10-29T09:00:00Z"
}
]
}
}
}{ error: { code, message, details } }.