#eoghanobrien_best-practices
1 messages ¡ Page 1 of 1 (latest)
đ 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.
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.
- eoghanobrien_best-practices, 1 hour ago, 4 messages
Hello
Hi
No, you can't update a Price itself once it has been used.
You would create a new Price in this case
Okay but what about changing the old price id so I can have a new price_id with the same name?
Hmm not sure I understand what you mean by that? You can't update a Price's ID, no.
so I'm screwed, I've gotta rebuild all of these
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.
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
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?
Yeah I'm sorry I really don't know what that means
pro-annual-v3-1
pro-annual-v3-1 where the 1 is a tier
we have pro-annual-v3-2 => pro-annual-v3-20
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
We really need the custom IDs though - it's old software
Hmm have you tried updating the ID?
I assume we error
But I haven't tested this myself
can I make a new price id with the same name?
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
okay, and I can't update the price_id via the API either?
If the feature is enabled and we allow this to be updated then it should be allowed via the API or Dashboard.
Can I access docs for older API versions?
Unfortunately no
Other than our changelog
That documents the different breaking changes for each API version
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?
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)
sounds good - Can I use the price id under a different product id?
were you addressing that above too
Yeah that was included in the above. I think you can, but you should test
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