#Techy Geek
1 messages · Page 1 of 1 (latest)
Hi
There isn't a filter for that in the public APIs:
Here all the search query fields for Products API:
https://stripe.com/docs/search#query-fields-for-products
Hi! I'm taking over my colleague. Please, let me know if you have any other questions.
I couldn't find out any straightforward way to look for orphan products, prices, etc that are not being used in any subscription. I want to delete them using cron-job every week from my app.
I am also looking for customers which are not involved in any subscription and can also be deleted in another cron-job.
Can you help me with that? Is there any way we can achieve this?
Good question. I am not sure there's a straghtforward way to do that. You might need to list all Subscriptions and save all Products/Prices/Customers that are used. And then list each of the object type and delete the ones that are not on your "used" list.
Okay, thanks for letting me know