Docs

Subscriptions Articles & FAQ

api, 2Checkout, address, allow, create, customer, duplicate, email, hosted, list, merge, multiple, new, not, Page, same, subscription, prevent

461783

2020-06-22T21:12:26Z

2025-02-12T08:22:36Z

1016

2

1

246703

Limiting duplicate subscriptions via API

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?
Loading…