You can not modify the price of a
Price in the API. This is not something that is supported as there’s no corresponding parameter on the API.
If you want to change the amount associated with a
Price, you would create a new
Price object and start using it instead. You could also make the old one inactive for example.
Another powerful feature of Stripe’s API is the
Price (doc). This lets you define a custom alias for your Price in your code. That way instead of hardcoding the price id
price_123 in your code and having to update it to use
price_abcd, you can transfer the old lookup key from the old price to the new one and have your code seamlessly start using the new one automatically. The idea is that you either cache the Price id associated with a lookup key based on webhooks for example or use the List Prices API and the
lookup_keys parameter to quickly find the latest price id associated with a given lookup key!
CLICK HERE to find out more related problems solutions.