Apply Affiliate Referral Code
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.
Internal session cookie for local development.
In: cookie
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/api/v1/affiliates/referral" \ -H "Content-Type: application/json" \ -d '{ "code": "string" }'{ "success": true, "message": "string", "data": {}}Enroll As AffiliatePOST
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.
Request Affiliate WithdrawalPOST
Requests a payout of available affiliate commission balance (minimum $25 / 2,500 cents). Payouts are reviewed and marked paid manually by an admin out-of-band (bank transfer, PayPal, etc) — Dodo Payments only exposes a read-only settlements API, not an outbound transfer API, so this cannot be automated end-to-end yet. Session-authenticated only.