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

# Recharge integration

> Connect Recharge to compare subscription offers and track first purchases, renewals, and cancellations by test group.

Connect Recharge to compare subscription offers and see whether the customers each test group brings in keep subscribing.

> [!NOTE]
>
> Recharge appears when subscription provider integrations are enabled for your ABConvert account. Use credentials for the same Shopify store you have open in ABConvert.

## Before you start

Set these up in Recharge first:

1. **Create your plans.** See [Configuring product subscription plans](https://support.getrecharge.com/hc/en-us/articles/13618258115223-Configuring-product-subscription-plans).
2. **Add the widget to your product page.** See [Subscription Widget](https://support.getrecharge.com/hc/en-us/articles/29917364193815-Subscription-Widget). Add it to every product template the test can show, because a template without the widget shows no plans.

New to Recharge? Start with [Installing Recharge](https://support.getrecharge.com/hc/en-us/articles/7292531612823-Installing-Recharge).

## Configure Recharge and ABConvert

Have your Recharge store owner prepare an Admin API token for the Shopify store you use with ABConvert. The token lets ABConvert read plans and subscription activity. Its separate client secret lets ABConvert check that subscription updates came from Recharge.

**1. Prepare Recharge credentials**

In Recharge, open **Tools & apps → API tokens** and create or open an **Admin API token**. Some Recharge menus call this **Apps and integrations**. Use an Admin token, rather than a Storefront token. See [Recharge's API token instructions](https://support.getrecharge.com/hc/en-us/articles/360008829993-Recharge-API).

Give the token the following [Recharge permissions](https://developer.getrecharge.com/2021-11):

| Permission | Why ABConvert needs it |
| - | - |
| Store Information: Read access (`read_store`) | Verify the API key and confirm that it belongs to the matching Shopify store. |
| Read plans (`read_plans`) | List the subscription offers you can test. |
| Read subscriptions (`read_subscriptions`) | Track new subscriptions, pauses, and cancellations. |
| Read orders (`read_orders`) | Track renewal charges and refunds. |
| Write plans (`write_plans`), optional | Create a new Recharge plan from a single-product test. |

Enable **Read access** for **Store Information** as well as plans, subscriptions, and orders. On an Admin API token, Recharge names that scope `read_store` in its [API token scopes](https://developer.rechargepayments.com/2021-11#api-token-scopes). `store_info` is the scope name on a [partner OAuth token](https://docs.getrecharge.com/docs/partner-apps). ABConvert connects with the Admin API token, so the permission you set is `read_store`.

Copy the API key and the **API Client Secret** from that token's details. They are different values. ABConvert uses the secret to [verify incoming Recharge webhooks](https://docs.getrecharge.com/docs/webhooks-overview). Only the store owner can access API tokens by default; ask the owner for access if the page is unavailable.

![Recharge token details with separate API key and API client secret fields, with all saved values redacted.](https://mintcdn.com/abconvert/cLyHsvXg-1qx0sxP/images/integrations/recharge-token-details.png?fit=max\&auto=format\&n=cLyHsvXg-1qx0sxP\&q=85\&s=826502d44c823184a8b4eb418671a682)

The API key and API client secret are separate values. Credentials are hidden in this screenshot.

![Recharge Plans permissions showing read\_plans and write\_plans.](https://mintcdn.com/abconvert/cLyHsvXg-1qx0sxP/images/integrations/recharge-plan-permissions.png?fit=max\&auto=format\&n=cLyHsvXg-1qx0sxP\&q=85\&s=d30a8aecb789e5ac3cb83b98996b1f85)

Read plans is required. Write plans is needed only to create a plan from ABConvert.

![Recharge Orders permissions with read\_orders and write\_orders listed.](https://mintcdn.com/abconvert/cLyHsvXg-1qx0sxP/images/integrations/recharge-order-permissions.png?fit=max\&auto=format\&n=cLyHsvXg-1qx0sxP\&q=85\&s=b1e0694f6745153f7b9e7fcc5195bfac)

Enable Read orders for renewal charges and refunds. Write orders is not required.

![Recharge Subscriptions permissions with read\_subscriptions and write\_subscriptions listed.](https://mintcdn.com/abconvert/cLyHsvXg-1qx0sxP/images/integrations/recharge-subscription-permissions.png?fit=max\&auto=format\&n=cLyHsvXg-1qx0sxP\&q=85\&s=8c921276f3f1b9a138be7dd9a5c0f4b4)

Enable Read subscriptions for subscription updates. Write subscriptions is not required.

**2. Connect the matching store**

In ABConvert, open **Integrations** and select **Manage** on the **Recharge** card. Enter the **API key** and **API client secret**, then select **Connect Recharge**. Use both values from the same Recharge token.

If setup asks you to connect Recharge while creating a test, you can enter the same credentials in the connection dialog without leaving the test.

![Recharge credential form showing empty API key and API client secret fields, with Save credentials and Cancel actions.](https://mintcdn.com/abconvert/tPVC8rqXBUirjRrj/images/integrations/recharge-credentials.png?fit=max\&auto=format\&n=tPVC8rqXBUirjRrj\&q=85\&s=279bb2c1c4a13bcf498598f2bef3cb5a)

Recharge uses an API key and a separate client secret. Saved credentials stay hidden when you open Manage credentials.

**3. Check the connection**

ABConvert sets up the notifications it needs from Recharge automatically. These notifications are called webhooks. You do not need to add them yourself. Select **Check connection** to check the saved credentials and tracking setup. If tracking is missing, select **Restore tracking**.

![Connected Recharge integration with Check connection, Manage credentials, Disconnect, and the last event time.](https://mintcdn.com/abconvert/tPVC8rqXBUirjRrj/images/integrations/recharge-connected.png?fit=max\&auto=format\&n=tPVC8rqXBUirjRrj\&q=85\&s=0c829a01abef1bdeb188bd2bdb93c3fd)

Manage the connection and check when ABConvert last received a Recharge event.

**4. Verify a real lifecycle event**

Complete a subscription purchase through a test in a demo store. Check **Last event** in the Recharge connection, then open **Subscription Lifecycle** in the test results. Renewals appear after Recharge bills them. Preview checks the purchase experience; it does not check renewal reporting.

## What Recharge integration covers

ABConvert processes subscription creation, activation, updates, pauses, cancellations, skips, paid charges, failed charges, and refunds when Recharge delivers a valid webhook. It can attribute subscription outcomes back to eligible test assignments.

In a subscription test, choose the products first, then select one **Shared plan** per subscription test group. ABConvert matches that offer across every selected product. A **One-time purchase** test group uses those same products without a plan. At least one test group must sell a subscription. Follow the [subscription test setup](https://docs.abconvert.io/experiments/subscription-test.md#set-up-the-test) for the full walkthrough.

For a test with one product, **Create plan** can create a new Recharge offer. This needs `write_plans` permission. For multiple products, configure matching plans in Recharge, then use **Refresh plans** in ABConvert. A matching offer needs the same discount, billing and delivery schedule, quantity, and other plan terms across those products.

A new plan belongs to your Recharge store. Recharge bills renewals using that plan's terms. ABConvert does not reprice existing plans or change existing subscriber contracts.

A subscription test group always shows one-time purchase and its own plan. Keep **Show only the assigned subscription plan** on to hide every other plan. A one-time test group hides subscription choices. The setting stays on, and can't be turned off, while the test owns plans it created. ABConvert hides those plans from other test groups and from visitors outside the test, and creates them hidden from the Recharge customer portal.

After the test ends, every shopper can see the plans ABConvert created, so the results page lets you keep or remove them. Subscribers already on a plan keep their price. Removing a plan only stops new signups.

## When to use it

* **Measure subscription conversion:** compare which test group creates or activates more subscriptions after an eligible test exposure.
* **Measure renewal quality:** compare paid renewals, failed charges, cancellations, and refunds by the originating test group.
* **Test an existing offer:** assign a plan your store already owns, then compare first orders and lifecycle outcomes by test group.
* **Test a deeper discount:** create a 20% plan for Variant A next to your 10% plan in Control, then compare subscriptions and renewals by test group.

## Update credentials

Open **Integrations → Recharge → Manage credentials**, enter the replacement **API key** and **API client secret**, then select **Save credentials**. ABConvert checks the key and restores missing webhooks using the existing endpoint. Saved secrets stay hidden. **Cancel** discards unsaved changes.

## If the connection needs attention

* **The key belongs to another store:** use the Admin API token for the Shopify store you have open in ABConvert.
* **The key is rejected or the connection check reports a permission error:** enable **Store Information → Read access** (`read_store`) on the Admin API token. ABConvert needs this permission to verify the store, even if the token can already read plans and orders.
* **Plans or lifecycle data cannot load:** review the token's read permissions in Recharge. Charge events need orders access; subscription events need subscriptions access.
* **Create plan reports a permission error:** enable plan write access in Recharge, then reconnect through **Manage credentials** if you replaced the key.
* **Webhooks are missing:** select **Restore tracking**, then **Check connection** again.
* **Connected, but no events appear:** confirm that a subscription purchase was attributed to the test. Verify later event delivery in Recharge before relying on renewal results.

## Common mistakes

* **Using a Storefront token.** Use a Recharge Admin API token with the read permissions listed in the setup steps.
* **Leaving out the client secret.** Copy the separate API client secret from the same token as the API key.
* **Expecting Connected to confirm renewal reporting.** Check a purchase from your test and a later renewal in the test results.

## When not to use it

* To change an existing subscriber's price or delivery schedule, manage that subscription in Recharge.
* To compare one-time product prices, use a [price test](https://docs.abconvert.io/experiments/price-test.md).

## FAQ

> [accordion] Does connecting Recharge import all past subscriptions?
>
> No. ABConvert looks for relevant past activity from the last 180 days, starting no earlier than your oldest eligible active or closed test in that window. Connecting Recharge does not turn purchases outside a test into test results.

> [accordion] What is the difference between Check connection and Restore tracking?
>
> **Check connection** checks your saved credentials and existing tracking setup. **Restore tracking** adds missing ABConvert webhook connections in Recharge.

> [accordion] What happens when I disconnect?
>
> ABConvert stops accepting updates through the connection and tries to remove the webhooks it added in Recharge. If Recharge cannot remove a webhook, the old endpoint no longer updates ABConvert.


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