#yoshie902a - deleting prods and prices
1 messages · Page 1 of 1 (latest)
If you were to delete a price that still had active subscriptions attached, the active subs would continue as normal but you wouldn't be able to create new subscriptions with those deleted prices
If you want to upgrade the subscriptions with the old price to a new price you could follow this: https://stripe.com/docs/billing/subscriptions/upgrade-downgrade
My question is more of if it would cause issues if they were deleted?
Second, is there a way to query all plans that are/were not used in a subscription? to purge unused or unwanted products/plans
Yeah tried to answer that. Would only cause issues if you tried to create new subs with those deleted prices.
You can also see on the dashboard how many active subs are on a plan
how about from a audit perspective?
Can also list subs filtering by active and with a certain price id: https://stripe.com/docs/api/subscriptions/list
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Like in reports?
I would want to search plans not used in subscriptions.
Yeah so you can use that api call i just shared
Just filter by "active" and pass in the applicable price ID where you want to check if there are any subs with that price
but then I have to do that for each price. I was hoping to be able to do one call to get all plans without subscriptions.
There's not a way to do it in one call unfortunately
You could write a script to iterate through your prices and make that call for each one
ya, was hoping to not have to do that and make 1000 calls