#Andres2792

1 messages ยท Page 1 of 1 (latest)

nocturne windBOT
raven ginkgo
#

Hi ๐Ÿ‘‹

There are very few things you can update about a price

#

What are you trying to do?

azure lance
#

Hello mate!

#

To update a price object unit amount

raven ginkgo
#

Nope, can't do it

#

Gotta make a new one

azure lance
#

Ouchie but I can vรญa Dashboard if unused

#

But I can't either delete it :/

raven ginkgo
#

Well the Dashboard does some things under the hood that are not directly enabled in the API.

azure lance
#

Oh lort hahaha

raven ginkgo
#

You can set active to true

azure lance
#

So archieve is the only exit here?

raven ginkgo
#

Sorry, false

#

Yes that's the only clear resolution path using the API

azure lance
#

So only delete also via Dashboard if unused n?

#

Ouchie may I know why can't this be also done via public endpoints or public API?

raven ginkgo
#

Because it isn't exposed as an option. Unfortunately that's as far as I know for certain.

#

It should be better documented though and I can file that feedback

azure lance
#

Dang well would be great to have this documented ๐Ÿ™‚

#

Just one last question if you don't mind if I messed it up with the alternative currency it can be also edited via Dashboard if unused?

#

Or can it be done via API?

raven ginkgo
#

What do you mean alternative currency? Could you describe the scenario in a bit more detail?

azure lance
#

Well I created an Usd price and added a currency option let's say in Eur

#

But a wrong amount too

#

Can I edit that currency option. Or rip?

raven ginkgo
#

If you take a look at our API reference doc it will list the documented parameters (even if it doesn't tell you a whole lot about what they do)

azure lance
#

Well I asked because I just tried and it told me I'm trying to edit an immutable field

raven ginkgo
#

Do you have that request ID?

azure lance
#

Oof, req_7zi1aDRkY3uqxU

#

Oops sorry wrong one

#

req_wQ2BIreR2Q1uYw

raven ginkgo
#

Thanks! looking

azure lance
#

Than you for your help here mate :). Am I doing something wrong there?

raven ginkgo
#

I'm a little confused here myself.

azure lance
#

Lmfao ๐Ÿ™‚ so we are two now

raven ginkgo
#

Okay no it looks like, once that is set it cannot be changed

#

That needs to be documented!

#

I mean, I get it. It's like the same as changing the unit amount. But it should be spelled out clearly

azure lance
#

Well I found something related but I was really shocked cuz prices amount updates can be done (not for currency options) via Dashboard regardless of what is displayed on docs

raven ginkgo
#

Yeah, I am not a fan of this divergence

azure lance
#

Yeah im really confused for sure lol

raven ginkgo
#

But I think it's because the API cannot do the check the Dashboard does (if the price has been used or not)

azure lance
#

Could be but that would be good info for us devs

#

Cuz I was hoping to find solutions let's say for mistakes when creating prices

#

And I think giving access to Dashboard is not good idea lolz

raven ginkgo
#

For sure, I agree.

azure lance
#

But can't be deleted either updated.... What a nice wall I found lmfao

#

Well @raven ginkgo really appreciate your time and help here ๐Ÿ™‚ hope the team clearly document this or give us access ๐Ÿ˜‰

raven ginkgo
#

I've filed a couple of feature requests to update the docs based on this conversation. Hopefully we can get some clarity

azure lance
#

Sweet, awesome help here mate ๐Ÿ™‚