#teklets-clear_usage
1 messages · Page 1 of 1 (latest)
clear_usage will delete all usage for a given subscription item.
So if you logged a usage previously, and then call clear_usage when deleting the subscription, it wouldn't be reflected in the invoice
you can try it out and see how it works
yeesh so that's an aptly named function then.
thanks! is there an optimal way to modify a subscription from a metered -> licensed model while keeping the old invoice?
by keeping the old invoice do you mean charging for usage?
yeah charging for the old usage
when you update the subscription, set proration_behavior=always_invoice [0], this should trigger an invoice for the already logged usage https://stripe.com/docs/billing/subscriptions/upgrade-downgrade#immediate-payment