> ## Documentation Index
> Fetch the complete documentation index at: https://docs.partnero.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Using Zapier to sync subscribers for newsletter referral programs

Partnero currently offers direct integrations with the following email service providers (ESPs) for newsletter referral programs:

* MailerLite (and MailerLite Classic)
* Mailchimp
* ConvertKit
* ActiveCampaign
* Klaviyo

If you're using a different ESP, you can sync subscribers between Partnero and your ESP using Zapier.

***

### Creating a program

If you haven't yet, you'll need to create a newsletter referral program first:

1. Open your Partnero account, then click **Programs** in the left-hand menu.
2. Click **Create program** in the top right corner and select **Newsletter referral**:
   <img src="https://mintcdn.com/partnero/dIlz41f0imTLbzhF/images/articles/using-zapier-to-sync-subscribers-for-newsletter-referral-programs/0c11e8cc.webp?fit=max&auto=format&n=dIlz41f0imTLbzhF&q=85&s=68ae69359b464a94af086619bc872f71" alt="" width="2876" height="1512" data-path="images/articles/using-zapier-to-sync-subscribers-for-newsletter-referral-programs/0c11e8cc.webp" />
3. Enter your program name and select **Custom** under the ESP integration:
   <img src="https://mintcdn.com/partnero/dIlz41f0imTLbzhF/images/articles/using-zapier-to-sync-subscribers-for-newsletter-referral-programs/c51ddae5.webp?fit=max&auto=format&n=dIlz41f0imTLbzhF&q=85&s=45cbca8831543ed1fa8568fd4eaed2c1" alt="" width="2872" height="1548" data-path="images/articles/using-zapier-to-sync-subscribers-for-newsletter-referral-programs/c51ddae5.webp" />
4. Click **Create**.

***

### Using Zapier

Next, you'll need to head over to your Zapier account and create three zaps to perform the following actions:

1. Send new subscribers from your ESP to Partnero.
2. Send the referral program data (such as the referral link) from Partnero back to your ESP.
3. Send referred subscribers from Partnero to your ESP.

Each step is outlined below.

***

#### Step 1: Send new subscribers to Partnero

The goal of this step is to automatically add all new subscribers to your Partnero account so they can receive referral links and participate in the program.

1. Log in to Zapier and click **+Create** in the upper left corner to create a new Zap.
2. Under **Trigger**, select your ESP. In this example, we'll use Brevo. The **Trigger event** description might vary slightly based on your ESP, but generally, it will be **when a new subscriber joins a list** (group):
   <img src="https://mintcdn.com/partnero/dIlz41f0imTLbzhF/images/articles/using-zapier-to-sync-subscribers-for-newsletter-referral-programs/6284fe6e.webp?fit=max&auto=format&n=dIlz41f0imTLbzhF&q=85&s=ac1b1e36aadd9d5826ff043571d9e763" alt="" width="2878" height="1496" data-path="images/articles/using-zapier-to-sync-subscribers-for-newsletter-referral-programs/6284fe6e.webp" />
3. Next, configure your Zap by selecting your subscriber list (group):
   <img src="https://mintcdn.com/partnero/dIlz41f0imTLbzhF/images/articles/using-zapier-to-sync-subscribers-for-newsletter-referral-programs/0a3075b4.webp?fit=max&auto=format&n=dIlz41f0imTLbzhF&q=85&s=cc341ee01d7adc87cbf066c4d954bb0f" alt="" width="2878" height="1510" data-path="images/articles/using-zapier-to-sync-subscribers-for-newsletter-referral-programs/0a3075b4.webp" />Select the subscriber group (or list) that you would like to participate in the referral program.
4. Finally, test your trigger to make sure everything works as expected.
5. Next, you'll need to configure the **Action**. Find Partnero in the app list.
6. As the Action trigger, select **Create a new subscriber**.
7. You'll then need to connect your Partnero account. In your newsletter referral program, click on **Integrations** and scroll down to **API Keys**. Click **Create API key**:
   <img src="https://mintcdn.com/partnero/dIlz41f0imTLbzhF/images/articles/using-zapier-to-sync-subscribers-for-newsletter-referral-programs/358a5a89.webp?fit=max&auto=format&n=dIlz41f0imTLbzhF&q=85&s=48b304a3fbdb635945a6a2252f3851c8" alt="" width="2868" height="1538" data-path="images/articles/using-zapier-to-sync-subscribers-for-newsletter-referral-programs/358a5a89.webp" />
8. Name the API key (for example, "Zapier - Brevo"). Then, copy and paste the key to the Zapier authentication window to complete the connection.<img src="https://mintcdn.com/partnero/dIlz41f0imTLbzhF/images/articles/using-zapier-to-sync-subscribers-for-newsletter-referral-programs/6102dea0.webp?fit=max&auto=format&n=dIlz41f0imTLbzhF&q=85&s=b23923adf6e603e9e9e196abb4ba74dc" alt="" width="2872" height="1406" data-path="images/articles/using-zapier-to-sync-subscribers-for-newsletter-referral-programs/6102dea0.webp" />
9. Next, proceed to configure the Zap. Map the fields, such as subscriber email, name, and ID:<img src="https://mintcdn.com/partnero/dIlz41f0imTLbzhF/images/articles/using-zapier-to-sync-subscribers-for-newsletter-referral-programs/827c32bb.webp?fit=max&auto=format&n=dIlz41f0imTLbzhF&q=85&s=ba03d36ae91d666ca5c45ea09ed98a40" alt="" width="2872" height="1404" data-path="images/articles/using-zapier-to-sync-subscribers-for-newsletter-referral-programs/827c32bb.webp" />
10. Test and publish the ZAP.

***

#### Step 2: Send program data to your ESP

The next step is to make sure that your ESP subscriber list is updated with the referral program information:

* subscriber's referral link
* subscriber's portal link
* subscriber's referral count

First, you'll have to create custom fields (or custom attributes) on your ESP to save this data. The steps will differ based on your ESP; however, generally, the steps would be the following:

1. Go to your subscriber (contact) list on your ESP;
2. Go to subscriber settings (custom fields, subscriber attributes, or similar naming);
3. Click to create a new field (attribute);
4. Create **three** new custom fields for each value:
   1. referral link
   2. subscriber portal link
   3. referral count

Now that you have the custom fields set up, go back to Zapier and create a new Zap:

1. For the **Trigger**, select your Partnero account.
2. For the **Trigger event**, select **Subscriber updated**:
   **<img src="https://mintcdn.com/partnero/dIlz41f0imTLbzhF/images/articles/using-zapier-to-sync-subscribers-for-newsletter-referral-programs/54b6020b.webp?fit=max&auto=format&n=dIlz41f0imTLbzhF&q=85&s=64935c662abccef2038ee881789c3c71" alt="" width="2876" height="1424" data-path="images/articles/using-zapier-to-sync-subscribers-for-newsletter-referral-programs/54b6020b.webp" />**
3. For the **Action**, select your ESP account. **Action event** - Add or Update Contact (Subscriber):
   <img src="https://mintcdn.com/partnero/dIlz41f0imTLbzhF/images/articles/using-zapier-to-sync-subscribers-for-newsletter-referral-programs/4ab24439.webp?fit=max&auto=format&n=dIlz41f0imTLbzhF&q=85&s=c8382232453a034357f7b4159e7099af" alt="" width="2874" height="1420" data-path="images/articles/using-zapier-to-sync-subscribers-for-newsletter-referral-programs/4ab24439.webp" />
4. In the **Configure** step, match the referral share link, portal link, and the referral count to the corresponding fields (attributes):
   <img src="https://mintcdn.com/partnero/dIlz41f0imTLbzhF/images/articles/using-zapier-to-sync-subscribers-for-newsletter-referral-programs/db60e123.webp?fit=max&auto=format&n=dIlz41f0imTLbzhF&q=85&s=e98f780b2d9367739650b30cb3a8a7eb" alt="" width="2876" height="1430" data-path="images/articles/using-zapier-to-sync-subscribers-for-newsletter-referral-programs/db60e123.webp" />
5. Click **Publish**.

***

#### Step 3: Send referred subscribers to your ESP

Finally, you'll need to send referred subscribers to your email service provider. When someone subscribes to your newsletter through the referral portal, the subscriber will first be created on Partnero. The goal here is to send them to your ESP.

As the first step, we recommend creating a  **separate subscriber group** (list) **for referred subscribers** on your email service provider (ESP), allowing you to easily differentiate between them.

For example, here are the two subscriber lists on our Brevo account:<img src="https://mintcdn.com/partnero/dIlz41f0imTLbzhF/images/articles/using-zapier-to-sync-subscribers-for-newsletter-referral-programs/a9ad71f8.webp?fit=max&auto=format&n=dIlz41f0imTLbzhF&q=85&s=aa37451012e242cbe4bec0cadcc96794" alt="" width="2872" height="1350" data-path="images/articles/using-zapier-to-sync-subscribers-for-newsletter-referral-programs/a9ad71f8.webp" />

Next, let's create the Zap:

1. On your Zapier account, click to create a new zap. For the **Trigger**, select Partnero. Trigger action - **Referred s\*\*\*\*ubscriber created**. Then, select your newsletter referral program:<img src="https://mintcdn.com/partnero/dIlz41f0imTLbzhF/images/articles/using-zapier-to-sync-subscribers-for-newsletter-referral-programs/f8ddf8aa.webp?fit=max&auto=format&n=dIlz41f0imTLbzhF&q=85&s=5056bc4a3946149849823842dabc4864" alt="" width="2878" height="1422" data-path="images/articles/using-zapier-to-sync-subscribers-for-newsletter-referral-programs/f8ddf8aa.webp" />**Important:** make sure to use the "**Referred subscriber created**" trigger and not the "Subscriber created" trigger.
2. Then configure the **Action** step. Select your ESP as the App (Brevo, in this example), the Action - to **A\*\*\*\*dd or update a contact** (subscriber), and select your ESP account:<img src="https://mintcdn.com/partnero/dIlz41f0imTLbzhF/images/articles/using-zapier-to-sync-subscribers-for-newsletter-referral-programs/0287f309.webp?fit=max&auto=format&n=dIlz41f0imTLbzhF&q=85&s=9a5bb54733c2943607531863d0cd0838" alt="" width="2874" height="1416" data-path="images/articles/using-zapier-to-sync-subscribers-for-newsletter-referral-programs/0287f309.webp" />
3. Next, configure the data and its destination. The fields that you are allowed to map will depend on your ESP. The most important details are the email address and the subscriber's name (if your referral subscriber form requests it). Also, ensure that you select the list (or group) where **referred subscribers will be added**. We recommend using a group dedicated to referred subscribers only.<img src="https://mintcdn.com/partnero/dIlz41f0imTLbzhF/images/articles/using-zapier-to-sync-subscribers-for-newsletter-referral-programs/2aad2441.webp?fit=max&auto=format&n=dIlz41f0imTLbzhF&q=85&s=0d9277b88e0d6dc045dd288d6f158a42" alt="" width="2866" height="1406" data-path="images/articles/using-zapier-to-sync-subscribers-for-newsletter-referral-programs/2aad2441.webp" />
4. Test and publish the zap.

Done! With these three steps, you should have a complete setup to run a newsletter referral program automatically.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.