Bill customers on-demand for discrete events
Instant invoice generation when usage events occurCumulative usage tracking across multiple events
Support for tiered pricing based on historical usage
Invoices are generated daily by default. Hourly billing can be enabled to generate invoices at the top of each hour (UTC). For example, submit usage data at 1:30pm UTC and the invoice will be generated at 2:00pm UTC.
Getting started with on-demand billing
- Create a usage metric.
- Configure a new product and price with a usage-based pricing model.
- Set the billing frequency to
on-demand. - Create and start a billing schedule including the new price.
- Submit an event for the customer and metric used in the price.
- An invoice will be generated at the top of the next hour (or next day, depending on your configuration).
On-demand billing is only compatible with usage-based pricing models. Usage is accumulated throughout the billing schedule’s phase. For tiered pricing, each new event considers the total historical usage to determine the applicable tier rate.
Invoice timing
By default, invoices are generated daily, consolidating all usage events from the previous day. Hourly billing can be enabled to generate invoices at the top of each hour (UTC). For example, submit usage data at 1:30pm UTC and the invoice will be generated at 2:00pm UTC.Example Use Cases
- Batch order processing: Bill customers when they place orders for physical goods
- Usage-based services: Bill customers immediately after service consumption
Frequently asked questions
How is usage calculated across multiple events?
How is usage calculated across multiple events?
Usage is cumulative across all events in the phase. For tiered pricing, each new event considers the total historical usage to determine the applicable tier.
When exactly are invoices generated?
When exactly are invoices generated?
By default, invoices are generated once per day for all events from the previous day. Hourly billing can be enabled to generate invoices at the top of each hour (UTC) for events submitted during the previous hour.
Can I use this with fixed pricing models?
Can I use this with fixed pricing models?
On-demand billing is currently only available for usage-based prices. It cannot be used with fixed pricing models.