#Marina808-cancelling-subscriptions
1 messages · Page 1 of 1 (latest)
Hey there 👋
You're correct, the cancel api is for immediately cancelling a subscription. To configure the sub to cancel later you need to instead use the update option.
For scenario 2, you could set the cancel_at_period_end parameter to true, which will cause the subscription to end at the end of the current period:
https://stripe.com/docs/api/subscriptions/update#update_subscription-cancel_at_period_end
And for scenario 3 you can use the cancel_at parameter to have the sub cancel at a custom date:
https://stripe.com/docs/api/subscriptions/update#update_subscription-cancel_at
Many many many thanks!
Happy to help!