Creating Usage Based Billing
- Create a Stripe Price where
Usage Typeis set to "Metered". Using theAggregate Usagefield you can set the summing up behavior (see Price documentations for details). - Create a Subscription using this Stripe Price. Quantities on a Subscription using a Metered Price can't be set.
- Push the Subscription to Stripe.
- Navigate to the Subscription Item on the Subscription related list. Select a Subscription Item.
- Create a related Usage record on the related Usage list.
- Set the
Quantityfield. - Save the record.
- You should see the
Usage IDfield populated after a few minutes.