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

# MailerLite App

> Install the official MailerLite app to add Dodo Payments customers to MailerLite as subscribers and keep their subscription status. The app sends no email.

## What the MailerLite app does

The MailerLite app adds a customer to MailerLite as a subscriber after a successful payment and when a subscription starts or renews. It can add the subscriber to a group and keep the subscription status. The app sends no email.

> [!NOTE]
>
> To send events to MailerLite through your webhook endpoint and your transformation code, use the [MailerLite webhook connector](https://docs.dodopayments.com/integrations/mailerlite.md).

## Before you start

* You are an owner or an admin of the Dodo Payments business.
* You have a MailerLite account and an API token.
* You can make subscriber fields in MailerLite.

## Install, connect, and configure

**1. Install the app**

Open **Apps**, then **Explore**. Open **MailerLite** (publisher **Dodo Payments**) and select **Install app**.

![The Installed tab of Apps with MailerLite in the list and the status Active](https://mintcdn.com/dodopayments/9p5nlYkB8XwTy1ds/images/app-marketplace/merchant/apps/mailerlite-4.png?fit=max\&auto=format\&n=9p5nlYkB8XwTy1ds\&q=85\&s=d4b116cf4ade5eac1027b31d86180fde)

**2. Connect MailerLite**

Select **Connect**. In MailerLite, open **Integrations**, then **MailerLite API**, and make an API key. Enter the key in the **API Token** field, then select **Connect**. In the dialog, select **Where do I find this?** to see where to find the key.

![The Connect MailerLite dialog with the API Token field](https://mintcdn.com/dodopayments/9p5nlYkB8XwTy1ds/images/app-marketplace/merchant/apps/mailerlite-3.png?fit=max\&auto=format\&n=9p5nlYkB8XwTy1ds\&q=85\&s=4525664fa45d466ce991fdaaf1bb961d)

**3. Make the subscriber fields**

In MailerLite, open **Subscribers**, then **Fields**. Before you turn on **Write the subscription status**, make the text fields `dodo_subscription_status` and `dodo_customer_id`. MailerLite ignores a field that does not exist.

**4. Choose the settings**

Open the **Configure** tab, set the options, and select **Save**.

![The Configure tab of the MailerLite app with the switches, the Group list, and the Products filter](https://mintcdn.com/dodopayments/9p5nlYkB8XwTy1ds/images/app-marketplace/merchant/apps/mailerlite-1.png?fit=max\&auto=format\&n=9p5nlYkB8XwTy1ds\&q=85\&s=354257d99a0a154c279f3c911eee1b83)

**5. Pick the group and the filters**

On the **Configure** tab, select the **Group**. Pick the products and currencies, then select **Save**.

![The MailerLite Configure tab with the Products and Currencies filters](https://mintcdn.com/dodopayments/9p5nlYkB8XwTy1ds/images/app-marketplace/merchant/apps/mailerlite-2.png?fit=max\&auto=format\&n=9p5nlYkB8XwTy1ds\&q=85\&s=aa23f222388b3ff064c376246145afb1)

## Settings

| Setting | What it does | Default |
| - | - | - |
| Add customers as subscribers | Create or update a subscriber for each successful payment and each new or renewed subscription. | On |
| Write the subscription status | Write `on_hold`, `cancelled`, or `expired` to the field `dodo_subscription_status` of an existing subscriber. | On |
| Group | Add each customer to this MailerLite group. Leave it empty to add the customers to no group. | None |
| Remove from the group when a subscription stops | Remove the subscriber from the group when the subscription goes on hold, is cancelled, or expires. A new or renewed subscription adds the subscriber to the group again. | Off |
| Products | Send data only for the products that you pick. | All |
| Currencies | Send data only for the currencies that you pick. | All |

## What is sent and when

Dodo Payments sends data after the Dodo Payments event happens. The app sends the email address, the first name, the last name, and the billing country code of the customer. It also sends the Dodo customer ID and the subscription status. The app sends no card data and no street address.

The app never subscribes a person again after the person unsubscribes. The app updates the name of an existing subscriber at each payment. A name that you changed in MailerLite changes back to the name in Dodo Payments.

The app uses one group for all products. The group list shows 200 groups or fewer.

## Test the app

**1. Use test mode**

Install and connect the app in test mode.

**2. Make a test payment**

Create a test payment with a test customer email.

**3. Check MailerLite**

Open **Subscribers** in MailerLite. The test customer appears. If you picked a group, the subscriber is in the group.

## Troubleshooting

| Problem | What to do |
| - | - |
| The status or the customer ID does not appear | Before you turn on **Write the subscription status**, make the text fields `dodo_subscription_status` and `dodo_customer_id` in MailerLite. |
| Your group is not in the **Group** list | The list shows 200 groups or fewer. |
| A person who unsubscribed does not receive email again | This is correct. The app never subscribes a person again. |
| **Connection needs attention** | MailerLite stopped accepting the credentials. Select **Reconnect** and enter new credentials. |
| No data arrives | Check that the setting switch is on and that the product and currency filters do not skip the event. Check that the customer has an email address. |

## Disconnect and uninstall

Turn off the settings on the **Configure** tab to stop sending data. Uninstall the app to delete the MailerLite connection. See [Manage and uninstall](https://docs.dodopayments.com/features/app-marketplace/manage-and-uninstall.md).


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