#dineshkumar_docs

1 messages · Page 1 of 1 (latest)

bright pilotBOT
#

👋 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/1267844642062209055

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

round yoke
#

My meter id is mtr_test_61QdPBXZqM51mjVfy41BUmBAZBIgtD4S

hexed cedar
#

Hi, we document this here: https://docs.stripe.com/billing/subscriptions/usage-based/recording-usage#event-ingestion

You'd want to pass the exact timestamp of the previous usage that you want to overwrite.

If you’re sending events pre-aggregated over a specific time interval, either hourly or daily, Stripe only uses the most recent meter event within the hourly or daily window for aggregation. A newer event sent within the same hourly or daily window overwrites the previous one.

#

Are you able to try this?

round yoke
#

No

#

i will try this

#

i tried Event ingestion is RAW

#

and Aggregation is SUM

#

in this meter mtr_test_61QdPBXZqM51mjVfy41BUmBAZBIgtD4S

turbid flame
#

Hi there 👋 jumping in as my teammate needs to step away soon. Unfortunately Billing Meters don't yet support the last aggregation method like Usage Records do, so it's not possible to record a new Meter Event that overrides the existing aggregation for the Meter.

round yoke
#

in this subscription sub_1PYmw3BUmBAZBIgtRbRdEZxX

turbid flame
#

If you're using raw ingestion, I also don't think submitting a new Event will work, as raw treats all Events as standalone events rather than performing a sort of aggregation.

How old is the Meter Event you're trying to adjust? Is it within the timeframe for cancellation via a Meter Event Adjustment?
https://docs.stripe.com/api/billing/meter-event_adjustment/create

round yoke
#

if can i use Pre-aggregated daily and Aggregation is SUM , it will overwrite billing value?

turbid flame
round yoke
#

ok i will check and try , if any doubt i will back again...

#

thanks.

turbid flame
#

Sounds perfect! We'll be around

round yoke
#

Pre-agreegate montly is avalable?

#

i can see hourly and daily in doc

turbid flame
#

No, only hourly or daily as far as I'm aware.

round yoke
#

ok, understood.

#

thanks for support.