#dfenersky_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.
âąď¸ 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/1241000036385689631
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
hi there!
like you said, you can restrict a discount to a specific Product, but not to a specific Price.
but if you have only one Price per Product, then using the Product restriction would be similar to a Price restriction.
ok, I only wanted to double check whether its really not doable. Sometimes things are doable through the CLI that the UI does not allow
for example multiple billing portal configurations
but no discount per price, got it
yes, you can see in the API reference to create a Coupon here, there is a applies_to.product property but not a applies_to.price.
great, thanks for the info
forgot to paste the link: https://docs.stripe.com/api/coupons/create#create_coupon-applies_to