#nadeem-Connect
1 messages · Page 1 of 1 (latest)
Hi there, what do you mean by duplicate accounts?
Hi @mellow stag do you mean customers? you want to merge customers who are having the same email address?
No problem. There is no API to merge customers, but there's an API to delete a customer https://stripe.com/docs/api/customers/delete#delete_customer
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
sounds good and thanks for the help but is there a way to first identify such customers ?
Yes, you can pass the email address to the list API https://stripe.com/docs/api/customers/list#list_customers-email to get the list of customers with the same email address
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Thanks