#Min.K
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. 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.
Yes you can use Upcoming Invoice to simulate any changes. It will preview you the charge amount
1. let the customer know the estimated amount they will be charged when upgrading & downgrading their subscription
=> In the above case, is there an example of what parameters should be passed when calling the upcomming invoice API?
2. provide customers with an estimate of how much they will be charged when they upgrade or downgrade their subscription using the subscription scheduler.
=> In the above case, is there an example of what parameters should be passed when calling the upcomming invoice API?
Here is the API parameter you need: https://stripe.com/docs/api/invoices/upcoming#upcoming_invoice-subscription_items
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
pass the new price in subscription_items
thank you
Question 3. If i want to express a downgrade or upgrade after the current subscription cycle ends, should i pass subscription_items and also pass subscription_proration_date?
Question 4. If I already have an existing subscription and want to upgrade or downgrade it, should I pass both the subscription parameter and subscription_items?
Q3: yes if you want to simulate changes on a sepcific date. If you simulate chaging right now (current time) then you don't need to pass subscription_proration_date
Q4: Sorry what parameters are "both the subscription parameter and subscription_items"?
Q4: Sorry what parameters are "both the subscription parameter and subscription_items"?
The Retrieve an upcoming invoice API has a subscription parameter and a subscription_items parameter.
You can see
- https://stripe.com/docs/api/invoices/upcoming#upcoming_invoice-subscription
- https://stripe.com/docs/api/invoices/upcoming#upcoming_invoice-subscription_items
What I want to do is to see the upcoming invoice for an already created subscription A when I upgrade or downgrade to a different product.
When calling the API, should I put A in subscription and the product identifier that will be changed in subscription_items?
Yes correct. Please try it out in Test mode