#_greggles_

1 messages · Page 1 of 1 (latest)

snow lagoonBOT
#

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.

runic coral
#
$schedule = $stripe->subscriptionSchedules->create([
    'from_subscription' => $subscripton->id,
]);
$update = $stripe->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' => $jan_1_2024,
            'proration_behavior' => 'none',
            'pause_collection' => [
            'behavior' => 'void'
            ]
        ],
        [
            'items' => [
            [
                'price' => $schedule->phases[0]->items[0]->price,
                'quantity' => $schedule->phases[0]->items[0]->quantity,
            ],
            ],
            'start_date' => $schedule->phases[0]->end_date,
            'end_date' => $jan_5_2024,
            'proration_behavior' => 'none',
            'pause_collection' => [
            'behavior' => ''
            ]
        ],
        [
            'items' => [
            [
                'price' => $schedule->phases[0]->items[0]->price,
                'quantity' => $schedule->phases[0]->items[0]->quantity,
            ],
            ],
            'billing_cycle_anchor' => 'phase_start',
            'proration_behavior' => 'none'
        ],
        ],
    ]
);
serene acorn
#

Instead, you'd use a trial or free price for the "paused" phase

#

Or a 100% coupon, etc

runic coral
#

Does using a free trial generate an invoice?

#

For the trial period, I mean.

serene acorn
#

It does, yes. Both trials and free plans would create $0 invoices.

#

Well, the trial would be a single invoice for the duration of the trial

#

the free price would be recurring for each billing cycle (eg, monthly free plan would be a monthly invoice)

runic coral
#

Ugh. We really just want to unpause all paused subscriptions on January 1st behind the scenes.

#

How can I do that without generating an invoice for these existing subscriptions?

serene acorn
#

You already have paused subscriptions?

runic coral
#

Yes. We paused subscriptions during the SAG/Writer's strike. We want to unpause them now that the strike is over.

#

But we want our subscribers to get a notice plus a short period to cancel if they want, hence, January 1st.

serene acorn
#

If you want to change the billing cycle as well, you can use a schedule for that part alone, just resetting the cycle Jan 1

runic coral
#

I don't need to use a subscription schedule to set a date for the next invoice to be generated?

#

I thought resetting the billing anchor was the way to do that.

#

Sorry, I see your follow up.

serene acorn
#

If you're paused right now the simpler approach is likely to use a trial period for that, setting trial end to Jan 1 at some time, shortly after the pause resumes_at, so that the invoice generated when the trial ends gets paid as normal

runic coral
#

We want to avoid an invoice being generated at the start of the trial period. It's unecessary.

serene acorn
#

I expect it would be void as well, but i would suggest testing out a few of the options in test mdoe to see what outcome you prefer

#

Note you can use Test Clocks to manipulate time for testing