#chunkyboi_credit-balance-subscriptions
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always 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/1422254304814956645
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
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.
- chunkyboi_api, 2 days ago, 22 messages
- chunkyboi_webhooks, 4 days ago, 8 messages
- chunkyboi_api, 5 days ago, 78 messages
in addition, we want to allow the customers to upgrade their subscriptions. Since every customer on the platform should already have the existing free subscription, is it better to build a checkout session or a customer portal (for managing subscription and such) to allow them to upgrade? Ideally, we want to discourage people from downgrading their subscription once they've upgraded
I currently have this integration built for our platform:
-
when a new user onboards to the platform, we automatically create a $0 subscription for them and internally grant credits to their account. For example, $10 subscription == 10 credits, $20 == 20 credits. When they do certain things on our platform, we then decrement credits.
-
We are currently tracking the credits internally in an internal ledger. However, I'm reading up on the credit transaction/balance API, and I realized that this API could potentially replace our internal ledger completely. Is this a valid path?
^ You're saying this is a general question?
Let me know what parts I can be more specific on
"Is this a valid path" is pretty general, yes.
You can definitely attempt to model your business using customer credit grants
but it may not be suitable for some aspects you have not discussed.
I see, what info can I provide that will help you more?
It's not up to me to say
We have an AI platform that allows customers to send queries
It's up to you to research how the customer credit balances work
and each of these queries can be of different price points
Are you using usage based billing?
okay I have a couple recommendations
and we're currently just granting a set amount of credits to the users when their invoice is paid
I think you should start by reviewing our docs here
And how the Credit Balance APIs work here
But, and this is the most important thing when it comes to Stripe billing, I strongly recommend you build out a sample version with a Sandbox
yes I took a look at those already
we already are building it out, but just want to avoid having to change integrations completely down the line
It's really easy to overlook some edge cases unless you are hitting the APIs and trying to use the responses for your integration
Again, I would recommend creating a quick simulation to validate the expected behavior (rather than trying to build it in to your full integration)
I hear you, but I guess I'm just asking for some general opinion since I've built out most of the billing + invoices integration
The issue you will run into is that there is nothing preventing a user from spending more than their available credits. That is still a limit you will have to enforce on your end
Got it, thank you