#adi-von-slav_docs
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/1357643714872217651
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi, let me help you with this.
Are you using the legacy usage-based billing?
feature is entirely removed
You're talking about UBB as a whole, or just thresholds?
Just the thresholds, right now we use billing meters with metered prices to manage usage-based billing which I assume is not the legacy UBB
But as part of removing legacy UBB the changelog mentions removing billing_thresholds from the API call for Subscription creation which presents a problem to us
I understand. Let me see what's the new UBB has to offer for that...
I think it's called alerts now: https://docs.stripe.com/billing/subscriptions/usage-based/monitor
This doesn't seem to be the same thing, as the billing_thresholds on the Subscription API actually allows you to set a monetary threshold so that when it is exceeded on a specific subscription an invoice is generated
These alerts seem to be exclusively for usage in terms of the quantity and don't allow you to trigger invoices on a subscription prior to the regular billing cycle? Right?
Well, there's only one type of Alerts now, which might imply there will be more types, e.g. rated_usage_threshold in the future: https://docs.stripe.com/api/billing/alert/create#create_billing_alert-alert_type
Maybe reach out to Stripe Support and ask if they can enable a private preview feature for you: https://support.stripe.com/?contact=true
I'll do that, thank you! If I could just ask this; does the Stripe Dashboard allow you to update the account's default API version to a selective one instead of the latest?
No, unfortunately. But you can set Stripe-Version on each API call explicitly: https://docs.stripe.com/upgrades#how-can-i-upgrade-my-api
Yeah it's quite a dilemma for us, as the Stripe CLI's insistence on only allowing the default or latest API versions for local listening is quite limiting, basically forcing us to upgrade to the latest API version which has breaking changes for us
I know what you mean, it's really a challenge to keep the API fresh by releasing breaking changes and cutting legacy features, but also supporting apps that haven't upgraded. Let me know if I can help with anything specific.
By the way, there's always an option of creating a separate Stripe account and upgrading it to the latest version to test things, without impacting your main account.