#Meddy-subscription
1 messages · Page 1 of 1 (latest)
Hi there!
I see a couple of option:
- Create a $20 subscription, but add a $19 coupon to the subscription for the first month https://stripe.com/docs/api/coupons/create
- Or create a subscription schedule, where the first month is $1 and the next months are $20 https://stripe.com/docs/billing/subscriptions/subscription-schedules
The first option is simpler, and also it would allow you to create the subscription with Checkout Session (which is our recommended approach)
Thanks Soma, for the first option, does the user need to enter a voucher manually?
No, the coupon can be passed directly in the API call. For example, if using Checkout Session, it's https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-discounts-coupon
And if you create the subscription manually, it's https://stripe.com/docs/api/subscriptions/create#create_subscription-coupon
Thanks Soma, for the second option, do we need to create the schedule first then subscription? or vice versa?
You create a subscription schedule, and that will automatically create a subscription for you. However note that you cannot create a subscription schedule using Checkout Session.
When creating the schedule some subscription attributes should be determined, should we update the subscription in the 1hour window according to the subscription id?
I'm not sure I follow. Can you clarify exactly what you are trying to achieve?
With the second approach, how do I define the main price ($20) of the subscription?
When you create a subscription schedule, you have to set phases:
- first phase, would last 1 iteration (1 month) with a price of $1
- second phase, would last indefinitely with a price of $20
You can see something similar done there: https://stripe.com/docs/billing/subscriptions/subscription-schedules/use-cases#upgrading-subscriptions
however, like I said earlier, I would recommend to use coupons instead of a subscription schedule for this.