#bdanforth

1 messages · Page 1 of 1 (latest)

limpid stratusBOT
quaint wind
#

Hi there

#

No you can't retrieve deleted customers

#

Why do you want/need this info?

glossy tangle
#

We have a cache of Stripe objects, and we have reason to believe its not syncing properly with Stripe. I.e. the customer count doesn't add up, and I'm trying to account for it.

#

Okay that's what I thought; I was hoping there was a way in the dashboard where I could export it as an alternative to the API, but I figure it just uses those APIs.

#

For example I'm aware of at least one bug where we'd have deleted the customer in Stripe, but we wouldn't update our cache, and I don't know to what extent that covers the discrepancy.

quaint wind
#

Gotcha

#

You are best off just listing your current Customers then and cross-referencing

#

You won't be able to get data on deleted Customers

glossy tangle
#

Yeah in this case I just want to know if they're deleted, and I know if I use the retrieve API, I'll get back deleted: true on the stub customer object returned.

quaint wind
#

Ah right

#

I did forget about that

#

Well in that case you could loop through your Customer IDs then

#

Just beware of rate limits

glossy tangle
#

Yeah I could get the list of non-deleted customers from Stripe and find the difference between that and Firestore, and then hit the retrieve API with that difference set to see if those customers are deleted

#

(Firestore is our cache)

quaint wind
#

Yep that seems like a good way to go imo

glossy tangle
#

Okay thanks for your help