Docs

Log into read the version of docs relevant to your site.

Limiting duplicate subscriptions via API

This article covers

How to merge customer records with the same email address?

How to match several subscriptions that belong to one customer?

Summary

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.

Was this article helpful?