#withapain
1 messages ยท Page 1 of 1 (latest)
So rather than creating multiple usage records, you just want a single usage record that you increment. Is that right?
Because you can't change the interval of the usage record, if that makes sense. They just accumulate throughout the billing period
I just want to make sure I am always reporting total monthly value
reporting daily has a drawback of missing a day and making whole retry system around it
instead, I want to always report my Total for the month and replace Total for the month in stripe
Ok, then what you need to do is create a new Usage Record, using action: 'set' but pass the same timestamp each time and it will override the existing record with that timestamp (assuming it exists)
That will there'll just be a single Usage Record for the billing cycle, but the quantity will change to reflect the actual usage each day
There is a note that if we have a billing_threshold , it will not work. Why is that?
Can you share where you see that note?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I'm not sure why, I guess that's just how it works unfortunately