Stripe - upgrade or downgrade a subscription at "period end"

Hello!

Is it possible to upgrade or downgrade a subscription at the subscription period end instead of prorating the subscription or changing it immediately? Currently, these two seem to be the only options that Stripe gives me.

I’m using the the Stripe Pricing Table, the API connector, and the Stripe Customer Portal to manage my subscriptions.

Thanks

if you are using customer portal find a way to schedule a subscription or subscription item update at the end of period.

May be this will give u a hint

$stripe->subscriptionSchedules->update(
  $subscriptionSchedule->id,
  [ 
    'end_behavior' => 'release',
    'phases' => [
      [
        'start_date' => $current_period_start,
        'end_date' => $current_period_end,
        'items' => [
          [
            'price' => $current_price_id
          ],
        ],
      ],
      [
        'start_date' => $current_period_end,
        'items' => [
          [
            'price' => $downgraded_price_id,
          ],
        ]
    ],
  ],
]

or go through this link

https://stripe.com/docs/billing/subscriptions/subscription-schedules

@karan_trivedi248
Thanks for replying. Much appreciated.

This topic was automatically closed after 70 days. New replies are no longer allowed.