Setting subscription quantities
By default, each subscription is for one product, but Stripe allows you to subscribe a customer to multiple quantities of a single product. For example, say you run a hosting company through which customers host sites at a cost of $9.99 per site per month. Most customers host a single site, while some host many. You could create prices for one site ($9.99), two sites ($19.98), and so forth, but a better approach is to subscribe customers to a quantity with a $9.99 unit price.
There are two kinds of usage-based billing for subscriptions: metered billing, and per-seat licensing. You can enable these billing models by setting the value of the recurring[usage_type]
attribute when creating a price. You may only specify a quantity when creating a subscription configured with licensed
as the value of recurring[usage_type]
. If you would like to have granular billing for usage that fluctuates within a billing interval, consider using metered billing instead of quantities.
Setting multiple quantities
To set the quantity on a subscription, provide a quantity
value when creating or updating the subscription:
Multiple quantities are still billed using one invoice, and are prorated when the subscription changes, including when you change just the quantities involved.
Charging different amounts based on quantity
In some cases, you may want to adjust the cost per seat based on the number of seats in a subscription. For example, you could offer volume licensing discounts for subscriptions that exceed certain quantity thresholds. You can use tiers to adjust per-seat pricing in that manner.