#piq9117
1 messages ยท Page 1 of 1 (latest)
Hello! Unfortunately the upcoming Invoice API is not supported when using Subscription Schedules, so the behavior you're seeing is expected.
We're aware of this limitation and I'll flag your interest in this working internally.
gotcha. thank you for the response
Are you still around? I've been looking into this more and what you're doing might be supported. Can you provide more details about exactly what you're doing?
Specifically I'm wondering what the date of the upcoming Invoice is set to, and what the Price ID shown in the line items is?
yeah. still around.
not sure if you can view this but the subscription id is sub_1MMxusGJhtMpdHF8nTupF6rM
i have this in the dashboard
this is the upcoming invoice from the dashboard
Ah, so you're not using the API? I don't know much about how the Dashboard generates upcoming Invoices at a granular level.
I'm using the api. but i was expecting the upcoming invoice will automatically get generated for the update
i'm using the update subscription schedule api for this
Upcoming Invoices are generated on demand when you hit the upcoming Invoice API, they aren't created ahead of time.
And the upcoming Invoice you get depends on the parameters passed to that endpoint.
i pass in customer id and subscription id for getting the upcoming invoice.
What happens if you hit the upcoming Invoice API and specify the schedule instead of the subscription? https://stripe.com/docs/api/invoices/upcoming#upcoming_invoice-schedule
Hm. I think this might be an issue with the Subscription Schedule's dates.
The end_date of the first phase of the Subscription Schedule is set to 1675275116 which is 2023-02-01T18:11:56+00:00. Can you try setting that to UTC midnight and see if that changes anything?
Ah, good!
Happy to help! Sorry about the confusion in the beginning!
all good ๐ค