#murad-is-the-api_best-practices
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.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ 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/1298020665365893151
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Our subscriptions API supports ad-hoc pricing, which allows you to specify a unique price while only providing a product ID. In the background this will automatically create a new price ID each time you do this, but that can make it easy to create many subscriptions at custom amounts.
https://docs.stripe.com/api/subscriptions/create#create_subscription-items-price_data
Our checkout API actually allows for ad-hoc product creation as well if you are planning on using that API. Whether or not you would want to use ad-hoc products vs already defined ones would mostly depend on whether your product is always named the same thing and I believe it also effects some of our dashboard reports that you can run so it would be relevant if you plan to utilize those https://docs.stripe.com/api/checkout/sessions/create#create_checkout_session-line_items-price_data-product_data
So basically I will have a "Enterprise" product with multiple prices (one price per enterprise customer)? This in case I choose ad-hoc
Gotcha, that sounds like a good idea. Let us know if you have any further questions on this