#pradeep-g_api

1 messages ¡ Page 1 of 1 (latest)

amber elmBOT
#

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

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

hushed grail
#

Can you share the req_xxxx ID of an API request you've tried?

tender pagoda
#

1 sec let me share

#

req_g4wST8bBXBRzpV

#

have shared the the id

hushed grail
#

No, you cannot avoid this. An update like this will trigger a new billing period and a related invoice

#

What is it you're trying to do exactly?

tender pagoda
#

upgrading monthly plan to annual plan

#

doc syas it will be generated immediatley , if it cannot be avoided i need to retweak existing code algo, just wanted to confirm on discord

hushed grail
#

You need to explain clearly what is unexpected and how you want this to behave. Do you want to upgrade on a specific date? At the end of the current period?

tender pagoda
#

existing code is charging via payment intent for upgrade and since new invoice is generated for monthly to annual and not generated for upgrade of plan within monthly period , user is charged twice, so i need to tweak the algo , based on stripe behaviour

hushed grail
#

Sorry I don't understand what you mean

tender pagoda
#

np, i got the answer

#

i am clear

#

thanks for your help , i appreciate it

#

basically existing code algorithm is not flexible for monthly to annual , designed poorly without taking advantage of stripe apis out of the box features, just wanted to confirm my understanding of stripe docs wrt upgrade of subscription from monthly to yearly, hope it makes sense to you

hushed grail
#

But your API call to upgrade did work? We generated a new subscription to reflect the payment for the new plan effective immediately

#

You haven't described what it is that is unexpected

tender pagoda
#

yes it worked , because of our bad algo it charged user twice for upgrade one via payment intent and another via invoice webhook

hushed grail
#

OK, so your issue is resolved?

tender pagoda
#

yes resolved