#bdanforth
1 messages · Page 1 of 1 (latest)
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.
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
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.
Ah right
I did forget about that
Well in that case you could loop through your Customer IDs then
Just beware of rate limits
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)
Yep that seems like a good way to go imo
Okay thanks for your help