> For the complete documentation index, see [llms.txt](https://docs.getmesa.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.getmesa.com/connect/loyalty-lion.md).

# Loyalty Lion

## Connection <a href="#connect" id="connect"></a>

When you're setting up your first workflow with [LoyaltyLion](https://loyaltylion.com/), you'll need to create a connection through MESA's LoyaltyLion app integration.

Click Connect with Loyalty Lion to begin this process.

<figure><img src="/files/vsGhsA3vrEQrvSquFg2u" alt="Screenshot of MESA LoyaltyLion step connection setup. Spotlight the Connect with Loyalty Lion button."><figcaption></figcaption></figure>

In order to authorize the MESA application, you will need to log into your LoyaltyLion account.

![Screenshot of the LoyaltyLion login screen shown while authorizing the MESA application. Spotlight the login form.](/files/3VjhqY8HJVRVD3Hv1vOh)

Next, accept the MESA app permissions by clicking Authorize.

![Screenshot of the LoyaltyLion MESA app permissions screen. Spotlight the Authorize button.](/files/o3NXFi8ZLhRnBEEjaFxH)

Now your LoyaltyLion connection has been created.

![Screenshot of MESA workflow builder showing the newly created LoyaltyLion connection. Spotlight the connected LoyaltyLion account.](/files/ppog42GyjuU4D2wwWUDr)

### Configure <a href="#configuring" id="configuring"></a>

#### Add Points to a Customer <a href="#add-points" id="add-points"></a>

In order to add points to a customer, you will often first need to locate a customer's Merchant Id. This can normally be found via the LoyaltyLion Get List of Customers action, using the More Options parameter option to search your LoyaltyLion customers by email.

Use the format "email={{variable}}" where {{variable}} would be a customer email found using the [variables menu icon](/workflow-builder/fields/variables.md).

![Screenshot of MESA LoyaltyLion Get List of Customers action with More Options opened. Spotlight the search parameter field using the email={{variable}} format.](/files/q4YZmndkjL8CF1kehucS)

Then, on the LoyaltyLion Add Points Customer action, use the [variables menu icon](/workflow-builder/fields/variables.md) to select the customer's Merchant Id from the LoyaltyLion List Customer step for the action's configuration.

#### Send data to LoyaltyLion <a href="#data" id="data"></a>

In some of the [LoyaltyLion Actions](https://docs.getmesa.com/workflow-builder/actions), there may be a Data Mapping section. If you are not familiar with what data to send, you can click on the [Variables menu icon {+}](/workflow-builder/fields/variables.md) within the Key field and the available variables will appear on the right hand side bar.

![Screenshot of MESA LoyaltyLion action Data Mapping section with the Variables menu opened on the Key field. Spotlight the Variables menu icon and the available variables sidebar.](/files/DwGytwv7G6NZV5o7hans)

### Triggers <a href="#triggers" id="triggers"></a>

There may be a delay of a couple minutes from when a change is made in LoyaltyLion to when it is received by MESA. This is the normal behavior of the [LoyaltyLion](https://loyaltylion.com/) API.
