#alalva_api

1 messages ยท Page 1 of 1 (latest)

robust blazeBOT
#

๐Ÿ‘‹ 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/1268952645062889543

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

fervent skyBOT
#

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.

torpid pilot
#

Hi ๐Ÿ‘‹ offhand the value you're passing to the price field doesn't look like the ID of a Price object, those typically have a price_ prefix on them. I'm taking a closer look though.

#

Yeah, that doesn't look like it's an ID for a Price object in your account. Can you elaborate on where you're getting that value from, or what Price you're trying to switch the Subscription Item to?

cyan echo
#

I am creating a new plan using (create a plan) api call and saving that id to the database. Once the user wants to confirm the plan they click on a button and i retrieve the id i saved. But i'm assuming that i'm more than likely not getting the correct price id to this create a plan?

#

here is a snip of the id i am putting from the dashboard (this is the plan i created) this price is from a product that has multiple prices.

#

here is a snip of my product catalog that has the product and within the product i have multiple prices.

torpid pilot
#

Hm, I wasn't quickly spotting that ID in that account, let me take another look.

#

Did you only recently begin to see this error when trying to update Subscription Items this way? Were requests like this successful before?

cyan echo
#

i created one yesterday successfully and didn't get an issue until today.

robust blazeBOT
torpid pilot
#

Gotcha, thank you for that clarification. I'll look for one in your logs, but if you can happen to have an example of a request that succeeded previously, that would be very helpful as well.

cyan echo
#

looking now

#

not 100% sure but it might be this one req_rLLinjkqsRgEv1

torpid pilot
#

Are you sure C-H6TB7VOGC is a Price in your account? I didn't see it anywhere in the list of Prices for the Product you shared in your screenshot (I stepped through all 63).

cyan echo
#

I just noticed that also, i think i know now what the issue is. I have a delete a plan 2 steps before Update a subscription and Update a subscription item, i strongly believe that its that what cause the issue and deleted that from my dashboard.

#

Let me try removing that call, that call was to delete old plans. Thank you for your help!

torpid pilot
#

Any time! Glad we were able to get to the bottom of that!

cyan echo
#

๐Ÿ™Œ