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

# LoyaltyLion

> Show the points a purchase earns, and manage loyalty points and rewards in LoyaltyLion.

Connect LoyaltyLion to Replo to show shoppers how many points a purchase earns, build loyalty pages from your live program, and look up or adjust members' points and rewards in chat.

## Create an API key

**1. Open API keys**

In LoyaltyLion, go to **Manage** → **API keys** and select **Create API key**.

**2. Choose scopes**

Give the key the **read\_customers**, **write\_customers** and **read\_orders** scopes. Replo needs **write\_customers** to add or remove points and redeem rewards; leave it off if you only want to read.

**3. Copy the key**

Copy the key when it's shown. LoyaltyLion only shows it once.

## Connect LoyaltyLion

**1. Open the Integrations app**

In Replo, open [Integrations](/apps/integrations) and choose **LoyaltyLion**.

**2. Enter your API key**

Select **Connect** and paste your **API Key**.

**3. Add your Site ID if you have more than one site**

If your program has more than one site, enter the **Site ID** of the store you're building for. It's the number after `/sites/` in your LoyaltyLion URL. With one site, leave it blank.

## Show points on product pages

Ask Replo to show the points a purchase earns under your add to cart button. The number updates when a shopper picks another variant. For example:

```text theme={null}
Show how many LoyaltyLion points a purchase earns under the add to cart button on my product pages.
```

Build in Replo

> [!NOTE]
>
> The points shown use your base purchase rule, the same as LoyaltyLion's own points widget. They don't include collection exclusions, points modifiers or bonus-points promotions. Showing points on pages needs LoyaltyLion's Classic plan or above.

## Use LoyaltyLion in chat

Once connected, ask Replo about your program or a member. For example:

```text theme={null}
Summarize my LoyaltyLion program: how customers earn points, the rewards they can redeem, and my tiers.
```

Build in Replo

Before Replo adds or removes points, redeems or refunds a reward, or changes a member, it asks you to approve the change.


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