#clarkeash - billing cycles

1 messages · Page 1 of 1 (latest)

tawdry arch
#

Yes, an invoice event like invoice.created would probably be best if you want to reset as soon as the previous cycle ends and the new one begins

#

Is this something in your system that you are resetting or is this related to Stripe's metered billing subscriptions?

shell talon
#

I am reseting a value in my db. I am using stripes metered billing, but metered billing will only be used once the customers usage goes above a certain amount of usage (this threshold varies so tiers arent an option) so I want to reset this usage back to 0 on each cycle

tawdry arch
#

Gotcha, I just wanted to check in case there was some setting in Stripe to do that automatically but I am not seeing one. Listening for an event on a billing cycle would make sense here. Another option would be customer.subscription.updated which will also trigger every billing cycle. With that one, you can just check if the billing cycle has changed. Might be a slightly more direct way to check this

shell talon
#

Okay great, thank you