#j0e_api
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question. Thank you for your patience!
โฑ๏ธ We automatically close idle threads, which makes them read-only. Make sure you stick around to chat in realtime! If this thread is closed and you have another question you'll need to start a new thread.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1214428354954928139
๐ Have more to share? You can add more detail below, including code, screenshots, videos, etc.
Once a Product has a Price associated with a Product, the Product cannot be deleted. It can only be archived by setting active to false: https://docs.stripe.com/api/products/update#update_product-active
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
hmm. I can do it from the front end though
I just deleted the 3 prices associated to a product, then deleted the product
Delete a Price is a Dashboard only feature and isn't supported by API
ok thanks. is it on a backlog ?
Another alternative is to archive the Price setting active to false, then delete the Product: https://docs.stripe.com/products-prices/manage-prices?dashboard-or-api=api#delete-price
However, deletion of a Product only works if the Price has not been used before
ok, that sounds like a bit more work to try and handle, I'll give the archiving of the product a try first, thanks.
No problem! Happy to help ๐