#smilelari - Metered Billing

1 messages · Page 1 of 1 (latest)

little whale
winter rapids
ornate zenith
#

You want this setting under the "Prevent failed payments" section:

Create an event for upcoming invoices 7 days before a subscription renews.

winter rapids
#

Ok. I'm not sure that's what I'm looking for as I want to report usage for the entire billing period and the closest to the end of the billing cycle it lets me get is 3 days. 5 minutes would be more what I'm after. How do users typically set up metered billing so that they can report usage for an entire billing cycle?

ornate zenith
#

Typically, users that want to do this wouldn't rely on our webhook endpoints to know when to report usage. They would schedule it on their end to make the request at a specific time.

edgy rapidsBOT
#

This thread has been archived. If you need help with anything else please ask in #dev-help or contact Stripe Support: https://support.stripe.com/contact

valid night
#

Hey @winter rapids we unarchved this thread for your followup. Catching up on this and will get back to you in a moment

#

If you want to listen to a webhook to see the new period end, you can listen for customer.subscription.updated

#

That event can be caused by many things so it would probably make sense to confirm that the previous_attributes has contains current_period_end if that is what you are looking for