#NearZXH
1 messages · Page 1 of 1 (latest)
It's not possible to update amount on a created price. unit_amount_decimal parameter is not in Update Price API: https://stripe.com/docs/api/prices/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.
You can only create a new Price with new amount
But i tried to update the price through the dashboard and it's success.
Hi, i need help, thank you so much
Can you share following?
- the price ID (price_xxx) that was updated in the Dashboard successfully
- the price ID with the error
- update by dashboard: req_0nTV0rYxmbWWec
- update by api(failed): req_cZ9zYcfOwIVf5N
they both tried to update the price of price_1N9MGDFkH6JK1qI15NaF8rfP
Thanks for sharing! Public API for updating the price doesn't support unit_amount_decimal. It's only supported Stripe internal requests in Dashboard
😫 So sad.
So what's the best practice for syncing the product & price between our system with Stripe
for example, my system is two csv file: product.csv & price.csv'
I'd recommend creating the new prices with new amount and keep track of the new price ID in your system
Ok, thank you so much