Skip to main content

Define a price for a combination of filters

When a billable metric has defined filters, establish a set of filters to refine an event and assign a price to this combination.
  1. Add a charge to a plan (this charge should be associated with a billable metric containing filters);
  2. Add a new filter;
  3. Choose a combination of filters, either specifying a key and its value or simply the key itself (covering all values);
  4. Set a price for this combination of filters; and
  5. Optionally, provide an Invoice display name.

Define a default price

When a billable metric has filters defined, set a default price on the charge level to cover all the other combination of filters not defined in the charge.
  1. Add a charge to a plan (this charge should be associated with a billable metric containing filters);
  2. Add a default price;
  3. Set a price for this default price

If the default price is not set, Lago will automatically define it as 0 based on the charge model.

Editing filter pricing mid-period

When you update a charge’s filter configuration or pricing, for example by adding new filter combinations, changing per-filter rates, or removing the default price, Lago applies the updated pricing rules to all usage in the current open billing period. Fees are not locked at event ingestion time. They are evaluated against the active charge configuration at the time of calculation. This means that events received earlier in the period are repriced under the new configuration, not the one that was active when they were ingested.
Once an invoice is finalized, amounts are permanently locked. Charge configuration changes only affect the current open billing period. To preserve existing pricing on already-received usage, finalize the invoice before updating the charge.