A comprehensive API for Affonso that would allow program owners to programmatically access and manage their affiliate programs
Proposed API Endpoints
Affiliates
GET /api/v1/affiliates- List all affiliates with filtering optionsGET /api/v1/affiliates/{id}- Get detailed information about a specific affiliatePOST /api/v1/affiliates- Create a new affiliatePUT /api/v1/affiliates/{id}- Update an affiliate's informationDELETE /api/v1/affiliates/{id}- Deactivate/remove an affiliate
Referrals
GET /api/v1/referrals- Get all referral records with filteringGET /api/v1/referrals/{id}- Get details for a specific referralGET /api/v1/affiliates/{id}/referrals- Get all referrals from a specific affiliate
Sales/Conversions
GET /api/v1/sales- Get all sales data with filtering optionsGET /api/v1/sales/{id}- Get detailed information about a specific saleGET /api/v1/affiliates/{id}/sales- Get all sales from a specific affiliate
Commissions
GET /api/v1/commissions- List all commissionsGET /api/v1/commissions/{id}- Get details for a specific commissionPUT /api/v1/commissions/{id}- Update commission status (approve/reject)GET /api/v1/affiliates/{id}/commissions- Get all commissions for a specific affiliate
Payouts
GET /api/v1/payouts- List all payoutsGET /api/v1/payouts/{id}- Get details for a specific payoutPOST /api/v1/payouts- Create a new payoutGET /api/v1/affiliates/{id}/payouts- Get all payouts for a specific affiliate
How would you use this?
I'd love to hear your use cases, but here are some ideas:
Integration with existing systems: Connect Affonso data with your Payment provider, MoR, CRM, accounting software, and business intelligence tools
Custom reporting: Build tailored reports beyond what's available in the dashboard
Automation: Create workflows that respond to affiliate activities
Mobile app development: Build a custom mobile experience for your affiliates
In-App Referral Program
Questions for you
What other endpoints would you need?
Which of these would be most valuable to you?
Would you prefer GraphQL instead of REST?
Any specific authentication methods you'd prefer?
Vote and comment
Please upvote this request if you'd find an API valuable, and share how you'd use it in the comments below!
