#Charmon
1 messages ยท Page 1 of 1 (latest)
Hi ๐ yes, there are a couple approaches for that.
The easier option is to create a Coupon with a duration of once, so the discount provided is only applied to the first Invoice:
https://stripe.com/docs/api/coupons/object#coupon_object-duration
Then you can apply that Coupon to the Subscription as part of the Subscription's creation request:
https://stripe.com/docs/api/subscriptions/create#create_subscription-coupon
You could also use Subscription Schedules to build this, but those are a bit more complex.
They allow you to create phases for a Subscription, and the Subscription will automatically update in the future to follow the phases that you have defined, allowing you to stage future changes:
https://stripe.com/docs/billing/subscriptions/subscription-schedules
Thanks, yes thats what I was looking for.
Now, I assume you can automatically apply coupons if you are creating subscription yourself, but If I were to use stripe checkout, would customers have to enter a Code to apply that coupon?
Yes, you would need to create a Promotion Code for the Coupon, and then configure the Checkout Sessions that you create to allow promotion codes be provided.
That and other options for applying discounts to Subscriptions can be found here:
https://stripe.com/docs/billing/subscriptions/coupons
Yeah, but customer would have to enter the code, or is there some method like: auto_apply_coupon_code: {{COUPON_CODE}}?
You can directly apply a Coupon to a Checkout Session without using a Promotion Code, that is also shown in the above doc, in this section:
https://stripe.com/docs/billing/subscriptions/coupons#using-coupons-in-checkout
That's super useful, Thank you!