#CrisScanferla

1 messages · Page 1 of 1 (latest)

dense flumeBOT
solemn zealot
#

Hi there

#

Do you have a request ID where you are seeing this error?

slow bobcat
#

At postman... I consume the prices post endpoint to insert

solemn zealot
slow bobcat
#

parameters unit_amount, currency and product

solemn zealot
#

That would be most helpful for me to be able to help you

slow bobcat
#

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"
}
}

Learn more about error codes and how to resolve them.

solemn zealot
#

That's why you are receiving this error

#

If you want to update a Price, you should create a new Price instead

slow bobcat
#

but i managed to update the value using the dashboard

#

I cant do it using the update?

solemn zealot
#

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

slow bobcat
#

OK... I´ll tell that it cant be done then

#

create a new one and inactivate the last one

solemn zealot
#

Yep that is the way to go

slow bobcat
#

thanks