#mr_pablo-prices

1 messages ยท Page 1 of 1 (latest)

quiet moss
#

๐Ÿ‘‹ happy to help

marble ether
#

You need to have a retrieved object first

#

for example
Price a = Priece.retrieve({priceId})
a.delete

civic flax
#

there is no "delete" operation for prices in the JS SDK...

#

Or in the API docs...

#

@quiet moss ?

quiet moss
#

yes unfortunately there is no delete operation possible via the API

civic flax
#

you might want to fix this message then, "Deleting a product is only possible if it has no prices associated with it. "

marble ether
#

mmm

quiet moss
#

you could only delete the price via the dashboard

marble ether
#

you can try stripe.price.del

#

??

civic flax
#

@marble ether read what Tarzan just said ๐Ÿ˜‰

marble ether
#

Ohhh, sorry!!

civic flax
quiet moss
#

the Rest API Delete /v1/prices/{price_id} doesn't exist

civic flax
#

Any idea why? And if its going to be implemented?

#

Seems like a huge oversight

quiet moss
#

to be honest no, but I could follow-up on this after my shift ends

civic flax
#

๐Ÿ‘

#

So my only option really is to just deactivate the price for now?

quiet moss
#

you could delete it from the dashboard

civic flax
#

There is a reason I'm asking about the API ๐Ÿ˜‰

quiet moss
#

you could always ask for a developer user from your customer/hierarchy

civic flax
#

What do you mean sorry?

quiet moss
#

sorry my bad, I should have been more explicit, we have several roles of users in the dashboard with different levels of access

#

you could ask for a user on the dashboard with the role of "developer"

#

are your prices recurring? or one-time?

civic flax
#

how does a different role enable me to delete a price when there is no delete endpoint?

#

Prices might be both types

quiet moss
#

@devout palm

#

how does a different role enable me to delete a price when there is no delete endpoint?
I meant on the dashboard not on the API

civic flax
#

Again, there is a reason I'm asking specifically about the API ๐Ÿ™‚

#

IE I am using the API, and not the dashboard

devout palm
#

Delete endpoint should be added

devout palm
quiet moss
#

I'm really going to follow-up on this today with the internal team

devout palm
#

When can you tell like if the Price Delete API Endpoint is going to be implemented or not

quiet moss
#

I would suggest you write to support https://support.stripe.com/?contact=true so I could get back to you with a more detailed answer later on

quiet moss
#

have you written to support yet? you could mention my discord handle tarzan so I could locate your request

civic flax
#

I have not. I might get around to it, but I'm quite busy currently