#manuel_preview-invoice-generation
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1413236754273538179
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi ๐
The create_preview() method is the recommended approach to generate the next Invoice. You can also use it to simulate the impacts of changes to the Subscription.
But if all you want is the estimated value of the next invoice for a specific Subscription, you can just pass the subscription parameter here: https://docs.stripe.com/api/invoices/create_preview
This will capture the expected amounts to be charged at the next billing cycle based on the current state of the Subscription.
Any modifications you might make between when you generate this preview and the next billing cycle would not be included unless you provided that information when creating the Preview
Happy to shed what ๐ก I can ๐
๐ซก