Rewardful
Affiliate and referral tracking for Stripe-based SaaS businesses.
Rewardful
Affiliate and referral tracking for Stripe-based SaaS businesses.
Capabilities
| Integration | Available | Notes |
|---|---|---|
| API | ✓ | REST API for affiliates, referrals, commissions |
| MCP | - | Not available |
| CLI | ✓ | [rewardful.js](../clis/rewardful.js) |
| SDK | - | API-only, JavaScript snippet for tracking |
Authentication
- Type: HTTP Basic authentication
- Username: API secret; leave the password empty
- Header:
Authorization: Basic {base64(api_secret + ":")} - Get key: Settings > API in Rewardful dashboard
Common Agent Operations
List affiliates
GET https://api.getrewardful.com/v1/affiliatesGet affiliate by ID
GET https://api.getrewardful.com/v1/affiliates/{affiliate_id}Search affiliate by email
GET https://api.getrewardful.com/v1/affiliates?email=[email removed]Get referral by Stripe customer
GET https://api.getrewardful.com/v1/referrals?stripe_customer_id={customer_id}List referrals for affiliate
GET https://api.getrewardful.com/v1/referrals?affiliate_id={affiliate_id}Get commission details
GET https://api.getrewardful.com/v1/commissions/{commission_id}List commissions
GET https://api.getrewardful.com/v1/commissions?affiliate_id={affiliate_id}Create affiliate link
POST https://api.getrewardful.com/v1/affiliate_links
Content-Type: application/x-www-form-urlencoded
affiliate_id={affiliate_id}&token=custom-link-tokenUpdate affiliate
PUT https://api.getrewardful.com/v1/affiliates/{affiliate_id}
Content-Type: application/x-www-form-urlencoded
first_name=John&last_name=Doe&paypal_email=john%40example.comMutation requests use form encoding, including spaces, Unicode, +, &, and email addresses. --dry-run shows the exact encoded request body with masked authentication. HTTP errors exit unsuccessfully.
links create --affiliate-id <id> [--token <token>] passes the affiliate ID in the form body. The token is optional; Rewardful can generate one. The API does not accept a destination --url; configure the campaign destination in Rewardful. Additional affiliate links require a Growth or Enterprise plan.
Primary contracts: request format and authentication, affiliate update, and affiliate link creation.
JavaScript Tracking
Install snippet
<script>
(function(w,r){w._rwq=r;w[r]=w[r]||function(){(w[r].q=w[r].q||[]).push(arguments)}})(window,'rewardful');
</script>
<script async src='https://r.wdfl.co/rw.js' data-rewardful='YOUR_API_KEY'></script>Track conversion manually
rewardful('convert', { email: '[email removed]' });Webhook Events
| Event | When |
|---|---|
affiliate.created | New affiliate signs up |
affiliate.approved | Affiliate approved |
referral.created | New referral tracked |
referral.converted | Referral becomes customer |
commission.created | Commission generated |
commission.paid | Commission paid out |
Key Objects
- Affiliate - Partner promoting your product
- Referral - Tracked visit/lead from affiliate
- Commission - Earned payment for affiliate
- Campaign - Program with specific terms
- Link - Tracking URL for affiliate
Integration with Stripe
Rewardful automatically:
- Tracks referral cookie when user visits via affiliate link
- Associates Stripe customer with referral on checkout
- Creates commissions when subscriptions are paid
- Handles recurring commissions for subscriptions
When to Use
- Setting up affiliate/referral programs for SaaS
- Tracking referral attribution from Stripe payments
- Managing affiliate relationships
- Processing affiliate payouts
- Analyzing referral program performance
Rate Limits
- 120 requests per minute
- Contact support for higher limits
Relevant Skills
- referrals
- pricing
Listing all collection pages with the CLI
Rewardful returns paginated affiliate, referral and commission collections. Pass --page and --limit (provider maximum 100) to advance while preserving the selected filters:
node tools/clis/rewardful.js referrals list --affiliate-id aff_123 --page 3 --limit 50
node tools/clis/rewardful.js commissions list --affiliate-id aff_123 --page 2 --limit 50
node tools/clis/rewardful.js affiliates list --page 2 --limit 50Read the response's pagination metadata before requesting another page. No flags retain the provider's default page and size; the CLI does not automatically fetch every page.
Sources: referrals, commissions, affiliates.
Source: https://github.com/coreyhaines31/marketingskills/blob/main/tools/integrations/rewardful.md
Author: coreyhaines31, Marketing skills. License: MIT.
Shown here with formatting for the web; email addresses removed. Keep the author and license notice when you reuse it.
Related entries
There are more like this in the members library
The Codex library holds 7,009 entries. Members can search all of them by meaning and read every one in full.