Understand Metered Fields for Invoices
Applies to: Advanced Billing
Last updated on Oct 30, 2026
BETA
This feature is currently in beta and may change over time. During the beta period, functionality, availability, and performance may vary.
To join the Beta program, request Beta access.
Add Metered Fields to Advanced Billing invoices to show usage data from Maxio Metering without changing invoice charges. Use Metered Fields to display aggregated meter usage, segmented usage, and formula-based usage values for specific Subscriptions and billing periods.
Important: Metered Fields are display-only. They do not generate charges. They are a transparency and reporting tool that lets your customers see the usage data that underpins their bill.
What Metered Fields show
Invoices in Advanced Billing show line items for charges: Products, one-time fees, and discounts. For customers with usage-based pricing, that list of charges often doesn't tell the full story. How many API calls did a subscriber make? What was their peak storage? How did individual usage dimensions break down over the billing period?
Metered Fields fill that gap. Each Metered Field is a named usage section that appears on the Invoice, pulling aggregated data directly from your Maxio Metering Meters. You define Metered Fields once at the site level, then activate them individually on each Subscription where they should appear.
Requirements
Before creating Metered Fields, confirm the following are in place:
- Maxio Metering is enabled on your site.
- At least one Meter is defined on your site.
- The Metered Fields feature is enabled on your site. Contact Maxio Support to request access during Early Access.
Metered Fields that use Advanced Formula expressions (combining multiple Meters) additionally require the meter_formula feature to be enabled. See Use Advanced Formulas with Metered Fields.
Key concepts
| Term | Definition |
|---|---|
| Metered Field | A named usage section on an Invoice. Configured at the site level and activated per Subscription. Shows aggregated Meter data for the billing period; does not generate a charge. |
| Meter | A Maxio Metering Meter that provides the usage data displayed in the Metered Field. One Metered Field can reference one or more Meters. |
| Formula Meter | An optional advanced configuration that replaces direct Meter references with a mathematical expression combining multiple Meters (for example, [reads] + [writes]). Requires the meter_formula feature. |
| Billing Period Source | Controls which date range is used when querying Meter data for display. Can be the Subscription's billing period or a specific Product's billing period. |
| Metered Field Subscription | The per-Subscription activation of a Metered Field. Determines whether a Metered Field appears on that Subscription's invoices, and optionally scopes it to a specific Product. |
How Metered Fields appear on invoices
Metered Fields appear as a dedicated usage section on the Invoice, separate from billing line items. Each activated Metered Field renders as a named block showing:
- Section header: The Metered Field name (for example, API Usage)
- Date range: The billing period covered by the Meter data
- Usage table: One row per Meter (or one row for the formula result), showing the Meter name and its aggregated usage value for the period
- Segmented breakdown: If the Meter uses segmentation, usage is broken out per Segment within the table


If Meter data is temporarily unavailable when an Invoice is generated, due to a query timeout or service interruption, the Metered Field section displays "temporarily unavailable" rather than failing the Invoice. The charge is not affected.
Metered Fields are display-only and do not affect the amount due on the Invoice.
By default, unbilled metered usage on an Invoice is labeled "Metered Usage (Not Billed)." You can customize this label under Config > Settings > Language Settings > Customize Language.
If your site is still on Metering v1 (legacy), the Metered Fields creation and activation flow differs from what this article describes. See Create Metered Fields for Invoices for details.
Show metered fields on invoices that use a branding theme
An Invoice generated from a Branding Theme shows the Metered Usage section only when the theme's Invoice template includes it. A template doesn't include the section until you add it, so add it to each theme whose Invoices should show usage. Branding Themes require invoice-centric billing on your Site. See Understand Branding Themes.
To add the Metered Usage section to a theme
-
Open the theme in the Template Editor. See Edit Invoice Template Layout.
-
Add a text block where the section should appear on the Invoice.
-
Type the merge tags into the text block. The following example shows every Metered Field, each of its Meters, and the Segment rows of segmented Meters:
{{#has_meter_fields}} {{metered_usage_section_label}} {{#meter_fields}} {{meter_field_name}} {{meter_field_period}} {{#meters}} {{meter_name}}: {{meter_total}} {{#has_meter_segments}}{{#meter_segments}}{{meter_segment_label}} {{meter_segment_value}}{{/meter_segments}}{{/has_meter_segments}} {{/meters}} {{/meter_fields}} {{/has_meter_fields}} -
Format the text as you need, then click Update Template to save.
Keep the whole section, from {{#has_meter_fields}} to {{/has_meter_fields}}, in the same text block. If the opening and closing tags are in different blocks, the Invoice PDF can list every Meter under every Metered Field instead of under its own.
The merge tags show the following values:
| Merge tag | What it shows |
|---|---|
has_meter_fields | Shows its content only when the Invoice has Metered Field data. On an Invoice without Metered Fields, and on a parent Invoice in consolidated billing, the section shows nothing. |
metered_usage_section_label | The section label, "Metered Usage (Not Billed)" by default. It uses the same label you customize under Language Settings. |
meter_fields | Repeats its content for each Metered Field on the Invoice. |
meter_field_name | The Metered Field name. |
meter_field_period | The billing period covered by the Meter data, as a start and end date. |
meters | Inside meter_fields, repeats its content for each Meter in that Metered Field. |
meter_name | The Meter name. |
meter_total | The Meter's aggregated usage for the period, or "temporarily unavailable" when the data could not be retrieved. |
has_meter_segments | Shows its content only for a Meter whose usage is broken out by Segment. |
meter_segments | Inside meters, repeats its content for each Segment of that Meter. |
meter_segment_label | The Segment's values, separated by " - ". |
meter_segment_value | The Segment's usage. |
Limitations
- Metered Field names must be unique per site. You cannot create two Metered Fields with the same name on the same site.
- Meter references must share the same Stream. When adding multiple Meters to a Metered Field (or using a formula), all Meters must belong to the same Stream.
- Formula Meters require the
meter_formulafeature. You cannot use formula expressions in Metered Fields without this additional feature enabled. - Activation is per-Subscription. Creating a Metered Field at the site level does not automatically add it to any invoices. Each Subscription must be individually configured.
- Metered Fields do not appear on parent invoices in consolidated billing scenarios.
Still need help?
Reach out and our support team will take it from here.
