#thirddiamond_api
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/1280982377606283314
đ 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.
- thirddiamond_api, 7 hours ago, 16 messages
Hello
Hello
You want to use the Retrieve Upcoming Invoice endpoint and pass in discounts.promotion_code: https://docs.stripe.com/api/invoices/upcoming#upcoming_invoice-discounts-promotion_code
I want to see what be price of my future payment after applying code. i am using stripe element
So i have current subscription fo 29$ no want to upgrad it to 59$ but before upgrade i am asking user to add promo code now i want final price before upgrading to show user. how can i get final price before upgrading?
But when i am going monthly to yearly it's giving error
You would use the endpoint I indicated above to get a preview to be able to show your user
And if you are seeing an error I would need specific details about the error. The easiest thing to do is to share the request ID for the error
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
here is url
The request ID looks like req_xxxx
Thanks, looking
I am upgrading monthely to yearly
The error is pretty self-explanatory, no? You need to include the Subscription Item ID in your request: https://docs.stripe.com/api/invoices/upcoming#upcoming_invoice-subscription_items-id
Otherwise it is interpreted as you trying to add another Price
Not update the current one