#.abishek
1 messages ยท Page 1 of 1 (latest)
Hi there ๐ you can update the active parameter for a Product from the API:
https://stripe.com/docs/api/products/update#update_product-active
does that accomplish what you're hoping to?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
ok, so that is the same as archiving?
and also, when creating a checkout session, can I have a mix of both one time and subscription based products on it?
I believe so, but I'm not quite as familiar with the dashboard side of things.
Yes
I am going to use the price_data variable and set the price_data.product to create the checkout session, so I should still be able to add both right?
Yup, should be able to. You'll have multiple entries in your line_items array that use price_data, but there shouldn't be any problems with that. Let me know if you run into errors though.
Just ran a quick test and confirmed, archiving and making a product inactive appear to be the same, but I would recommend double checking you're seeing the same thing.
ok thank you