> For the complete documentation index, see [llms.txt](https://docs.limio.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.limio.com/integrations/order-orchestration/available-plugins/duplicate-subscription-check-plugin.md).

# Duplicate Subscription Check Plugin

The **Duplicate Subscription Check** plugin helps prevent users from purchasing a subscription if they already have an active subscription for the same product. This ensures that customers do not accidentally purchase duplicate subscriptions.

## How It Works

* The plugin integrates into the **order processing flow** and depends on the **Salesforce V3 plugin** running first.
* This allows it to work across **authenticated, unauthenticated, and** [**anonymously authenticated**](https://docs.limio.com/product/authentication/authentication-provider-per-page/configuring-anonymous-authentication-for-your-checkout-flow) checkout flows.

## Checking for Existing Subscriptions

* In **unauthenticated or** [**anonymously authenticated**](https://docs.limio.com/product/authentication/authentication-provider-per-page/configuring-anonymous-authentication-for-your-checkout-flow) checkouts, the Salesforce V3 plugin first determines if the user already has an account.
* If a matching account is found, based on the set duplication rules, it passes the **crmID** forward.
* The Salesforce V3 plugin then checks if the account associated with this `crmID` has an existing subscription in Limio.
* For Express Apple Pay, the next expected step would be for the [**Transfer Ownership**](https://docs.limio.com/integrations/populating-salesforce-data/limio-updates-salesforce) to then run.

## Blocking Duplicate Subscriptions

* If an **active, matching subscription** is found the Duplicate Subscription Check plugin will **throw an error**.
* The user will not be able to complete the order and will see an error message in the checkout or express checkout offer page.

This functionality is supported for **Express Apple Pay** and the **standard checkout flow**.

To enable this plugin email <support@limio.com>.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.limio.com/integrations/order-orchestration/available-plugins/duplicate-subscription-check-plugin.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
