#GenCyc

1 messages · Page 1 of 1 (latest)

tulip magnetBOT
ruby night
#

Stripe doesn't offer an API to retrieve the list of deleted customers. One way is to monitor customer.deleted event using Webhook and keep track in your system

pliant vessel
#

I see, are there ways to get the logs ?

ruby night
#

The only way to get the log information is from the Dashboard, the page you are in. There is no API to retrieve the request history

pliant vessel
#

So the only way would be either get the log information from the dashboard or listen to customer.deleted event using the webhook ?

#

Because I'm trying to get a report of the deleted customers to see how long did it take from the account creation until it was deleted

ruby night
#

Another way I can think of is to use List Events API and set type as customer.deleted, so that you will get the timestamp of the event created for the customer deletion timestamp: https://stripe.com/docs/api/events/list

pliant vessel
#

I tried that too but it didn't work

#

But it shows some data In sigma if I do "SELECT COUNT(*) FROM customers where deleted"

ruby night
pliant vessel
#

Here you go req_wDWok7CUkYkVGZ

ruby night
#

This is the customer deletion request. I'm referring to the request ID of List Retrieval API that didn't work as expected

pliant vessel
#

Oh sorry, wait.

#

req_wDWok7CUkYkVGZ

ruby night
#

I'm afraid that there is no way to retrieve the timestamp of when the customer was deleted unless your system keeps track of customer.deleted event

pliant vessel
#

I see, so there is no way to retrieve the current deleted customers ? Unless there is a new one that has not exceeded 30 days ?

ruby night
#

Yup! If the customer has been deleted for more than 30 days, list events API won't return the result. Unless the customer is deleted within the past 30 days, then it will be returned

pliant vessel
#

I see. Thank you very much!