#nachofranco14_code
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/1419694793730293770
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
is any other way to handle such case?
Hello, our coupons don't have a built in way to do that unfortunately. Depending on what you are trying to do, it may make sense to create a subscription schedule that applies the discount at some point in the future. Can you tell me more about what you are trying to do?
I already have the schedule
can I attach the coupon to an item in the schedule?
I have very long-running subscriptions (15y, 20y)
Yep, phases have coupon and discounts parameters that you can pass the coupon into to apply it during the phase
https://docs.stripe.com/api/subscription_schedules/object?api-version=2024-12-18.acacia#subscription_schedule_object-phases-coupon
https://docs.stripe.com/api/subscription_schedules/object?api-version=2024-12-18.acacia#subscription_schedule_object-phases-discounts
what is the diff between them?
Discounts can apply multiple discounts at once. I believe originally there was just the coupon param and when we added multiple discount support we added the discounts array
Same, and discounts is the standard going forward I believe