#Pilou
1 messages · Page 1 of 1 (latest)
Hi there!
No the product ID is mandatory: https://stripe.com/docs/api/subscriptions/create#create_subscription-items-price_data-product
Ok but can i custom these parameters ? Whitout create a product ? Can i just give my object data ?
No, like I said, you need a product ID (prod_xxx), so you first need to create a Product with the API or the dashboard.
Note that if you create your subscription with a Checkout Session, then you don't have to create a product and can use product_data instead: https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-line_items-price_data-product_data
Ok thx for helping
Happy to help 🙂
Is it possible to export the products data to a json file ? or it is just in csv ?
From the dashboard it's only CSV. If you want json you would have to write some code and use the API https://stripe.com/docs/api/products/list