#jan_api
1 messages Β· Page 1 of 1 (latest)
π Welcome to your new thread!
β²οΈ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
β±οΈ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
π This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1412346598717132870
π Have more to share? Add more details, code, screenshots, videos, etc. below.
This is the way we create the subscription schedule:
$schedule = $stripeClient->subscriptionSchedules->create([
'from_subscription' => $stripeSubscription->id,
]);
// Update the schedule with the new phase
$stripeClient->subscriptionSchedules->update(
$schedule->id,
[
'phases' => [
[
'items' => [
[
'price' => $schedule->phases[0]->items[0]->price,
'quantity' => $schedule->phases[0]->items[0]->quantity,
],
],
'start_date' => $schedule->phases[0]->start_date,
'end_date' => $schedule->phases[0]->end_date,
'proration_behavior' => 'none',
],
[
'items' => [
[
'price' => $newPriceId,
'quantity' => 1,
],
],
'start_date' => $schedule->phases[0]->end_date,
'iterations' => 1,
],
],
]
);
After that, the upcoming invoice looks like this (we want the marked lines removed).
hi there!
could you try adding proration_behavior: "none" to both phases of the schedule?
@craggy hinge Thanks for the input. Just tried it, unfortunately with the same result.
can you share the new Subscription Schedule ID?
Sure: sub_sched_1S2plCGq8AgVVRbzVJ2gzk6S
thanks, having a look
π taking over for my colleague. Let me catch up.
I think it's best here for this to be handled asynchronously since we're really not sure what's the issue here. and it's taking us more than an hour now with no evident progress to be honest.
you will receive a DM with a link to create a case directly with our team and someone will get back to you shortly
Hello @hollow ridge, we have sent you a direct message, please check it at https://discord.com/channels/@me/1412371085009223752
- πThe message has instructions on how to open a direct support case with our Developer Support team, in order to help you more effectively.
Allright, thank you!
let me know when you do so I could close this thread