#shaon
1 messages · Page 1 of 1 (latest)
I believe so, are you seeing a different behavior?
no, i'm just checking
Ah okay, gotcha.
does usage tracked records count reset at each invoice ?
You mean the usage record correct?
yep correct
Hey apologies for the delay, hanzo had to step out but I am looking in to this. If I remember correctly it typically does but I think there is a way to have it persist.
Do you want the count to reset or do you want it to persist?
Found a doc on this. Basically, most forms of usage based billing do only charge for what was reported during the current month. The main exception being if you set the aggregate_usage parameter on the price to last_ever, in that case, we will refer to the last reported usage even if it was reported during the last billing period. https://stripe.com/docs/products-prices/pricing-models#aggregate-metered-usage
Anything but that last_ever behavior should do that. For all the others, we only invoice for usage you reported since the last billing period ended (which is when the last invoice was sent out)
so to confirm, the aggregate measurement resets on invoice finalized?
or invoice drafted?
When the invoice is drafted