#hendr1x_api

1 messages ¡ Page 1 of 1 (latest)

ruby sluiceBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1367866261530349658

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

bleak scaffold
#

This is me trying to delete a product

ruby sluiceBOT
midnight solstice
#

Hello
What happens when you try to delete the price first? What error did you see?

bleak scaffold
#

I didn't recieve any errors when I delete the prices. Just the error above when I try to delete the product

#

unless there is a flaw in how I am deleting the prices

#

I can dig into it

#

Before I spent a few hours debugging I wanted to be sure that I can delete the product once the prices are removed?

midnight solstice
#

Yeah double check if you've successfully deleted the price. Also, Can you share the product / price IDs?

Before I spent a few hours debugging I wanted to be sure that I can delete the product once the prices are removed?
Good question. I think you can if the product/price hasn't been used for a subscription / payment

bleak scaffold
#

Well thats a pretty big if

midnight solstice
#

Ah you can only archive a price

bleak scaffold
#

what I suppose to do once they have been used?

midnight solstice
#

nvm

bleak scaffold
#

ok...yeah I see in my notes that you don't even offer an api delete price endpoint

bleak scaffold
#

so, if I mark active = false it will let me delete the prroduct

#

Everything I am doing is with the api

midnight solstice
#

Gotcha. There are no workarounds to delete a price if it's been used though. So using the API versus the dashboard doesnt' matter much

bleak scaffold
#

So the products are just stuck in the account forever?

midnight solstice
#

Unfortunately, yeah..
If this is in test mode - you can delete all test mode data to clear out the objects but in live mode that's not possible.

The reason behind this is to keep the associated object history for customers who have purchased the products you're trying to delete.

bleak scaffold
#

Ok. Thank you for your help.

midnight solstice
#

NP! Sorry for the confusion earlier as I thought you were trying to delete an unused product