#shez19933-Customer

1 messages · Page 1 of 1 (latest)

jaunty flax
#

Depends on what you define "had no activity". You can always call the List All Customer API, get an array of Customer object and filter by yourself

#

It's true the each API call to create customer will create a separated object

neon wadi
#

had no activity as in never done a transaction with us (ie no payments or subscriptions)..
Current devs thought its clever to just create a stripe object for all new registered users..
I am rebuilding and just want a clean slate etc.

jaunty flax
#

So it could requires a bit work on that, for example:

#

List all the Payments you currently have, saved all customer ids into an array

#

List all customers you currently have, save all customer ids into another array

#

Compare those and get the ids that on second lists but not in first lists

#

then you have a list. Now loop through and call Delete Customer API