#m.hariscrewlogix
1 messages · Page 1 of 1 (latest)
Can you elaborate more on your model/use case?
Sure, I am building a SAAS application that have 7 modules ( APIs ). Each api will have its own pricing. for example chat price will be $1 and storage price is $1.5. Each time api will be call amount will be deducted from user stripe account. If user stripe account balance is 0 then subscription will stop and send the notification email to user.
how can I achieve this functionality using stripe.
So like a usage based system but is based on their balance/credit/wallet that they can top-up?
yes
Then you likely want to utilise the customer balance: https://stripe.com/docs/billing/customer/balance
The idea being you take one-time payments from customers, apply that as credit to their balance, which is automatically applied to any subscription invoices that are generated for them
There's no native billing solution for what you describe, so you kind of need to work with multple APIs and bring them together in a bit of a DIY solution
okay. can you help me what apis I will need from stripe to achieve it?
one is credit balance that will top-up the user account.
how can I link it with metered billing. as metered billing generates the invoice at the end of month.
Well you'll need some kind of payment integration to facilitate the top-up payments from your customers.
An API that manages their balance to apply credit etc.
Then you'll need a billing integration to handle the recurring payments.
See: https://stripe.com/docs/billing/subscriptions/usage-based
As explained any credit on the balance will be automatically applied to recurring subscription invoices
so useage based billing will deduct the amount from their stripe account?
I'm not sure I follow, would you mind elaborating please?
useage- based billing generates the invoice at the end of the month right?
how can I achieve the same functionality instead of generating the invoice at the end of month but right when the user use service. For example. user use the chat api and $1 deducted from their account for sending message
useage- based billing generates the invoice at the end of the month right?
right
how can I achieve the same functionality instead of generating the invoice at the end of month but right when the user use service. For example. user use the chat api and $1 deducted from their account for sending message
you can set a billing threshold
if the billing_threshold is 1$
and the price is 1$
each time the customer gets a usage record they will be invoiced
yes