#steve_alex12
1 messages · Page 1 of 1 (latest)
hi, you should be able to use the Upcoming Invoice API to preview what proration would be for a given update : https://stripe.com/docs/billing/subscriptions/prorations#preview-proration
https://stripe.com/docs/api/invoices/upcoming
I am using this API
But my questions is more specific, can I see how much stripe has prorated the upgrade subscription by?
or will I have to calculate this myself downstream
not sure what you mean. The prorated amount is returned, it's one of the items in the upcoming invoice, the ones that have proration:true set
if I prorate the subscription on day 21, does stripe return (10/31 * upgrade plan price) anywhere? At
that would be theamountof theitemin the upcoming invoice that has the description "Remaining time on 'Upgraded plan name'" for instance.