Affiliates
Affiliate Stats
Changed onAggregate stats for the shop's affiliate program, with 30-day deltas.
get/v1/shops/{shopId}/affiliates/stats
Request
- Base URLhttps://api.sellauth.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Response
Example response
{
"total_affiliates": 1,
"active_affiliates": 0,
"inactive_affiliates": 1,
"new_affiliates": 1,
"new_affiliates_previous": 0,
"commissions_usd": 0,
"commissions_usd_previous": 0,
"commissions_usd_all_time": 0,
"attributed_revenue_usd": 0,
"attributed_revenue_usd_previous": 0,
"attributed_revenue_usd_all_time": 0,
"commissionable_revenue_usd": 0,
"commissionable_revenue_usd_previous": 0,
"commissionable_revenue_usd_all_time": 0,
"attributed_orders": 0,
"skipped_commissions": 0,
"skipped_commissions_by_reason": [],
"average_commission_rate": 0,
"top_earner_usd": 0,
"top_performers": [
{
"id": 1,
"email": "customer@sellauth.test",
"shop_id": 1,
"balance": "100.00",
"affiliate_balance": "0.00",
"affiliate_code": "PARTNER10",
"affiliate_code_set_at": "2026-11-01 20:00:51",
"affiliate_tier_id": null,
"affiliate_referrer_earnings": "0.00",
"created_at": "2026-11-01T20:00:51.000000Z",
"referrals_count": 0,
"affiliate_tier": null
}
],
"balance_mode": "shared",
"pending_payout_requests": 1,
"window_days": 30
}Changes
- breaking
the response property
//became nullable for the status - breaking
the response property
//became nullable for the status
- breaking