#olli-subscription-renewal

1 messages · Page 1 of 1 (latest)

vast idol
#

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)

true scarab
#

yep. i need the amount due today from the proration and the amount the customer will be charged monthly after the update

vast idol
true scarab
#

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

vast idol
#

Correct, though if a credit is generated on the customer balance due to prorations, then that will not be included in the upcoming Invoice