#wiiim
1 messages ยท Page 1 of 1 (latest)
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?
You would need to create a different Price and update the Subscription to the new Price
It's call Subsciption Update and beware of proration. More here https://stripe.com/docs/api/subscriptions/update
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
๐ taking over for my colleague. Let me know if there's any follow-up Qs I can answer!
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?