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

**URL:** <https://forum.bubble.io/t/stripe-upgrade-or-downgrade-a-subscription-at-period-end/281522>\
**Category:** Need help\
**Created:** [September 5, 2023, 7:23am UTC](https://forum.bubble.io/t/stripe-upgrade-or-downgrade-a-subscription-at-period-end/281522 "2023-09-05T07:23:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jacob15](https://avatars.discourse-cdn.com/v4/letter/j/f17d59/32.png) [@jacob15](https://forum.bubble.io/u/jacob15)\
**Post date:** [September 5, 2023, 7:23am UTC](https://forum.bubble.io/t/stripe-upgrade-or-downgrade-a-subscription-at-period-end/281522/1 "2023-09-05T07:23:58Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![karan\_trivedi248](https://avatars.discourse-cdn.com/v4/letter/k/b4bc9f/32.png) [@karan\_trivedi248](https://forum.bubble.io/u/karan_trivedi248)\
**Post date:** [September 5, 2023, 1:50pm UTC](https://forum.bubble.io/t/stripe-upgrade-or-downgrade-a-subscription-at-period-end/281522/2 "2023-09-05T13:50:16Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![karan\_trivedi248](https://avatars.discourse-cdn.com/v4/letter/k/b4bc9f/32.png) [@karan\_trivedi248](https://forum.bubble.io/u/karan_trivedi248)\
**Post date:** [September 5, 2023, 1:52pm UTC](https://forum.bubble.io/t/stripe-upgrade-or-downgrade-a-subscription-at-period-end/281522/3 "2023-09-05T13:52:56Z")

</div>

May be this will give u a hint

```auto
$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
```

---

<div class="post-metadata">

**Author:** ![jacob15](https://avatars.discourse-cdn.com/v4/letter/j/f17d59/32.png) [@jacob15](https://forum.bubble.io/u/jacob15)\
**Post date:** [September 6, 2023, 4:18am UTC](https://forum.bubble.io/t/stripe-upgrade-or-downgrade-a-subscription-at-period-end/281522/4 "2023-09-06T04:18:08Z")

</div>

@karan_trivedi248  
Thanks for replying. Much appreciated.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/bubble/original/3X/2/8/2847faa74692c2ffa5d939d3dc3724cdd060d247.png) [@system](https://forum.bubble.io/u/system)\
**Post date:** [November 14, 2023, 7:24am UTC](https://forum.bubble.io/t/stripe-upgrade-or-downgrade-a-subscription-at-period-end/281522/5 "2023-11-14T07:24:34Z")

</div>

Closed on November 14, 2023, 7:24am UTC

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