#smilelari - Metered Billing
1 messages · Page 1 of 1 (latest)
Hello! You may want to use the invoice.upcoming event instead: https://stripe.com/docs/api/events/types#event_types-invoice.upcoming
The invoice.upcoming event says that when the event fires is set in the subscription settings, and links here: https://dashboard.stripe.com/settings/billing/automatic. I'm not sure which setting to use
You want this setting under the "Prevent failed payments" section:
Create an event for upcoming invoices 7 days before a subscription renews.
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?
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.
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
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
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