#invite4ever
1 messages · Page 1 of 1 (latest)
Hi there, there's no product_data field in subscription update API, so you need to use /v1/products endpoint to create a product first and use its ID to update the subscription.
Can i create product with/v1/products like stripe creates automatically i mean, shadow product that is not displayed in all products list?
You mean you want to achieve the product?
You can set the active flag to false (https://stripe.com/docs/api/products/update?lang=php#update_product-active) to achieve the product.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
kinda, but like stripe creates for e.g this product id "product": "prod_MRUevALXnHbgp5", i don't see that product at Available or Archieved product lists.
That's because this product was created via product_data during a checkout session, not explicitly created by you.
Ok, could be nice feature that upgrade/downgrade could create product (suggestion for future). Also one question what circumstances be if i will use always one product id everytime?
We welcome feedback, please let Stripe support know what you think https://support.stripe.com/contact
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
It's really up to you, you can create an ad-hoc product every time, and you can also just create a product and reuse it.
Thank you for help