#DizzyDizz - metered plans

1 messages · Page 1 of 1 (latest)

oblique cloak
#

Good question. I am not sure if you can create an initial usage record but will look in to it

fiery ledge
#

I am stuck with this topic, cause like this it creates an invoice over 0€ at the beginning. tried alredy to change the billing_cycle_anchor, but is not really working

oblique cloak
#

Even if you add invoice items immediately after creating them, there is an invoice for 0?

fiery ledge
#

Sorry i dont unterdstand what you mean with invoice items

#

all i do is the following

#

and here i get an error if i use quantity

#

should i maybe send you the sub_id ?

oblique cloak
#

I meant subscription items, there is a similar concept I confused this with.

#

Yes please send the ID

fiery ledge
#

sub_1KWMDwAgeNa2VITfuNhudpfC

#

Right now i first need to create the subscription and as i told you update the subscription item with a usage record

#

afterwards

oblique cloak
#

Apologies for dropping off of this thread. I looked in to this but am still unsure why there is that 0 invoice. I will reach out to my colleagues and get back to you with what we can find

fiery ledge
#

thanks for your time anyways

final coyote
#

@fiery ledge if you use metered billing, the idea is that there's no "quantity", you just report usage throughout the period and it's billed at the end of the period. There's no "bill upfront" or anything like this. It feels like you're mixing up the concepts if you're trying to do that

fiery ledge
#

Hey Koopajah thanks for your reply. As written, I have an internal trial period and create a stripe customer at the end of it. And at the moment I create the customer, i create the subscription and want to add the metered usage for every subscription.

#

Example: 3xPremium, 2xMedium, 5xSmall, so i have a metered usage, and want to add it to the subscription upfront on creating

final coyote
#

yeah that's the thing, you say "metered billing" but everything you write beyond that seems to be the opposite of metered billing

#

Metered billing is for use-cases like "charging for all the minutes on a phone plan" or "charging for every email sent over a month".

#

Is that what you're trying to do? Because as that as I can tell it's not

fiery ledge
#

Something inbetween. the customers are companies and pay the amount of subscriptions for their employees. So it can be in one month they have 5xPremium and 1xMedium and in the next month 3xPremium and 4xMedium

#

and i want to charge them the amount at the end of the month

#

So in your opinion its the best for me to change the prices away from metered

final coyote
#

But if you want to charge them at the end of the month, then what is the issue with the $0 invoice then?

fiery ledge
#

that in germany all invoices need one rolling number for all customers so i would need to go through all new registered customers and download this invoice manually to send it to the tax office

#

Either i guess i need to switch away from metered usage or find a way to skip the first month invoice

final coyote
#

you can't skip the first month invoice, there's always an invoice on Subscription creation

fiery ledge
#

But i can also use stripe.subscriptionItems.createUsageRecords on not metered plans right ?

#

Thanks for your time, i dont want to bother you longer ✌️

final coyote
#

you're not bothering me I'm just trying to understand what you are trying to do

#

Unfortunately skipping the first invoice is impossible. Even if you used a trial period for example to wait for their first payment, it'd still create an invoice, there's no way around that today

fiery ledge
#

But if i would change away from metered. then i could add a quantity for every subscription item on subscription creation, if i researched it right+

#

To avoid this error : You cannot set the quantity for metered plans.\n .

final coyote
#

yes you could but it'd be charged upfront

fiery ledge
#

So the first bill would include the amount on subscription creation

final coyote
#

and you want to delay by a month

fiery ledge
#

I guess I will prefer charging upfront over manually downloading all of the 0€ invoices

#

😅

#

Have a nice day ☀️