#alvin_63959
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.
- alvin_63959, 1 day ago, 14 messages
- alvin-subscriptionschedule-invoice, 1 day ago, 38 messages
I am a developer and which one is the safest to downgrade a subscription? Currently I am adding a metadata to the subscription to let my application know that this is up for downgrade. Question is do I change it during invoice.created or invoice.updated?
That mostly depends on what you are trying to do...
Can you give me more details on the full scenario?
My Scenario is cx wants to downgrade a subscription and our rule is that it will be billed to a new price in the next billing period. We have also an option to cancel a downgrade process so I opted to choose in adding a metadata to the subscription so that I will just set {"downgrade_status", null}
or how do I change a subscription before an invoice is created?
Do you want to wait until the next billing period for the downgrade to occur?
Or the downgrade should be immediate and then it should bill at the next billing period with proration?
downgrade should be immediate and without proration
Okay and are you changing between Prices that have the same interval (like monthly)?
yes
Okay in that case you just want to update the Price and set proration_bheavior: none when you update: https://stripe.com/docs/api/subscriptions/update#update_subscription-proration_behavior
No real need to deal with metadata at all
Unless you want to make a note for yourself for some reason
hmm because in our application we need to retain the subscription until at the end of the period.
like my question is, how do I change a subscription before an invoice is created?
how do I check
What does:
hmm because in our application we need to retain the subscription until at the end of the period.
mean?
The Subscription will still exist
Or are you saying you want the previous Price until the end of the period
Which means it should not update immediately
Which is what I asked above
eg cx have Premium and want to downgrade to Standard plan
so in our application we will retain the Premium until the end of the period, then the next period will be the new downgraded plan which we will listen to invoice.paid
in stripe, we will already downgrade the subscription because it is not billed yet right because its proration_behavior is none.
but I have this client that wants a feature that cancels a downgrade, so I cannot change a subscription right away because we cannot revert back the subscription anymore in Stripe
Why can't you revert it back?
You just upgrade it back to the old Price if they "cancel" the downgrade
But really it is a question of whether you want it to stay on the same Price until the end of the period or not
So far you have indicated both things
can we really revert it back? Say I downgraded subscription and then in the middle of the period I suddenly wants to cancel the downgrade. Can we revert it to its original state of the subscription?
You just upgrade it back to the previous Price and set proration_behavior: none