#wiiim

1 messages ยท Page 1 of 1 (latest)

stray briarBOT
hushed patrol
#

Hey ๐Ÿ™‚
I have a subscription created with a custom unit_amount by setting the price_data
Let's say we are in the middle of the month and the current price is 10โ‚ฌ. Now I want to change the price of the subscription to 5โ‚ฌ so that the customer will pay less on the next invoice. Is something like this possible?
I tried taking the priceId of the subscription (I guess that is a custom one created by stripe?) and tried to update it by setting the currency_options[eur][unit_amount] to 500 but I get "The price was created by Stripe automatically and cannot be updated.". Is there any other way or would I have to cancel the subscription first and create a new one?

floral patio
#

You would need to create a different Price and update the Subscription to the new Price

wraith stirrup
#

๐Ÿ‘‹ taking over for my colleague. Let me know if there's any follow-up Qs I can answer!

hushed patrol
#

How would I create the price correctly? The price attached to the subscription was automatically created by stripe when creating the subscription.

When updating the price, I dont want that the user will have to pay the invoice directly. It should just be on the next invoice and then for the next and so forth. What do I need to do in order to achieve that?