#staleriver
1 messages · Page 1 of 1 (latest)
Hello! I thought they would be included... can you try specifying their IDs in invoice_items.invoiceitem? https://stripe.com/docs/api/invoices/upcoming#upcoming_invoice-invoice_items-invoiceitem
Also wondering if you're specifying the customer when calling the upcoming Invoice endpoint?
The fields I'm using are customer, subscription, subscription_proration_behavior, and subscription_items.
I'll take a look at invoice_items.invoiceitem.
But for what it's worth, when I use the Stripe dashboard to preview the change with the "Charge proration amount immediately" selected, I get the same result - i.e. existing pending items are not included.
Interesting. Can you give me the ID of the Subscription so we can take a look?
Thank you, checking in to that subscription
Still looking in to this, not seeing an immediately obvious reason that this should be happening. Trying to repro myself
Thank you!
Apologies for the delay, I was having trouble reproducing this and have pulled in a colleague for help
Ok no worries. Thank you for looking into this.
Hey so we got to the bottom of it and unfortunately it looks like this is expected behavior at the moment. If you upgrade a subscription with create_prorations (generating invoice items} and then again with always_invoice, the pending items from the prior upgrade will remain and not go on the new invoice. To use those invoice items I think you will have to manually create a new one-off invoice for them
Got it. Thanks!