#taviksha-akar_subscription-cancel-and-schedules
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/1285201337751048244
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- taviksha-akar_api, 1 hour ago, 46 messages
- taviksha-akar_code, 3 days ago, 28 messages
- taviksha-akar_api, 4 days ago, 13 messages
Hi, what's your question exactly?
My question is I have a scheduled subscription and have its subscription.
The subscription is active. I need to set its cancellation date to a future date and need to take the prorated charges till the cancellation date.
For this I am updating the subscription and passing date in "cancel_at".
But getting this error "The subscription is managed by the subscription schedule sub_sched_1PzbAMIE5Vvk0efG7Tjfnkhz, and updating any cancelation behavior directly is not allowed. Please update the schedule instead
As the error message suggests, you need to update/cancel the Subscription Schedule instead:
You don't want to cancel it immediately, right?
Yes, I don't want to cancel it immediately.
Then you will need to update the current phase and set end_date: https://docs.stripe.com/api/subscription_schedules/update#update_subscription_schedule-phases-end_date
Also set end_behavior=cancel: https://docs.stripe.com/api/subscription_schedules/update#update_subscription_schedule-end_behavior
But what if I need to reactive the subscription and remove cancellation
Do the same - update the current phase.
means need to update the current phase and need to add the other phases that have been removed when cancellation set by giving end_date.
This will be a complex way
Is there any other way to do so or may be using pause subscription. Can we pause a subscription or a schedule subscription on a particular date and take the prorated charges till that date?
Actually you can pause the payment collection following this guide:
https://docs.stripe.com/billing/subscriptions/pause-payment
I invite you to do some simulations using Stripe test Clocks:
https://stripe.com/docs/billing/testing/test-clocks
Can we pause a subscription for a particular date and not immediately?
No, but you can create a mechanisme in your integration (like internal cron) that pauses the Subscription on the target date.
No but i need to take the prorated charges till the pause date. Internal cron will not work in this case.
Why ? there is no impact on the proration
It's like pausing the Subscription today
Have you tried to make a test ?
{"success":false,"message":"The subscription is managed by the subscription schedule sub_sched_1PzcGOIE5Vvk0efGXkhlpwb1, and updating any cancelation behavior directly is not allowed. Please update the schedule instead."}
this was the error when updating the subscription and setting cance_at date. Is there any direct way to cancel the scheduled subscription on a particular dare without involving phases in it.
I think this was answered already in the beginning of the discussion
The answer was based on the phases. I am looking for a way without use of phases. That is very complex way to do
Or you can implement your own schedule to trigger the cancel API call on the target date
These are the only available options..
No I cannot schedule it at my end. My main motive is to take the prorated charges till the cancellation date.
You need to wait until the cancelation date in order to compute the proration in this case.
Actually my use case is to create a cancellation schedule and take the end term charge immediately.
Hi there ๐ can you elaborate a bit on what that means, and help me understand what you're trying to ask there?