How per-event billing works
Every usage event generates its own invoice (one event, one invoice)Invoices are generated as soon as the event is received
Set per product, so a single billing schedule can mix per-event and other billing frequencies
How it differs from on-demand billing
On-demand billing aggregates usage over a window (hourly or daily) and produces one invoice per window. Per-event billing does not aggregate. Each event is billed independently and immediately.| On-demand (hourly/daily) | Per-event | |
|---|---|---|
| Invoice grouping | One invoice per hour/day window | One invoice per event |
| Timing | At the close of each window | As soon as the event is received |
Deduplication by customerEventId | Yes, only the latest event in a window is counted | No, every submission is billed |
Getting started with per-event billing
- Create a usage metric.
- Configure a product and price with a usage-based pricing model.
- Set the billing frequency to
per-eventon the product. - Create and start a billing schedule including the new price.
- Submit an event for the customer and metric used in the price.
- An invoice is generated for that event as soon as it is received.
Per-event billing is only compatible with usage-based pricing models. It is configured per product, so you can mix per-event products and on-demand products within the same billing schedule.
Deduplication and re-submitting events
Example use cases
- Transactional billing: Bill customers for each individual transaction as it happens
- One-to-one invoicing: Where each event must map to exactly one invoice for reconciliation
Frequently asked questions
When are invoices generated?
When are invoices generated?
An invoice is generated for each event as soon as it is received. There is no aggregation window.
What happens if I send the same event twice?
What happens if I send the same event twice?
Both submissions are billed, producing two invoices. Per-event billing does not deduplicate by
customerEventId, so only submit each event once. Contact support to correct an already-issued invoice.Can I mix per-event and on-demand billing?
Can I mix per-event and on-demand billing?
Yes. Billing frequency is set per product, so a single billing schedule can include some products billed per-event and others billed on-demand.
Can I use this with fixed pricing models?
Can I use this with fixed pricing models?
No. Per-event billing is only available for usage-based prices.