Set up usage-based billing with rate cardsPrivate Vorschau
Charge customers based on usage of your products or services with rate cards.
Use rate cards to model hundreds of pay-as-you-go usage-based prices and group them into a single rate card. Add new prices for new features to existing rate cards and roll them out to your existing customers immediately without writing any code.
This guide uses a fictional AI company called Alpaca AI to demonstrate how to create a pricing model with rate cards, subscribe a customer to the rate card, and record usage with meters.
Learn more about how rate cards work.
Private Vorschau
Rate cards are currently in private preview and could change in functionality and integration path before they’re generally available to all Stripe users. Sign up here to join the private preview.
Before you begin
Rate cards use API endpoints in the /v2
namespace, such as Rate card subscriptions v2. Learn more about the /v2 and /v1 namespaces.
Create a rate card
Use the Stripe Dashboard or API to create a rate card that includes different rates for each pricing option.
For example, Alpaca AI creates a rate card with:
- Monthly service interval
- USD currency
- Tax not included in price
- Metered price of 0.04 USD per hundred units
You need to associate each rate in a rate card with a meter.
Subscribe your customer to a rate card
After you create a rate card, you can start subscribing customers.
When you subscribe your customer to the rate card, you also define the billing cadence–how often to create invoices for your customer. When creating a billing cadence, you can specify collection settings using either charge_
or send_
. When charge_
is selected and an invoice is created, the customer’s default payment method is automatically charged. With the send_
option, customers will receive an invoice they need to pay manually.
Record customer usage
After you subscribe a customer to a rate card, you can record their usage of your service, by sending meter events to a meter.
Create a preview invoice
Create a preview invoice to see a preview of a customer’s invoice that includes details such as the meter price and usage quantity.