#.juchom
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- .juchom, 22 hours ago, 45 messages
- juchom-subscriptions, 3 days ago, 10 messages
- .juchom, 3 days ago, 6 messages
- .juchom, 3 days ago, 27 messages
- .juchom, 4 days ago, 4 messages
- juchom-tax-id, 5 days ago, 14 messages
Assuming you have end_behavior: 'release' set it'll release at the end of all the specified phases
yes, this is the end_behavior (I didn't specify anything)
My subscription had no schedule, I created it with this sample : https://stripe.com/docs/billing/subscriptions/subscription-schedules/use-cases#existing-subscription
And I just added a phase like in my first message
The schedule creates the subscription
And then it'll release control once all phases have complete the specified iterations and/or end date is hit
I suspect the phase defined on the schedule is still 'active'. You'd need to advance the clock again beyond that iteration
So if it's monthly cycle, advance it another month
Yeah the schedule will release at the end_date of the last phase: https://stripe.com/docs/api/subscription_schedules/object#subscription_schedule_object-phases-end_date
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
ok, advancing one more month the schedule is null with the api
I have to double check the sample from the doc
Sure, let me know if you've any follow-ups
Here is how I defined my new Schedule :
[
new SubscriptionSchedulePhaseOptions
{
Items =
[
new SubscriptionSchedulePhaseItemOptions
{
Price = schedule.Phases[0].Items[0].PriceId,
Quantity = schedule.Phases[0].Items[0].Quantity,
}
],
StartDate = schedule.Phases[0].StartDate,
EndDate = schedule.Phases[0].EndDate,
},
new SubscriptionSchedulePhaseOptions
{
Items =
[
new SubscriptionSchedulePhaseItemOptions
{
Price = schedule.Phases[0].Items[0].PriceId,
Quantity = 5,
}
],
Iterations = 1,
}
],
Ok, and what's the issue?
My first phase is the current phase with the actual subscription parameter
The schedule will release at the end of the 2nd defined phase there
Let me try
If I advance one month the quantity is set to 5 but the schedule is still here
Ok, so you've advanced to the start of the 2nd phase and the quantity has reduced as per the phases defined. Yes?
And if I advance one more month, the schedule is now null
Yep, and that's expected as I've explained
That's how that API works
It doesn't release until the end of all defined phases. Not at the beginning of the last phase (which seems was your expectation)
Ok, I would have expected it to clear the schedule as soon as the quantity was reduced
Nope, doesn't work like that I'm afraid
It doesn't release until the end of all defined phases. Not at the beginning of the last phase (which seems was your expectation)
Exactly
Let me know if you've any other questions