#NEWJOSSY
1 messages · Page 1 of 1 (latest)
Hi! Let me help you with this.
Hello)
You can preview an upcoming invoice with any updates that you need: https://stripe.com/docs/api/invoices/upcoming
Thanks, but it seems that prorations for subscriptions are not applied to upcoming invoice. Let me explain more detailed what I mean
When we upgrade subscription of the customer we use ProrationBehavior = "always_invoice" so customer will not pay for unused days of subscription. I thought that it would work the same way for Upcoming Invoice, because this it has also SubscriptionProrationBehavior = "always_invoice", but I see in response full price of Subscription
Could you please share the Subscription ID?
And the Request ID for the upcoming invoice?
Sure
req_Oz7fmyhO9sRCcP - I assume this is request for Upcoming Invoice cause it has "subscription_proration_behavior": "always_invoice",
SubscriptionId = sub_1MzKePKwhjmH7xPxCQBMolP1
We don't store GET responses unfortunately, do you mind sharing the response you got?
This is response I got now, but not for affected user. Look at Subtotal and SubtotalExcludingTax
Thanks for the example response. Checking in to it and will get back to you
Can you also try passing subscription="sub_1MzKePKwhjmH7xPxCQBMolP1"? I think the issue may be that you are not telling the call which subscription is being updated so it assumes you are previewing a new subscription
Great to hear!