Stripe Deprecated Old Metered Billing API in 2025 — Here Is the Correct New Method
Stripe fully deprecated its legacy usage-based billing approach, stripe.subscriptionItems.createUsageRecord(), in 2025, breaking many existing tutorials and integrations. The new model requires developers to first create a named Meter object in the Stripe Dashboard, attach a price to it, and then report usage against a customer ID rather than a subscription item ID. This change eliminates the need to store subscription item IDs in a database, simplifying implementation. A key pitfall is that test-mode and live-mode Meters are separate objects, and event names must match exactly between the Dashboard and code or usage goes silently uncounted. For production use, developers are advised to implement a retry queue for failed usage-reporting calls rather than relying on simple error logging.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.


Discussion (0)
Log in to join the discussion and vote.
Log in