#thomasst - subscription schedule
1 messages · Page 1 of 1 (latest)
sub_1LUVIuBSqAkKUXpQVJvyXywC
Hello, apologies for the delay. I just got caught up on your question
No worries, thanks
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
yeah I believe it has to be at least one
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
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
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
not sure what that means, you'd want to release at some point after that new phase(phases[1] with the new Price) has started
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.
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
yeah ok so sure, you can do it in that 1 hour period when the invoice is draft at the start of the new billing period. Worth testing it to be sure!
well I should be able to release it at any time after that point, no?
yep, I think so
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.
cool, might be worth investigating that option then!
cool thanks