#olli-subscription-renewal
1 messages · Page 1 of 1 (latest)
So you're just trying to get the upcoming Invoice amount for the Invoice that would be due at the end of the billing cycle? (e.g. not the Invoice that's due immediately after the update)
yep. i need the amount due today from the proration and the amount the customer will be charged monthly after the update
I believe you would need to use Test Clocks to get that information, as I can't think of a way to get past having proration and also not getting the Invoice that's created immediately upon update.
i think i misunderstood the docs. you can also just use retrieveUpcoming and just pass in subscription to get the subscription's next invoice:
stripe.invoices.retrieveUpcoming({
subscription: 'sub_1LKlFULeHISJBGkl89UbXm9m',
}).then(console.log);
thanks for the advice though
Correct, though if a credit is generated on the customer balance due to prorations, then that will not be included in the upcoming Invoice