#eoghanobrien_best-practices

1 messages ¡ Page 1 of 1 (latest)

dark fractalBOT
#

👋 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/1227705018816139344

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

obsidian minnowBOT
#

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

grizzled breach
#

Hello

limpid flume
#

Hi

grizzled breach
#

No, you can't update a Price itself once it has been used.

#

You would create a new Price in this case

limpid flume
#

Okay but what about changing the old price id so I can have a new price_id with the same name?

grizzled breach
#

Hmm not sure I understand what you mean by that? You can't update a Price's ID, no.

limpid flume
#

so I'm screwed, I've gotta rebuild all of these

grizzled breach
#

I'm not really sure what you are trying to do here but the way the API works is that object IDs are always immutable and Prices are immutable once used.

limpid flume
#

I've got a price_id with the wrong price but 20 prices inside a product

#

The price_id that was purchased was for a value of 499 instead of 449

#

all the other 19 price id amounts are correct

#

We depend on the price id being a certain way

grizzled breach
#

Okay so you can inactivate that current Price that is an incorrect amount and create a new one to be used that is the correct amount?

grizzled breach
limpid flume
#

pro-annual-v3-1

#

pro-annual-v3-1 where the 1 is a tier

#

we have pro-annual-v3-2 => pro-annual-v3-20

grizzled breach
#

Ah okay you have mapped to your custom IDs, which yeah we really don't recommend using custom IDs in general (we actually prevent it by default)

#

Okay I understand your issue now

limpid flume
#

We really need the custom IDs though - it's old software

grizzled breach
#

Hmm have you tried updating the ID?

#

I assume we error

#

But I haven't tested this myself

limpid flume
#

can I make a new price id with the same name?

grizzled breach
#

I don't think so, but you should test it out in test mode

#

This isn't a public feature so I'm not positive on its behavior

limpid flume
#

okay, and I can't update the price_id via the API either?

grizzled breach
#

If the feature is enabled and we allow this to be updated then it should be allowed via the API or Dashboard.

limpid flume
#

Can I access docs for older API versions?

grizzled breach
#

Unfortunately no

#

Other than our changelog

#

That documents the different breaking changes for each API version

limpid flume
#

So to recap,

Once a price_id has been used in a payment,

  • I can't update the price amount
  • I can't update the price id
  • I can't cancel/delete the payment and then delete the price id

I can archive a price and then delete the price but ultimately I can't ever use that same price id ever again.

Can I use the price id under a different product id?

grizzled breach
#

I really don't know the above for custom Price IDs

#

So you really need to test that stuff out

#

For standard Price IDs that we provide, those things are true (you can't update/delete it once used)

limpid flume
#

sounds good - Can I use the price id under a different product id?

#

were you addressing that above too

grizzled breach
#

Yeah that was included in the above. I think you can, but you should test

limpid flume
#

gotcha, thanks for your help, if I can add the price ids under a new product with the same name, I think I'm in good shape