With Lead Generation commission, affiliates earn money when visitors they refer submit forms on your website. You can choose to auto-approve every lead or manually review each submission before paying commissions.
How It Works
The lead tracking process:
- Visitor clicks affiliate link (e.g.,
yoursite.com?ref=ABC123) - Tracking script captures the referral code and stores it in a cookie
- Visitor submits a form on your website
- Your backend calls the Revshare API with the referral code and form data
- Lead is created and affiliate earns commission (if auto-approved) or waits for approval
The tracking script automatically captures the referral code from the URL, so you just need to pass it to our API when the form is submitted.
Approval Modes
Choose how leads are approved:
Auto-Approve
Every lead automatically generates commission for the affiliate. Best for low-risk, high-volume lead generation.
Enable auto-approval in your program settings.
Manual Approval
Review each lead before approving. You can reject low-quality leads or duplicates. Best for high-ticket services where lead quality matters.
Disable auto-approval in your program settings. Learn more about manual transaction approval.
Integration
To track leads, call our API when a form is submitted:
await fetch("https://www.revshare.so/api/leads/submit", {
method: "POST",
headers: {
"Content-Type": "application/json",
"x-api-key": process.env.REVSHARE_API_KEY,
},
body: JSON.stringify({
program_id: "YOUR_PROGRAM_ID",
ref_code: window.revshare_metadata?.ref_code,
lead_data: {
email: formData.email,
name: formData.name,
phone: formData.phone, // optional
company: formData.company, // optional
message: formData.message, // optional
},
}),
});The ref_code comes from window.revshare_metadata.ref_code, which is automatically set by the tracking script.
See our Integration Guide for complete API documentation.
Important: Always call the API from your backend to keep your API key secure. Never expose it in client-side code.
Example
Scenario: $50 fixed commission per lead, manual approval
Use Cases
Lead Generation commission works best for:
- B2B services: Consultations, agency services, enterprise software
- High-ticket products: Expensive courses, coaching programs
- Long sales cycles: Products requiring multiple touchpoints before purchase
- Lead qualification: When you need to verify lead quality before paying
- Form submissions: Contact forms, demo requests, quote requests
Need sales-based commissions? Check out First Purchase or Recurring Payments for direct sales tracking.
