#vladyslav-len_unexpected

1 messages ยท Page 1 of 1 (latest)

scenic mistBOT
#

๐Ÿ‘‹ 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.

jovial storm
#

๐Ÿ‘‹ Hi there! Let me take a look

dire crescent
#

Thanks

jovial storm
dire crescent
#

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

jovial storm
#

Right. You set the threshold on the individual line item, so if you scroll down to si_TJWuNNhmHXdZuL, you should see it there

dire crescent
#

yep, I found it

jovial storm
dire crescent
#

I don't know guys, you are so fast every time

#

Thanks!

jovial storm
#

You're welcome!

dire crescent
#

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 ๐Ÿฅบ ?

jovial storm
#

Hey, sorry

#

Here you're using usage_gte rather than amount_gte

#

So it's measuring 20000 API requests, and not $200.00

dire crescent
#

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

jovial storm
#

Yup, that's correct

dire crescent
#

Thanks. Now I think I got all the info.

scenic mistBOT