AffiliateWP Automations
How to Add an Approved AffiliateWP Affiliate to a MailerLite Group
Your affiliates are a distinct audience: they want promo assets, commission updates and product news, not your customer newsletter. To add an approved AffiliateWP affiliate to a MailerLite group, use Zapify's An affiliate's status changes trigger set to Active with the Add or update a subscriber action. AffiliateWP and MailerLite are Zapify PRO integrations.
What this automation does
The automation is one trigger plus one action:
- Trigger: An affiliate's status changes (
AFFWP_AFFILIATE_STATUS_CHANGED, AffiliateWP) - Action: Add or update a subscriber (
MAILERLITE_UPSERT_SUBSCRIBER, MailerLite)
When an affiliate becomes Active, Zapify adds them to MailerLite, or updates them if they are already there, and places them in your affiliates group.
PRO feature
AffiliateWP and MailerLite are Zapify PRO integrations, so this automation needs an active Zapify PRO licence.
No Connection needed for AffiliateWP
AffiliateWP runs on your own site, so there is no API key to paste for it and nothing to set up under Settings → Connections.
Before you start
- AffiliateWP installed and active.
- A MailerLite account (the current MailerLite, not MailerLite Classic), an API key created under Integrations → API, and a group for your affiliates. MailerLite's own page for it is here.
How to build the automation
Step 1: Connect MailerLite
- Go to Settings → Connections and click Add New.

- Choose MailerLite, paste in your API key, and name the connection something like Newsletter MailerLite.

- Click Test. Zapify asks MailerLite to accept the key and answers MailerLite accepted the credentials. If the key is wrong it says MailerLite refused the credentials. instead, so you find out before building anything.
- Save.
See Connections for how this screen works generally.
Step 2: Create a new automation
- In the WordPress admin, go to Zapify → Automations.
- Click Add New to open the builder.
- Name it clearly, such as Add approved affiliates to MailerLite.

Step 3: Add the "An affiliate's status changes" trigger
- Click Add Trigger.

- Choose AffiliateWP as the app.

- Select An affiliate's status changes.

- Configure the trigger:
| Field | Required | What it does |
|---|---|---|
| Previous status | Yes | Leave on Any status, or pick the status the affiliate had before, such as Pending. |
| New status | Yes | The status that should start the automation: Active, Inactive, Pending or Rejected. |
Set New status to Active.
Step 4: Add the "Add or update a subscriber" action
- Click Add Action.

- Choose MailerLite as the app.

- Select Add or update a subscriber.

Step 5: Configure the action
| Field | Required | What it does |
|---|---|---|
| Connection | Yes | The MailerLite connection from Step 1. |
| Email address | Yes | Insert the User email token. |
| First name / Last name | No | Insert the First name and Last name tokens. |
| Custom fields | No | Optional extra fields, such as the affiliate's referral link, if you have created a field for it in MailerLite. |
| Groups | No | One or more MailerLite groups to add them to, such as Affiliates. |
| Status | No | Leave on Active. For an existing subscriber this leaves their status alone. |
| Resubscribe | No | Leave off. Ticking it re-subscribes somebody who had unsubscribed, so only use it where you have their fresh consent. |
For example, choose your Affiliates group in Groups. If you have created a custom field in MailerLite for the referral link, add it under Custom fields with the Affiliate referral URL token, so your emails can include each affiliate's own link.
Step 6: Set the steps Live and save
Each trigger and action has its own Live / Off / Draft switch. A new automation starts as a Draft and does nothing until its steps are Live.
- Set the trigger and every action to Live.
- Click Save.

Step 7: Test it
Approve a test affiliate and check the subscriber in MailerLite within a minute, or open Zapify → Logs.
Tokens you can use
The trigger offers the affiliate's details, one extra token for the old status, plus the user tokens.
| Token | What it holds |
|---|---|
| Affiliate ID | The affiliate's numeric ID in AffiliateWP. |
| Affiliate status | Their status: active, inactive, pending or rejected. |
| Affiliate referral URL | Their personal referral link, ready to put in an email. |
| Affiliate payment email | The address they get paid at. |
| Affiliate rate / Affiliate rate type | Their commission rate and whether it is a percentage or a flat amount. |
| Affiliate earnings / Affiliate unpaid earnings | What they have earned in total, and what is still waiting to be paid. |
| Affiliate previous status | The status they had before the change. |
| User ID / Username / User email | The user the automation runs for: the affiliate, or the referred customer when Run for is set to the customer. |
| Display name / First name / Last name | Their name details. |
The action makes two tokens available to later actions: Subscriber ID and Subscriber status.
Conclusion
With the An affiliate's status changes trigger on Active and the Add or update a subscriber action, your affiliate list builds itself. To tag them in a CRM on your own site instead, see adding a Groundhogg tag on approval.
FAQs
Is this free in Zapify?
No. AffiliateWP and MailerLite are both Zapify PRO integrations and need an active Zapify PRO licence. MailerLite also needs a Connection.
Is it okay to add affiliates to a mailing list without asking?
They signed up to your program, but you should still make sure your terms say you will email them about it. Where you need explicit consent, use a double opt-in flow.
What if they are already a subscriber?
Zapify updates the existing subscriber and adds the group, so nobody is duplicated.
Do I need to write any code?
No. Everything is configured visually in the Zapify builder.