#ilamathi
1 messages · Page 1 of 1 (latest)
When i pass this payload
{
"currency_options": {
"usd": {
"unit_amount": 599
}
}
}
Getting this error,
Error: You are specifying an update to a currency option that matches the top-level currency for this price. Please remove this currency option and update the top-level params instead.
I created price id with unit amount 499 USD... Now i want to change that to 599
👋 Hi there, Happy to help!
You can't update a price unit_amount, you probably should create new price for that.
Otherwise, for currency_options field is when you have multiple currencies for the same price, then you can update the currencies other then the root currency:
https://stripe.com/docs/api/prices/update?lang=node#update_price-currency_options
For example i have multiple subscription using this priceId... After some time, there is a change in the price..
I thought like if i update the existing price_id with the new price then all the subscription on upcoming billing cycles using this priceId will get reflect..
Is not the case?.. If so how i can tackle this?
You need to create new prices, update the affected subscriptions and informe you customer about the price changes:
https://stripe.com/docs/billing/subscriptions/upgrade-downgrade
Is this new price will reflect in the subscription immediately or in the next billing cycle?
Inform the customer means, do we need to sent mail or need to get any consent for this new price from customer? Do we have any option from stripe
it depends on the billing_cycle_anchor you'll define will updating the subscription (now or unchanged)
https://stripe.com/docs/api/subscriptions/update#update_subscription-billing_cycle_anchor
As far as I know no there isn't