Refairn does not crawl your SaaS dashboard, read your database, or use screen-scraping techniques to pull customer or payment data. Every integration method in this section is structured, explicit, and permission-based. This keeps your data secure, your integration stable, and the attribution record trustworthy—for you and your agents.
Integration methods
API Integration
Send customer and payment events directly from your backend using the Refairn REST API. The most flexible and real-time method.
Payment Providers
Connect Stripe, Paystack, Flutterwave, Paddle, or LemonSqueezy webhooks to Refairn. Minimal code required.
CSV Import
Upload a spreadsheet of customer and payment data manually. No code required—ideal for early validation.
Webhook Events
Full reference for all inbound event types, payload shapes, and authentication details.
Comparing your options
| Method | Speed | Code required | Best for |
|---|---|---|---|
| API Integration | Real-time | Yes — backend changes | Production-ready programs with full automation |
| Payment Provider Webhooks | Real-time | Minimal — dashboard config | Teams already using Stripe, Paystack, or similar |
| CSV Import | Manual — hours or days lag | None | Early validation, beta programs, one-off imports |
Recommended approach
Start with CSV import to validate your partner channel before you commit engineering time. Before building a technical integration, run your first cohort of agents manually. Upload a CSV of paying customers attributed to each agent, verify that commissions calculate correctly, and confirm that partner-sourced customers are retaining at the rate you expect. Once you’ve validated the model, graduate to the API or payment provider webhooks to automate attribution for your production program.Validate with CSV import
Upload your first batch of customers manually. Confirm attribution, commission calculations, and agent dashboards are working as expected before investing in automation.
Connect your payment provider
Add Refairn as a webhook endpoint in Stripe, Paystack, or your payment provider of choice. Refairn will automatically attribute payments to the right agent from that point forward.
Add API events for signups
Fire the
customer-created event from your signup flow so Refairn can attribute customers at the moment they register—before they pay—giving agents credit for the full customer journey.