#_greggles_
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.
- greggles, 23 hours ago, 21 messages
- greggles-subscription-bca, 1 day ago, 10 messages
$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'
],
],
]
);
Subscription schedule phases don't support pause_collection: https://stripe.com/docs/api/subscription_schedules/create#create_subscription_schedule-phases
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Instead, you'd use a trial or free price for the "paused" phase
Or a 100% coupon, etc
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)
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?
You already have paused subscriptions?
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.
So for that, you should be able to set resume_at for an appropriate date: https://stripe.com/docs/api/subscriptions/update?lang=curl#update_subscription-pause_collection-resumes_at
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
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
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.
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
We want to avoid an invoice being generated at the start of the trial period. It's unecessary.