Docs

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

Limiting duplicate subscriptions via API

Problem Statement

You want to avoid duplicate customer records when customers checkout via hosted pages, and you need to merge existing duplicates.

Solution

Use the List customers API to check for an existing customer before creating a subscription. If one exists, either block creation or create the subscription under that customer.

Steps to Set It Up

  1. Capture and save the customer's email on your custom form.
  2. Call the List customers API to see if a customer with that email exists.
  3. If a customer exists:
  4. If no customer exists: Use the create new subscription or checkout new hosted page API.

Additional Information

To merge existing duplicate customer records, use the Merge customers API.

Was this article helpful?