#mehdi.dellagi
1 messages · Page 1 of 1 (latest)
hi! change the price item how exactly, what would you want to change?
Hi @boreal ridge , sorry I was not super clear. basically i want to be able to handle customer "plan upgrades" . I have a metered price item per "plan" that we offer to our customers. If a customer is on a plan1 (corresponding to metered_price_item_1) and see that their usage corresponds better to plan2 (corresponding to metered_price_item_2) and wants to upgrade in the middle of their billing cycle. What is the best way to hanlde this kind of scenario?
Removing the metered_price_item_1 from the subscription also removes all reported usage and we loose that in the customer's next invoice.
hmm, not sure, what would have to test it. What happens if you swap the plan? https://stripe.com/docs/billing/subscriptions/upgrade-downgrade#changing i.e. call the update API, with the id si_xxx of the existing item that uses plan1 and change price to plan2?
AFAIK the usage is a associated with the SubscriptionItem so it might carry over if you change the Price/Plan on the item, I don't really know without testing it and I'm a bit underwater to try and test it right now
thanks!! I'll try it out and post the findings 🙂