#CrisScanferla
1 messages · Page 1 of 1 (latest)
https://support.stripe.com/questions/finding-the-id-for-an-api-request discusses how to find the request ID
parameters unit_amount, currency and product
That would be most helpful for me to be able to help you
and get the ID of the price at json response
then i simply put the id in the same post endpoint to reach update
with the same parameters
and I have the response
{
"error": {
"code": "parameter_unknown",
"doc_url": "https://stripe.com/docs/error-codes/parameter-unknown",
"message": "Received unknown parameters: unit_amount, product, currency",
"param": "unit_amount",
"request_log_url": "https://dashboard.stripe.com/test/logs/req_iKe3bPxJuaMceH?t=1681389278",
"type": "invalid_request_error"
}
}
Okay so overall you don't really update Prices. There are only several parameters that we support for updating a Price. See: https://stripe.com/docs/api/prices/update
That's why you are receiving this error
If you want to update a Price, you should create a new Price instead
but i managed to update the value using the dashboard
I cant do it using the update?
Yes that is Dashboard-only and you can only do it if the Price hasn't actually been used yet.
Overall we don't recommend updating Prices. You should create a new one instead
OK... I´ll tell that it cant be done then
create a new one and inactivate the last one
Yep that is the way to go
thanks