#zxcvbnm123
1 messages · Page 1 of 1 (latest)
hi, do you have the request ID req_xx for the error message, or the sub_xxx subscription ID?
sub_1LigMD2IIsu9yx2JvnrSriUJ here 🙂
as far as I can tell that schedule does not finish until 2022-09-25
the third phase on that schedule is : start from Sunday, 18 September 2022 00:00:00, end at Sunday, 25 September 2022 00:00:00, be on 5x price_1LYUfe2IIsu9yx2JtX7UWcfG during that time
Thanks for that. I'm not sure where does 25th of Sep comes? Why that date?
it was set in this API request you made through the Stripe dashboard here https://dashboard.stripe.com/test/logs/req_CE9fUPzHAMaRb0
hard for me to say more than that since I can't really see exactly what you were doing in the dashboard at the time or what the UI was
Is it not the 23rd?
it was the 23rd, and then whatever that API request did changed it to the 25th
I guess because in that request, it sets the third phase to start on 1663459200 (18th Sep), and you're using a weekly Price, so naturally that phase starts on the 18th and ends 7 days later on the 25th
for example, if we're using a yearly billing period. a customer subscribes jan 1st 2022, the renewal should happen jan 2023, but we make a scheduled update to happen on jan 1st 2023, the third phase will then last until jan 1 st 2024 which effectively means that the customer can't cancel the subscription until 2024
they can cancel, you just need to cancel by updating the schedule instead to adjust its end_behavior
Hmm how do we adjust the end behavior of the schedule?
Can this also be done from the Dashboard?
not sure, but I would assume so
since you have an API integration though and are the developer of it, the best course of action is to handle this in your code(if the Subscription's schedule field is set, it's managed by a Schedule so you have to implement cancellation by editing that schedule instead of directly using cancel_at_period_end). I know it's not great because it's easy for someone on your account to use the dashboard editor and schedule changes, which then means your code suddenly has to deal with the Schedule API.