#fabricio1970mata

1 messages · Page 1 of 1 (latest)

unreal elmBOT
reef rock
#

Hello

unreal elmBOT
reef rock
#

Can you provide the actual ID (req_xxxxx) instead of the screenshot as well @finite shadow

stark pier
#

You can find that in the request-id response header

finite shadow
#

I registered a product via API and want to change the price but I can't? Would you have any example of how to pass the parameter via postman?

stark pier
#

What are you trying to do with this price?

#

The error suggests you're passing currency options for the top level price, which isn't supported

finite shadow
#

to alter

stark pier
#

Change the amount on an existing price?

#

If so, that is not supported. You need to create a new price.

finite shadow
#

So far I understand but I don't know how to proceed because I created a single price when registering the product via API, now I want to change the price via API, would you be able to help me on how to proceed?

#

If you create a new price, does it overwrite the old one?

stark pier
#

YOu need to create a new Price for the same Product

#

Price amounts cannot be changed

finite shadow
#

I managed to create it but now it has 2 prices, I just want it to be 1, how can I do it via api?

#

not inactive

stark pier
#

Yes that's expected

finite shadow
#

yes but it won't let me deactivate the other price

#

default price not altered ?

stark pier
#

What are you trying to do that is not working?

#

Please share specific request IDs so I can see what you're trying to do

#

eg req_123

#

then archive the old price

finite shadow
#

Here's the thing, I'm new, I don't know how to use the Stripe API, so I'm having difficulty, so I created a product via the API using a default price.

stark pier
#

Ok, that created a price automatically under the hood

#

But you should be able to update it

#

It sounds like you might prefer to use the dashboard for managing this if you're not comfortable with the API

finite shadow
#

The product was created with an ok price but this default price that was created in the product cannot be changed via the API?

stark pier
finite shadow
#

That's what I don't want because there will be more than 10000 products I need to change via api

stark pier
#

Sure, then use the API to update this

finite shadow
#

I'm not able to do this via API, would you have an example with Postman?

stark pier
#

I'm not sure what you mean. Postman is making API requests.

#
curl --request POST \
  --url https://api.stripe.com/v1/products/prod_123 \
  -u sk_test_123: \
  --data default_price=price_456
finite shadow
#

this default price is changed in product or prices

stark pier
#

on the product

finite shadow
#

what parameter to change the price because it doesn't work

stark pier
#

You seem to be retrying with various parameter guesses, but you can refer to the docs

#

You need only default_price -- remove the second parameter

stark pier
finite shadow
#

yes I did this in postman but it doesn't work look at the image above

#

Would you have an example using postman?

stark pier
#

What do you mean? You did not try this, you sent additional parameters

stark pier
finite shadow
#

usando assim não dá erro mas não conssigo alterar o preco

#

Using it like this doesn't give an error but I can't change the price

stark pier
#

Correct, you cannot change the amount on an existing Price

unreal elmBOT
stark pier
#

I said this earlier

#

You create a new price with the new amount, then set that new price as the product default price

finite shadow
#

which parameter do I use to define that this new price is the default, if it is active, it does not work for prices created together with the product.

cold light
finite shadow
#

beauty worked, that's right, thank you.