AFI AFI

AffiliateWP

Estimated reading: 3 minutes Updated August 1, 2026

AffiliateWP is a WordPress affiliate marketing plugin. Advanced Form Integration listens for AffiliateWP events (affiliate registrations, referrals, status changes) and routes the data to any of 200+ receiver platforms, so you can sync affiliate activity with your CRM, email marketing tool, or team chat without manual export.

What you’ll need

  • The AffiliateWP plugin installed and activated.
  • The Advanced Form Integration plugin installed and activated.

AffiliateWP runs on the same WordPress installation as AFI, so there is no API key or OAuth connection to set up. AFI hooks into AffiliateWP’s built-in action hooks directly.

Supported events

Event Key Description
Affiliate Registered affiliate_registered Fires when a new affiliate signs up through the front-end registration form
Referral Created referral_created Fires when a new referral is recorded (e.g. a referred sale is completed)
Commission Paid commission_paid Fires when a referral status changes to Paid

Data captured per event

Each event passes the following fields to your mapped receiver action:

Field Notes
Affiliate ID Numeric AffiliateWP ID
Affiliate First Name From the WordPress user profile
Affiliate Last Name From the WordPress user profile
Affiliate Email The affiliate’s registration email
Affiliate Website From the user profile
Payment Email The affiliate’s payout email (may differ from login email)
Referral Count Cumulative number of referrals for the affiliate
Commission Amount Numeric, in your default currency (referral and commission events)
Status pending, accepted, rejected, or paid
Created At YYYY-MM-DD HH:MM:SS

Create the integration

  1. Go to AFI → Add New.
  2. Give the integration a name, for example New affiliate to Mailchimp.
  3. Under Trigger → Form/Data Provider, select AffiliateWP.
  4. In Form/Task Name, choose the event you want to listen on (e.g. Affiliate Registered).
  5. Under Action → Platform, pick the destination platform (Mailchimp, Slack, HubSpot, etc.).
  6. Map the AffiliateWP fields onto the destination platform’s fields.
  7. Optional: open Conditional Logic to limit which events are sent.
  8. Click Save Integration.

Conditional logic example

Notify your partnerships team in Slack only when a referral commission exceeds $500. Create a Slack integration on the Referral Created event, then add a condition: Commission Amount is greater than 500.

Troubleshooting

Integration doesn’t fire

Open AFI → Log and find the most recent entry. If there is no log entry at all, the AffiliateWP event never fired. Verify the event actually occurred by checking the AffiliateWP admin (Affiliates or Referrals screen). Trigger a real test event from the front end rather than the admin panel.

Fields are empty in the destination

Check the field mapping in the integration. The field keys are case-sensitive. If a field like “Payment Email” is blank, the affiliate may not have set a payment email in their profile yet.

Related docs