#hlib.omelchenko
1 messages ยท Page 1 of 1 (latest)
๐ happy to help
I'm not sure honestly how subscription schedules would affect the upcoming invoice
I'm taking a look, please bear with me
do you have a request ID where you tried that with a subscription schedule? https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
and would you mind pasting the response you get as well
Hi there ๐ jumping in as my teammate needs to step away soon, I'm working on catching up on the context here.
Just making sure I'm understanding correctly. You have a Subscription, that is being controlled by a Subscription Schedule. When you try to retrieve the upcoming invoice for that Subscription, including a quantity that you wanted to use to override the existing quantity on the Subscription, you see the Invoice based on the future changes that the Subscription Schedule will make instead?
Yes
If I have quantity set to 3 in scheduled subscription, and try to receive invoice for quantity of 5, then anyway I will receive invoice for quantity of 3 that set in scheduled instead of 5 that I pass
My take on the scenario so far, is that the behavior you're seeing is likely expected. When you retrieve an upcoming we generate a preview of the next Invoice for the Customer or Subscription, and return that in the response. You didn't change any of the timing of the Subscription in your request to generate a preview Invoice, so the next Invoice that would be generated would be the one after the phase change of your Subscription Schedule. That phase change would overwrite any updates you made to the quantity now, which is why I'm thinking logically it makes sense for the endpoint to respond the way it did. I'm still chatting with teammates about this though.
In the meantime, I think your idea of updating the Subscription Schedule, retrieving the upcoming Invoice, then reverting the change is a good approach to accomplish what you're after for now.