#dineshkumar_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/1267844642062209055
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
My meter id is mtr_test_61QdPBXZqM51mjVfy41BUmBAZBIgtD4S
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?
No
i will try this
i tried Event ingestion is RAW
and Aggregation is SUM
in this meter mtr_test_61QdPBXZqM51mjVfy41BUmBAZBIgtD4S
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.
in this subscription sub_1PYmw3BUmBAZBIgtRbRdEZxX
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
if can i use Pre-aggregated daily and Aggregation is SUM , it will overwrite billing value?
Yes, if you provide multiple Events within the aggregation period when using pre-aggregated then the most recent Event is used, as explained in the documentation that my teammate linked to previously here.
Sounds perfect! We'll be around
No, only hourly or daily as far as I'm aware.