Enroll As Affiliate
Enrolls the caller in the affiliate program, generating a unique referral code. Idempotent — calling this again while already enrolled just returns the current dashboard. Session-authenticated only.
Internal session cookie for local development.
In: cookie
Response Body
application/json
application/json
application/json
curl -X POST "https://example.com/api/v1/affiliates/enroll"{ "success": true, "message": "string", "data": { "affiliateStatus": "NOT_ENROLLED", "affiliateTier": "TIER_1", "affiliateCode": "string", "affiliateEnrolledAt": "2019-08-24T14:15:22Z", "clicks": 0, "referrals": [ { "id": "string", "status": "PENDING", "createdAt": "2019-08-24T14:15:22Z", "convertedAt": "2019-08-24T14:15:22Z" } ], "totalReferrals": 0, "conversions": 0, "commissions": [ {} ], "withdrawals": [ {} ], "wallet": { "pendingCents": 0, "availableCents": 0, "paidCents": 0 }, "minimumWithdrawalCents": 2500, "tierProgress": { "currentConversions": 0, "nextTierConversions": 0 }, "tiers": [ { "key": "string", "name": "string", "rateBps": 0, "requiredConversions": 0, "perks": [ "string" ] } ] }}Get My Affiliate DashboardGET
Returns the caller's affiliate status, tier, wallet, clicks, referrals, commissions, and withdrawal history. Session-authenticated only.
Apply Affiliate Referral CodePOST
Attaches another affiliate's referral code to the caller's account. Self-referrals are rejected, and each account may only apply one referral code, ever. Session-authenticated only.