#chemuturi-billing
1 messages ยท Page 1 of 1 (latest)
Thanks!
are you trying to achieve something like a metered subscription?
Metered subscription along with a flat fee on a monthly basis!
Which should be billed at the end of the month!
And I need to charge customer for an non-refundable one-time deposit amount!
that's also possible
let me guide you through that all of that
first you need to create a product with a Volume Pricing model
you could do that from your dashboard by visiting https://dashboard.stripe.com/test/products/create
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Okay, then?!
in the price information section, choose either Graduated pricing or volume pricing
then when you create a new subscription you would use that price id, and use the https://stripe.com/docs/api/subscriptions/create#create_subscription-add_invoice_items add_invoice_items to pass the one-time fee
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
But I want to charge all at the end of the month!
the one-time fee would be on your first invoice
the flat fee and the metered usage would be paid at the end of the billing period
Okay, but how can I pass the number of quantity and how can I specify to bill this at the end of billing period?!
I guess it's better to start with this guide https://stripe.com/docs/billing/subscriptions/metered
this would give you a more in depth quickstart
to answer your question though it's in this section https://stripe.com/docs/billing/subscriptions/metered#report-usage
What is the timestamp here?!
it's the timestamp of when the usage record was updated
Understood!
in other words The timestamp when this usage occurred.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
depending on your pricing model the columns would be different
to read more about that, I would suggest going through this doc https://stripe.com/docs/products-prices/pricing-models
Sorry, but I did not understand what is
Rows : "FOR THE FIRST" and "FOR THE SECOND" mean
and
Columns : "FIRST UNIT", "LAST UNIT", "PER UNIT" & "FLAT FEE" mean and I do not understand what values to pass.
If possible, can you use an example which tells how to fill values for the above?!
oh sure
e.g you could say for the first 10 units you would charge 10bucks per unit with a flat fee of 5eur
after that for the units between 11 and 50 you would charge 9bucks per unit with a flat fee of 4eur etc....
on the same doc I sent you there is an example if you want https://stripe.com/docs/products-prices/pricing-models#model-usage-based-pricing-on-stripe
I do not have any tiered requirement!
There's only one constant unit price for the metered usage and at the billing end it should have a simple multiplication with quantity!
in that case you'd have to include two prices, one as a standard pricing for the metered quantity and another standard pricing for the flat fee
and since it is metered it will automatically be postpaid
Can you access my test account and validate what ever I've done means the same you mentioned?!
have you created a subscription yet? could you please share its id?
I've not created any subscription, just created product and prices!
Product ID : prod_LtRfXXvznyslfN
My situation is :
When a user comes to my website, he'll be given a free trail of a month and then he'll be charged with a one-time payment of $1500, next he'll be charged a monthly fee of $500, and then according to his usage he'll be billed metered with a unit price of $0.25!
sorry for the delay I was still looking at your product
yes now you have to create a subscription and pass both items as line_items and the first time fee as add_invoice_items
you could really benefit from test_clocks (https://stripe.com/docs/billing/testing/test-clocks) to test your subscription and how your invoices are being generated
I'll verify, thanks!
let me know if you need any more help