Skip to content
Create account
or
Sign in
The Stripe Docs logo
/
Ask AI
Create account
Sign in
Get started
Payments
Revenue
Platforms and marketplaces
Money management
Developer resources
Overview
Billing
OverviewAbout the Billing APIs
Subscriptions
Invoicing
Usage-based billing
    Overview
    How usage-based billing works
    Use cases
    Record usage for billing
    Offer billing credits
    Monitor usage
    Manage usage-based billing setup
    Advanced usage-based billing
Quotes
Customer management
Billing with other products
Revenue recovery
Automations
Test your integration
Tax
Overview
Use Stripe tax
Manage compliance
Reporting
Overview
Select a report
Configure reports
Reports API
Reports for multiple accounts
Revenue recognition
Data
OverviewSchema
Custom reports
Data Pipeline
Data management
HomeRevenueUsage-based billing

How usage-based billing works

Learn how you can launch common usage-based pricing models on Stripe.

Usage-based billing enables you to charge customers based on their usage of your product or service.

The Stripe usage-based billing lifecycle is made up of four major components:

  • Ingestion: Send your customer’s usage data to Stripe.
  • Product catalog set up: Create your usage based and recurring prices.
  • Billing: Subscribe your customer to a set of prices that reflect your pricing model. Stripe invoices your customers for the usage they consume.
  • Monitoring: Set up alerts to receive notifications of customers crossing usage thresholds. Track usage analytics to understand key trends.

Lifecycle

This is the lifecycle for a typical usage-based billing integration that uses products and prices:

Usage-based billing concepts

Learn about these concepts to understand how usage-based billing works.

TermDefinition
CustomersA Stripe customer represents an entity (typically a person or business) that can make payments to your business. You can use the customer resource to store billing details, set up subscriptions, track payments, and manage customer information. You can also link customers to your own user system using the metadata field, which allows you to associate your internal user IDs with Stripe customer records. For more information, see Customers.
SubscriptionsA Stripe subscription represents a recurring billing relationship with a specific customer and one or more prices. Subscriptions charge customers on a recurring schedule (weekly, monthly, yearly, and so on) and generate invoices at the end of each billing cycle. For more information, see How subscriptions work.
PricesPrices are attached to products and represent specific pricing configurations that define how much and how often to charge for a product. To learn about key attributes and the differences between one-time, recurring, and usage-based charges, see Prices.
MeterA Stripe meter tracks usage data (such as API requests, processing time, and data storage) and specifies how to aggregate the data (meter events) over a billing period for usage-based billing. Meters use an aggregation formula to define how usage events are counted and aggregated. To create a meter, see Create and configure a meter.
Meter eventsA meter event represents a unit of usage that you report to Stripe for usage-based billing. They capture specific instances of customer usage and include:
  • An event name (matching the configured meter)
  • A customer identifier
  • A numerical usage value
  • An optional timestamp (defaults to current time if not specified)
  • An optional unique identifier for idempotency
  • Any additional dimensions for segmentation
Meter event summaryYou can use the Meter Event Summary to retrieve total usage for a custom time period. The meter event summary returns a customer’s aggregated usage for a period, based on the aggregation formula defined by the meter. Meter event summaries update asynchronously when meter events process.
Was this page helpful?
YesNo
  • Need help? Contact Support.
  • Join our early access program.
  • Check out our changelog.
  • Questions? Contact Sales.
  • LLM? Read llms.txt.
  • Powered by Markdoc
Related Guides
Usage-based pricing models