#rem_usagebilling-vercel
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/1238162756105015348
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
full data object from Vercel
Sure
Do you know what they use ounder the hood for our API? Are they using UsageRecord or Meters?
From my reseach they use https://www.withorb.com
Which is the SaaS under the Stripe
yeah unfortunately I can't really help if there are layers of tools on top of the API ๐ฆ
I undrestand that. But maybe you can help us with the model on trials
Right now we have a separate layer that track the usage on Subscription Trial, due to the limitation from Stripe
yeah I don't really get your question right now and I paired with another engineer who said the same
What is the limitation? That we don't charge for usage during the trial? Or something else?
Yes, during trial period on subscription the usage is voided and it's hard to set a limit
Ideally, we would like the option to use the meter, and set the initial usage to negative number and the limit to 0
that will mean that we don't really need to use the Stripe Subscription trial
Yeah that's not really something we support
yeah what my team is saying is that you could model this with a separate Price that has a "fee tier" for example up to 1000 and then charge after that. And then you swap them at the end of the trial to a different version of the Price without that free tier (with SubscriptionSchedules)
Definitely agree your ask makes sense to be clear, just not something we support
hmm, different free tier migth works
But the free tier doesn't gave you the limit, does it?
How would we know if the limit if reached?
You have a free tier with say 0-1000 => $0 and then 1001-infinity => $0.01
and then you report usage in real time and if it stays below 1000 they don't get charged
But the idea here is that we would like to block the usage after some limit is reached
Ideally get a webhook from stripe that the limit has been reached
@spring mural okay I checked and we don't have something like this just yet. We are working on it though so it will come in the future