#scidroid
1 messages · Page 1 of 1 (latest)
Hello! Have a look at quantities: https://stripe.com/docs/billing/subscriptions/quantities
Would that work for your use case?
yeah, what is a good approach? i was thinking of creating a subscription with 1 user and the end of the billing period charge for all the users that where active during that period, that’s ok? or you suggest other approach?
To clarify, you're asking about a single Customer who's subscribed to your service, and that Customer can have multiple users, and you want to charge per user?
So if I'm your Customer, and I have 10 users, you want to charge me $50 for my Subscription payment?
basically you create a “master” account
and the master account manage a tenant
you can add as many user as you want to your tenant
and for every user we charge 5 dollars including the master account as a user
so if i have 10 users in my tenant, i will charge the master account with 55 dollars
Okay, so you can have a Product for tenants, and a Price set up for $5/month, and then create a Subscription with that Price and a quantity of 11.
yeah basically a setup price of 5 dollars, and an every extra seat costs another 5 dollars
but the thing is
you can add and delete seats as needed
Yeah, you update the Subscription with a new quantity.
but at the end of the billing period, we will charge for every seat that was active, so if i have an account that was active for at least 1 day, i will pay por it at the end of the period
You specifically update the line item with a new quantity: https://stripe.com/docs/api/subscriptions/update#update_subscription-items-quantity
You can wait to decrement the count at the end of the period to make sure you charge the right amount.
i can add more than 999?
i was testing in the dashboard and there was a limit at that point
so something like a webhook? i store in the database how many seats i have to remove, and at the end of the period i decrease the amount?
What's the maximum number you can have?
we are closing deals with some early clients and we expect some accounts with 5k users
and in a future we expect accounts with more than 10k
I recommend you try large quantities using this approach via the API: https://stripe.com/docs/products-prices/pricing-models#per-seat
If you run into limits or other issues give usage-based pricing a try instead: https://stripe.com/docs/billing/subscriptions/usage-based/pricing-models
basically like creating groups of 100 users by example?
No. You create a Product representing tenants. You create a Price for that product to charge $5/month. Then you create a Subscription that uses that Price with a quantity of, say, 10000.
like a custom product for every tenant?
No.
There's one Product.
And one Price.
And one Subscription.
The quantity of the Price on the Subscription, though, would be 10000 or whatever other large number you want to test.
Look at the API code samples here: https://stripe.com/docs/products-prices/pricing-models#model-per-seat-pricing-on-stripe
See in the third one how a Subscription is being created with a single Price, but the quanity is set to 12?
Does that make sense?
There are some limits, like the maximum amount of a single charge, which you may run into, but I don't think the quantity itself has a limit.
Yeah, that's the maximum in USD.
how can i see the maximum in other currencies?