#shaon

1 messages · Page 1 of 1 (latest)

balmy egretBOT
tiny pagoda
#

I believe so, are you seeing a different behavior?

inner scarab
#

no, i'm just checking

tiny pagoda
#

Ah okay, gotcha.

inner scarab
#

does usage tracked records count reset at each invoice ?

tiny pagoda
#

You mean the usage record correct?

inner scarab
#

yep correct

solar kindle
#

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?

solar kindle
#

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

inner scarab
#

reset ideally

#

so we'd likely reset according to when the invoice was sent out

solar kindle
#

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)

inner scarab
#

so to confirm, the aggregate measurement resets on invoice finalized?

#

or invoice drafted?

solar kindle
#

When the invoice is drafted