Limiting duplicate subscriptions via API

Modified on: Tue, 23 Jun, 2020 at 2:56 AM

This article covers 

How to merge customer records with the same email address?

How to match several subscriptions that belong to one customer?


To avoid creating duplicate customer records, that applies when an existing customer checkout using hosted pages, you can use the API functionality as stated below.

  1. Capture and save the email address of your customer on a custom-built form in your website

  2. Use the List customer API to check whether an existing customer record with the same email address is present or not. 

    1. If a customer is present with an existing email address

      1. Return error and stop subscription creation 

      2. Proceed with subscription creation under existing customer using a checkout new hosted page or create subscription for customer API

    2. If an existing customer is not present, use the create new subscription or checkout new hosted page API.

if you have handled duplicate subscriptions, and if you need to manage the existing duplicate subscriptions use the merge customer API


Related articles and Documentation

Can we have multiple subscriptions in Chargebee?

How to prevent multiple Users or Subscriptions with the same email address?


Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.