#abhishek_1234-metered_subs
1 messages · Page 1 of 1 (latest)
hi there, you can start off by taking a look at these guides :
https://stripe.com/docs/products-prices/pricing-models#reporting-usage
in 2 link reporting usage quantity field is given 100. If success api are send to this will it count quantity automatically
you have to calculate the number of successful APIs in your own application and then send that number as the usage quantity
okay
by any other means does stripe have this feature of calculating api call
one more thing need to create customers also within stripe
unfortunately, we don't have any such feature to calculate the API calls. You can see how to create a customer here : https://stripe.com/docs/billing/subscriptions/build-subscriptions?ui=elements#create-customer
okay no worries.
calculate api call based on tenant => create customer for that tenant in stripe => pricing tiers will be set in stripe => stripe will then create invoice for us => last checkout method
is this correct flow of data?
the flow would be create customer => create metered subscription for customer => record usage => stripe will automatically invoice at end of the billing cycle