#swipe-sub-cancel

1 messages · Page 1 of 1 (latest)

gusty turtle
#

Hi there, let's use this thread.

#

Can you give me more details about the issue?

analog grove
#

When I try to set cancel_at_period_end on a subscription, I get the following error:

The subscription is managed by the subscription schedule sub_sched_1Ky1k5BlqHLa4oXaPaL3J48E, and updating any cancelation behavior directly is not allowed. Please update the schedule instead.

#

The docs indicate you could do this:

#

And in fact, I'm pretty sure this worked previously, as this bug has just come up in our system

#

The problem is, there's no way to schedule cancelation in the current phase through the schedule

#

While preserving later phases

#

Which is what we need

#

A user can be, for example, changing their subscription billing interval via a scheduled update

#

And we preserve this behavior if the user decided to "undo" their scheduled subscription deletion

#

But now, it seems my only option is to delete all scheduled phases and set the schedule.end_behavior to cancel or delete the schedule altogether and then set subscription.cancel_at_period_end to true

gusty turtle
#

Yeah this isn't possible.

#

That's correct

#

You would need to preserve the data on your end

analog grove
#

Did this change recently?

gusty turtle
#

I don't believe so, no.

#

If you have an example of where you did this in the past I would be happy to look.

#

But pretty positive this has always been the case.

analog grove
#

Hmmm fascinating haha

#

Well, thanks so much for all your help!