#Reuben
1 messages · Page 1 of 1 (latest)
hello! https://stripe.com/docs/api/invoices/upcoming - this is probably what you're looking for!
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Thanks Alex. I'm not sure if that is exactly what I'm looking for though. I need to be able to see a 'preview' of a change that is not been made yet. For example: Let's say I have a subscription that is tied to Product P. And a customer would like to change to Product Q mid way through their billing cycle. I'd like to provide them with a 'preview' of how much Q will cost them for the remaining part of their billing period before they accept the change.
If I understand the upcoming invoice API correctly, this will only show me details on a future invoice for subscription details that are already active?
oh wait.. I'm eating my words a bit. I'm re-reading what you sent and I can see now there is some preview aspects to this
I'll take a deeper dive!
sure! let me know if you have additional questions
ok, one additional question -- how would I create an unstarted subscription schedule to use with the upcoming invoice API?
hrm, i don't think subscription schedules work very well with upcoming invoice, but let me check on that and get back to you in a few minutes
thank you -- it does say it takes a parameter of an 'unstarted schedule' here. https://stripe.com/docs/api/invoices/upcoming#upcoming_invoice-schedule
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
but I'm unclear how to create an unstarted schedule in the first place. Is it that you can just create a schedule without a start_date?