#karina_6458

1 messages · Page 1 of 1 (latest)

eager sunBOT
steel grove
#

Hi there.Can you explain what you're trying to do what what the strange behaviour is?

proud tree
#

the next phase includes usage based billing as well as a normal plan, but the next invoice doesn't show the normal plan

steel grove
#

OK thanks, taking a look

#

the next invoice doesn't show the normal plan
How exactly are you looking at this? Are you looking in the Dashboard or using the Upcoming Invoice API?

proud tree
#

Stripe dashboard

#

I just tried via the API as well and it appears to also only return 1 line

#

Is it because i am changing the Usage based billing plan on the next phase? so when the schedule ticks over 2 invoices will be generated? the first would be for the old UBB pricing, and then a second for the normal plan pricing?

steel grove
#

RIght, I'm looking at this and wondering whether the next invoice beyond that one will include both

#

and that the current next invoice is the usage portion of the current phase/price

#

Let me try setting up something similar without a schedule first

proud tree
#

Perhaps related, would there be a way to "flush" the existing usage on the old price so that i can make the UBB price change immediately so that i don't have to mess with schedules

steel grove
#

Ok, so a couple things I've learned/confirmed in testing

#

1/ without the schedule, the upcoming invoice include the licensed item as expected for the following month, to be billed with the usage from the current month

#

2/ with a schedule, i see the same upcoming invoice as you, just the metered item

#

I'm going to fast forward my test clock and see what actually happens

proud tree
#

any luck?

#

do 2 invoices get generated 😬

steel grove
#

Yes i do, which seems suboptimal. Going to chat with the team about that, but at minimum it does invoice for all the expected things, overall.

#

Ok, seems this is expected because we need to close of the usage from the old phase before we can switch the prices and invoice for the licensed price of the new phase (the usage would come at the end of the period)

#

So its an artifact of having mixed usage types and a phase change

#

As for your orther questions about making the change immediate and changing the plan, can you say more about how you'd expect that to behave?

proud tree
#

Ok so imagine there is a metered plan at 1 dollar per use. it has already accumulated 20 usages.

#

now, mid cycle, the user wants to upgrade to the metered plan that now costs 2 dollars per use.

#

how can i charge them for the $20 dollars first and then upgrade them?

#

currently via the Stripe dashboard, it tells me that i will wipe out the unbilled usage. and via the api, attempting to change the SubscriptionItem directly, it updates successfully but now the new price is applied to the existing usage and now the user owes me $40

steel grove
#

Yea switching metered prices is a bit painful currently, we recommend creating a new item for the new metered price and moving new usage there

#

then after the usage is billed end of month you delete the old item

#

We're working on a new model for making this easier, and I know you're a fairly advanced user of our APIs

#

Perhaps poking at that beta would be of interest?

proud tree
#

what are the timelines for that beta?

steel grove
proud tree
#

awesome! thanks!