#ezequielg87
1 messages · Page 1 of 1 (latest)
I cancel using end_behavior only and the subscription no was canceled:
Hey, sorry, my colleague had to step away. Could you please share a little bit of context?
NP! I work with susbscription schedules. I need to cancel when the current period ends. Your colleague seggest update de subscription and set end_behavior. But I need keep ONLY the current phase? true? How I get the current pahse and sets on update?
I need to avoid prorating, that's why I was asking for the cancellation to be at the end of the current period.
What do you mean by "keep ONLY the current phase" exactly?
If I want the cancellation to be at the end of the current period, should I update the subscription and keep only the current phase?
I am not sure exactly, but you can try updating the current phase.
I don't understand how to get the current phase from a sub schedule... Can you help me?
Could you please share the Subscription ID?
Yes, sub_1NZuJNJoDlMCKbw5lcIFfQ9R
in thes last updated I set "end_behavior": "cancel". But I think that this need only keep the actual periord
I develop in node js
This one only has 1 phase, so it doesn't matter if you use end_behavior: cancel or cancel_at_period_end.
yes, but this phase have 4 iterations. I need cancel on the end of the first iteration in this case...
You can access the phases property when you retrieve the Subscription Schedule. You can make it 1 month instead: https://stripe.com/docs/api/subscription_schedules/object#subscription_schedule_object-phases