#sachin-kannaujiya_docs
1 messages ¡ Page 1 of 1 (latest)
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- sachin-kannaujiya_error, 3 days ago, 34 messages
- sachin-kannaujiya_docs, 4 days ago, 9 messages
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1257564246020198541
đ Have more to share? Add details, code, screenshots, videos, etc. below.
Why do you want to associate multiple meter for a single subscription?
I am using multiple services and there is diffrent cost for each service so i want to associate each service to single meter.
Just to clarify, so you want to create multiple meters, associate them to various prices, and create a subscription with these prices?
yes
Ok, I believe you can do that, have you tried?
yea but didnt find any right way.
What have you tried?
We have services with multiple charges based on usage for one subscription . I want the user to pay first before they can use the service. When their usage limit is exceeded, the subscription should end and the meter value should reset to zero.
is there any way to implement such model, i found we can attach meter but only one , but i think we require more than one for one subscription
so please help me out to find way to implent this model
https://docs.stripe.com/billing/subscriptions/usage-based/pricing-models#credit-burndown-model looks like you want to implment the credit burndown model. It's something we are developing right now, and you can click on the link on this page to sign up for beta.
ohk, can u suggest any alternate closest model to this, i want a usage based but pre-paid
It's a complicated model and I'd suggest you to sign up for beta to save your workload.
If you really want to do it yourself. You should monitor the meter event by using this API https://docs.stripe.com/api/billing/meter-event_summary/list and calculate the sum of aggregated_value of the meter event summaries to determine if your customer has finished the credits.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
hmm, what will happen if it finish will it end subscription
It's entirely up to you. You need to call https://docs.stripe.com/api/subscriptions/cancel if you want to cancel it.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
can reset subscription billing cycle and send invoice ?
Why do you want to do that?
bcoz i dont want to cancel subsciption, instead i want to reset so that stripe send invoice and continue new sub from that date
Then you don't need to do anything, Stripe will automatically renew the subscription and generate new invoices.
u mean if i cancel it will auto renew?
No, it will renew if you don't cancel it.