#obo_api

1 messages ยท Page 1 of 1 (latest)

hollow briarBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1252634637134463016

๐Ÿ“ Have more to share? Add details, code, screenshots, videos, etc. below.

old moatBOT
orchid atlas
iron umbra
#

@orchid atlas is there anything somebody can look into then

#

I'm seeing a quantity of 1, but no usage records

#

I just manually set this through the dashboard, and now it's showing 0, which doesn't make any sense

#

historically stripe has just taken the highest value and used that (which is what we have it set to)

#

with your new metered billing features, is it possible something changed?

orchid atlas
#

Billing Meters are different from Usage Records, but I'm not sure how any of that is reflected in the dashboard (our team focuses on working with our APIs and SDKs). Can you share the ID of the Subscription Item?

iron umbra
#

yes of course: si_PIthkxWHDVI8sN

#

and yes, sorry I'm just using the dashboard for quick testing

#

what's strange is that we have no record of any usage records being sent by our systems to stripe for this item. It just seems like it randomly defaulted to 1 a few months ago and has defaulted to that each month since without any usage records being sent

#

the 0 we put in the dashboard (I tried this twice), seems to have now overridden the value of 1 you're seeing in the background there for the image I provided

#

if you want an example of one that hasn't been altered, please see here: si_PJEUkwXdsykL7V

#

that subscription item is in the same state as the si_PIthkxWHDVI8sN item before it. Roughly 2 months ago we had a period where it was set to 1 instead of 0 and has stayed there since

#

even without future usage for that period being sent to stripe

orchid atlas
# iron umbra yes of course: si_PIthkxWHDVI8sN

The Price this is based on uses last_ever for recurring.aggregate_usage, so it's expected that it will continue to use the most recently submitted Usage Record, even if that's from a previous billing period.
https://docs.stripe.com/api/prices/create#create_price-recurring-aggregate_usage

iron umbra
#

okay interesting, that shouldn't be the setting that we have for that. Let me check our code to confirm

#

okay yes, I think this all makes sense now. thank you very much for the help!