#jan_api

1 messages Β· Page 1 of 1 (latest)

grim condorBOT
#

πŸ‘‹ 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.

hollow ridge
#

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).

craggy hinge
#

hi there!

#

could you try adding proration_behavior: "none" to both phases of the schedule?

hollow ridge
#

@craggy hinge Thanks for the input. Just tried it, unfortunately with the same result.

craggy hinge
#

can you share the new Subscription Schedule ID?

hollow ridge
#

Sure: sub_sched_1S2plCGq8AgVVRbzVJ2gzk6S

craggy hinge
#

thanks, having a look

grim condorBOT
deft estuary
#

πŸ‘‹ taking over for my colleague. Let me catch up.

deft estuary
#

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

grim condorBOT
#

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.
hollow ridge
#

Allright, thank you!

deft estuary
#

let me know when you do so I could close this thread