#GenCyc
1 messages · Page 1 of 1 (latest)
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
I see, are there ways to get the logs ?
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
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
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
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"
Can you share the request ID (req_xxx) that you made with List Retrieval API? Here’s how you can find it: https://support.stripe.com/questions/finding-the-id-for-an-api-request
Here you go req_wDWok7CUkYkVGZ
This is the customer deletion request. I'm referring to the request ID of List Retrieval API that didn't work as expected
Thanks for sharing. List Events API can only retrieve the events from the past 30 days. Since the customer was deleted on 2022-01-20 22:00:49 UTC in https://dashboard.stripe.com/logs/req_wDWok7CUkYkVGZ which is more than 30 days, it won't be returned
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
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 ?
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
I see. Thank you very much!