#thomasst - subscription schedule

1 messages · Page 1 of 1 (latest)

fringe pike
#

Hi there!

#

Can you share the subscription ID?

tired finch
#

sub_1LUVIuBSqAkKUXpQVJvyXywC

willow nova
#

Hello, apologies for the delay. I just got caught up on your question

tired finch
#

No worries, thanks

willow nova
#

I was going to ask if you used the iterations parameter but that looks like something different. Looking in to how you may be able to acheive this

tired finch
#

yeah I believe it has to be at least one

trim shard
#

I guess to clarify, why is it a problem for the schedule to still be managing the subscription? I don't think there's way to have it release until the end of the full set of phases, but just also trying to understand the actual issue you're trying to avoid

#

your schedule set up looks very correct/normal overall though, that's how I would do this same thing

tired finch
#

Not really an issue but since the schedule isn't doing anything anymore I was confused on why it still has to be there.

#

if I wanted to I could explicitly release it, right?

#

e.g. when finalizing the invoice

trim shard
#

true, you could call the explicit release API

#

I've never tried it to be honest as this is a bit of an obscure use case, but I imagine it would work for you

trim shard
tired finch
#

when the invoice with the new price is ready to be finalized, I am listening to the webhook

#

At that point I could release the schedule.

trim shard
#

you could do it when handling the customer.subscription.updated or invoice.paid event from the start of that phase , true. But it's adding complexity for what I see as no required reason

trim shard
tired finch
#

well I should be able to release it at any time after that point, no?

trim shard
#

yep, I think so

tired finch
#

Well I am using the schedule to migrate customers, and check for the schedule to see if a migration is pending. So that's why I'd prefer to remove the schedule when it's done.

trim shard
#

cool, might be worth investigating that option then!

tired finch
#

cool thanks