AffiliateWP
Overview
AFI registers affiliates and creates referrals in AffiliateWP from WordPress form submissions. Use it to grow your affiliate program: signup forms can auto-create affiliate records, and external referral data can flow into AffiliateWP for tracking.
Supported actions
- Create Affiliate — register a new affiliate (user, rate, payment email).
- Create Referral — log a referral against an affiliate account.
- Add Custom Field — populate AffiliateWP’s custom-field add-on data.
Authentication
- No API key — AFI writes directly into AffiliateWP’s tables on the same WordPress install.
- Confirm AffiliateWP is installed and activated.
How to create the integration
- In WordPress admin, go to AFI > New Integration.
- Pick your Sender (Contact Form 7, WPForms, WooCommerce, etc.) and the form / event to listen on.
- Pick AffiliateWP as the Receiver, then pick the Task you want to run.
- Map sender fields onto AffiliateWP’s fields. User ID (or email of an existing WP user) + payment email are required for new affiliates.
- Optional: add Conditional Logic so the action only fires on matching submissions.
- Save and run a test submission. Check AFI > Log if anything looks off.
Notes & caveats
- WordPress user prereq. Affiliates are tied to WP users — if the user doesn’t exist, create them first (e.g. via the User Registration sender) or pass the email and AFI will look up the user.
- Approval status: defaults to Active — change to Pending if you want manual approval before payouts.
- Referrals require a valid affiliate ID; passing the wrong one creates an orphaned referral.