#staleriver

1 messages · Page 1 of 1 (latest)

sage ospreyBOT
honest nexus
#

Also wondering if you're specifying the customer when calling the upcoming Invoice endpoint?

keen vine
#

The fields I'm using are customer, subscription, subscription_proration_behavior, and subscription_items.

#

I'll take a look at invoice_items.invoiceitem.

sage ospreyBOT
keen vine
#

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.

honest nexus
#

Interesting. Can you give me the ID of the Subscription so we can take a look?

rancid oracle
#

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

keen vine
#

Thank you!

rancid oracle
#

Apologies for the delay, I was having trouble reproducing this and have pulled in a colleague for help

keen vine
#

Ok no worries. Thank you for looking into this.

rancid oracle
#

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

keen vine
#

Got it. Thanks!