#vladyslav-len_unexpected
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/1447550009078845531
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
๐ Hi there! Let me take a look
Thanks
It looks like you updated the subscription in this request, setting a billing threshold so the user gets invoiced after every 20000 API requests: https://dashboard.stripe.com/acct_1S1VlpLfyDpcTxwx/logs/req_HO3VB7SccTWaFD
one moment
currently, when looking at the subscription , I see threshold is not set
ah, it's set on the price
I see
sorry, for wasting your time
Right. You set the threshold on the individual line item, so if you scroll down to si_TJWuNNhmHXdZuL, you should see it there
yep, I found it
No, not a problem. We're here to help ๐
You're welcome!
one question
billing threshold is set like this:
"billing_thresholds": {
"usage_gte":
"20000",
},
which is $200
but the invoice is sent after reaching $4
is that cumulative amount, if so, how can I set it differently?
@jovial storm you here ๐ฅบ ?
Hey, sorry
Here you're using usage_gte rather than amount_gte
So it's measuring 20000 API requests, and not $200.00
Usage vs monetary thresholds: https://docs.stripe.com/billing/subscriptions/usage-based/thresholds
ah, now I get it. So if we switch to amount gte we will charge every time the accumulated usage is > 200USD for that price
Yup, that's correct
Thanks. Now I think I got all the info.