#geo88
1 messages ยท Page 1 of 1 (latest)
Hello ๐
You can cancel the subscription at the end of the cycle by setting cancel_at_period_end to true
https://stripe.com/docs/billing/subscriptions/cancel#cancel-at-end-of-cycle
Based on your usecase, you should actually use Subscription Schedule API instead so that you don't need to cancel the subscription to switch to a cheaper plan
https://stripe.com/docs/billing/subscriptions/subscription-schedules
ah thank you
I think I was on the wrong API call
this is a POST then
not a DELETE
Yup ๐
NP! ๐ Good Luck
theses scheduled subscriptions, can they be created trough a pricingtable?
Not at the moment unfortunately. However, you could listen to subscription creation webhook events and convert the subscription to a schedule.
my users will go through this and then stripe checkout
yes, i'm actually listening to the checkout and then canceling the subscription + scheduling a new one (cheaper)
which is best?
Subscription Schedule would be the preferred way as it allows you to avoid creating new subscriptions as well as maintain proper subscription history for a customer
so I can't use the pricing table if I do subscription schedule?
:/
well, easy to recreate, it's just a call to a checkout, right?
Yup, its using the Checkout Session API underneath.
so I can't use the pricing table if I do subscription schedule?
You can. You can listen tocustomer.subscription.createdevent and once the subscription has been created, you can create a schedule from the existing subscription server-side
https://stripe.com/docs/billing/subscriptions/subscription-schedules/use-cases#existing-subscription
So, the user would have 2 subscriptions?
Or once the 2nd subscription starts, the first one will end? right?
So, the user would have 2 subscriptions?
Or once the 2nd subscription starts, the first one will end? right?
It will be the same subscription (we don't create a new one) which will be updated to whatever the next phase pricing is
Would recommend reading through the links I shared above, they cover the usecase comprehensively
NP! ๐ Happy to help
that's what i'm doing now ๐ thanks again ๐
Looks like it worked just fine ๐
Awesome, glad that worked ๐
so, I just need to recreate the pricing table then?
and redirect the user to the check out to pay the $289 for the first year
once, paid, I do this API call (subscription schedule)
Yup ๐