#shivam_kumar

1 messages · Page 1 of 1 (latest)

ripe etherBOT
winged egret
#

hi, you don't, you create a new Price instead. Prices are immutable by design.

midnight kernel
#

Ok

#

But In stripe dashboard we can update subscription amount.

#

Can we do same thing using Api?

winged egret
#

the dashboard lets you change the Price amount if the Price hasn't been used yet anywhere

#

the API does not allow that, it's a special Dashboard thing

#

what are you overall trying to do?

midnight kernel
#

I am working on subscription feature for my website I want admin can create a product , and update any time, But when I try to update price then I got error.

winged egret
#

well then as I said you can't change a Price after it's created

#

so maybe you want to build the Admin section so that you don't actually create the Price in the Stripe API until the user has decided on the final amount on the frontend

midnight kernel
winged egret
#

not sure what you mean.

midnight kernel
#

My mean is, can we use same price id for multiple users