#alalva_api

1 messages ยท Page 1 of 1 (latest)

zinc tangleBOT
#

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

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

tired escarpBOT
#

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.

round lotus
#

Hi there ๐Ÿ‘‹ previewing an upcoming Invoice is expected to return just that, a preview of the next Invoice. Customers paying for past Invoices is not expected to impact what you see in the preview.

Can you tell me more about what you're referring to when you say "In this case customer paid $50 for a subscription yesterday", and why you're expecting that to impact the amount of the customer's next Invoice for this Subscription?

hexed cape
#

my example is a customer paid $50 for the subscription and now they want to upgrade to a more expensive plan (the next plan up is $500) I want the user to see what the proration amount is so they know how much more they will be paying. If i can to continue and pay for this new membership the proration amount is going to deduct more than just $50 therefore this tells me that something is wrong. i"m not sure if I am just missing something on my call or why there is no proration amount showing.

round lotus
#

You are missing pieces in your request then. You're passing proration_behavior and proration_date, but you aren't passing any supporting parameters including the changes you want to make to preview the prorations for those changes.

I think what you're missing still, is the subscription_details.items array:
https://docs.stripe.com/api/invoices/upcoming#upcoming_invoice-subscription_details-items
It sounds like you'll want to include one item in that array, where id matches the ID of the Subscription Item currently in the Subscription, and price is the ID of the new Price that the customer is considering upgrading to.

hexed cape
#

oh god. let me read this. Thank you