#arrowcircle
1 messages · Page 1 of 1 (latest)
Invoice id in_1No0aXCchCXkAqXgNLROO95J
Well I'd guess the initial invoice was for $0 as there was either a trial or a discount applied
Ah, usage based. So this is expected
We invoice for metered/usage based items at the end of the period
Unfortunately the initial $0 invoice is unavoidable in this scenario. However they're not sent to customers automatically
but how to deal with this?
How to deal with what exactly?
because I have a flat pack, that should be charged as a pack price
I'm afraid I don't know what that means
You mean the flat fee?
We don't bill for those upfront, they're on the same Invoice as the usage items at the end of the perod
But with the same 0 usage next invoice preview shows proper price
Yes, because the next invoice at the end of the current period will include the flat fee regardless of whether you report any usage. This is jsut how metered billing works
and is it possible to include this payment into first invoice?
Kind of, but this is the only time you'd see an invoice at the start of the period
i.e. at the start of the Subscription
Every other period there'd only be an invoice at the end
I mean idea is to charge user for the next month of plan package and all the overusage for previous month
And when I activate the subscription it should charge user immediately or with small delay
how can i implement this?
You'd need to manually add an invoice item to the initial invoice
Did I setup products and prices properly? Because each payment includes payment for the next month and for previous month overusage
That would depends on how you want to model your pricing/business in Stripe. What exactly are you building?
So, I want to have three tiers of pricing with included metered products. Lets it be Starter, Plus and Pro. There are 3 products: Storage, translation and transcribe. Each tier have included pack for each product + ability to overuse. Overuse price for each tier is different.
Subscription will have all 3 producs included with different prices attached depending on tier
subscription id to have a better look sub_1No0aXCchCXkAqXgUouUQtT6
By 'pack', you mean some predefined usage quota that is included for a flat fee with Stripe?
exactly
And then any usage over that quote you just report to Stripe as regular usage?
Idea is to report all the usage to the stripe
otherwise I will need to implement billing on my side as well
But you want to charge the flat fee upfront, and the usage separately?
ideally in one payment
But they are in one invoice/payment, and the end of the billing period
so how can I set it up properly?
From everything you've described above, it is set up correctly
but it does not charge initial flat fee on subscription
Yep, and that's not possible when using usage based pricing as I've explained
and how can I set it up with different approaches?
should I create 2 subscriptions?
That is one options yes. Obviously means more overhead for you and separate invoices for the flat amount and overusage
what are other options?
Thinking..
If you want to bill the flat fee upfront every month, then there's no way to consolidate that and the overusage into a single invoice/payment. They're going to need to be separate
oh..
One alternative would be to bill the flat fee as a manual invoice item on the Subscription via https://stripe.com/docs/api/invoiceitems/create#create_invoiceitem-subscription
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
what would be better and reliable way?
Not use our usage billing and handle it manually. That's the only real way to get the behaviour you want
so 2 subscriptions with 6productprice vs 3prooductprice + 1 manual invoice item?
Why would you need the invoice item with 2 Subscriptions?
to handle flat payment for next period and overusage for previous
Those would be handled by the Subscriptions
I think you need to take a step back and understand how our pricing models work (https://stripe.com/docs/products-prices/pricing-models) and figure out which best fits your requirements and system
Then try some things with a test clock so you can advance the time to test various scenarios
Then you'll need to adapt by trying some of the workarounds I've mentioned
but what do you think, will it be easier and reliable to add manual item for the first invoice or go for two subscriptions (one for flat and one for overusage)?
Well as I explained the issue with the manual item is in any future billing period there won't be an invoice at the start of the period
but as I understood, it will be required on the initial invoice, that is 0 right now?
Which is why I suggested this (#1149631646618894367 message), pkus controlling the interval at which we bill for them: https://stripe.com/docs/api/subscriptions/object#subscription_object-pending_invoice_item_interval
Discord is the easiest way to communicate over voice, video, and text. Chat, hang out, and stay close with your friends and communities.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Yes, but only at the start of the Subscription. There won't be a $0 invoice at the start of subsequent billing periods
You need to just try some stuff with the API
ok, thanks a lot! sorry for dumb questions