Working with Bill Statements - m3ter Documentation

Documentation Index

Fetch the complete documentation index at: /llms.txt

Use this file to discover all available pages before exploring further.

You can create Statements to accompany the Bills you send out to your end-customers as backing sheets to their invoices. Bill Statements provide a useful breakdown of the usage responsible for charge line items your end-customers see on their invoices:

Common Bill Statement use cases:

This topic uses the second common use case as a worked example to explain how to create Statement Definitions, set up default Statements, generate full or partial Statements for Bills, and how to download generated Statements in your preferred format.

Bill Statement limit. A default Bill line item limit of 50,000 is imposed on Bill Statements. This default limit can be increased on request - please ask your m3ter contact for more details or get in touch with m3ter Support.

Creating Statement Definitions

When you create and configure a Statement Definition, you can define how the usage data collected by a Meter for a billing period, and on which usage charges are based, will be broken down for end-customers who will receive a Statement generated using the Statement Definition. To create and configure a Statement Definition:

  1. Select Billing. The Billing section opens at the Bill management page.
  2. Select Statement definitions:

The Statement definitions page opens and list any existing Statement Definitions.

  1. Select Create statement definition. The Create page opens.
  2. Under Statement definition details, enter a Name for the Statement Definition.
  3. Use the drop-down to select an Aggregation frequency:
  1. Use the switch to enable Include price per unit. Default is disabled.

  2. Use the switch to Generate slim statements. Enable this option if you have priced Plans using segmented Aggregations attached to end-customer Accounts and want to exclude segments that don’t appear on Bills from Statements. Default is disabled:

  3. Under Measures, use the drop-down to select a Meter that collects the usage data used as the basis of the usage charges for billing. The Measure drop-down selection field is activated for the selected Meter.

  4. Use the Measure drop-down to select a Meter measure Data Field which is aggregated into unit price rates and used as the basis for usage charges at billing.

  5. Use the Aggregation functions drop-down list to select the way you want to aggregate the selected Meter Data Field values for Statements. Seven options:

  1. Under Dimensions, use the drop-down to select a Meter that collects the usage data as the basis of the usage charges on Bills. The Dimension drop-down is activated for the selected Meter.
  2. Use the Dimension drop-down to select the Meter Dimension you want to use as the basis of the Statement’s breakdown of usage.
  3. If you want to filter the selected Dimension values which will appear on the Statement, under Filter, choose the Selected values radio button. The Filter values field is activated.
  4. Enter any values you want to filter the Statement breakdown by - only the Dimension values you enter will be used:

In this example, the Statement Definition uses:

  1. If you want to use other Meter Measures and Dimensions for your Statement Definition, select Add under Measures or Dimensions and repeat steps 6 to 14.
  2. Select Create statement definition. The Statement definition details page opens:

Using Statement Definitions

When you’ve set up a Statement Definition, you can select it as the one used to generate Statements for Bills:

These options act in the following way:

To set up default Bill Statements:

  1. Create the Statement Definition you want to set as the default at Organization level or the one you want set as the default for a particular Account level. See the previous section.
  2. To define a default Statement Definition at Organization level, select Settings:

The Organization page opens with the Configuration tab selected.

  1. On the Organization configuration details panel, select Edit. The Organization configuration page opens.
  2. Scroll down the page and under Bill statements, use the Statement definition drop-down to select the Statement Definition you want to set as the default.
  3. Select Update Organization configuration. You are returned to the Configuration tab and the selected Statement Definition is shown on the Organization configuration details panel as the Default statement definition.
  1. If you want to override the Statement Definition you’ve set as the default at Organization level for a particular Account, open the Edit page for the Account.
  2. Scroll down the page and on the Bill statements panel, use the Statement definition drop-down to select the Statement Definition you want to use for the Account.
  3. Select Update Account.

Generating Full Statements for Bills and Downloading

When you open and view a Bill for an Account under Bill management, you can manually generate a full Bill Statement and include for usage collected by all Meters when the Statement is generated:

To generate full Statements for Bills and Download:

  1. Open the Bill you want to generate a full Statement for in Bill management:

In this example, we’ve opened a monthly Bill for an Account in an Organization where the default Statement Definition is the Message Location Statement we created in the previous section:

  1. At top-right, select Statements. The Generate statements page opens:

  2. Under Statement job settings, you can review the set up for the Statement that will be generated, including the Statement Definition that will be used.

  3. For the current example, we’ll leave the Statement job type at the default Full statement selection.

  4. Select for the formats used in Statement generation:

Important: Statement Definition default must be selected! If you haven’t selected a default Statement Definition for Bills at either Organization or Account level, then the Generate statements button will not be active and you won’t be able to generate Statements. See above: Using Statement Definitions.

  1. Select Generate statement. This will kick-off the job to generate a full Bill Statement and the Statement job details page opens:

Notes:

  1. When the Statement job is COMPLETE, select which format you want to download: Download JSON (always) or Download CSV (if you selected Generate CSV statement). The Statement is downloaded and saved locally to your Downloads folder.
  2. You can now open the Statement in the 3rd-party application of your choice and transpose and compile it as required for issuing to your end-customers as a charge breakdown backing sheet to their invoice.

Generating Partial Statements for Bills and Downloading

When you open and view a Bill for an Account under Bill management, you can manually generate a partial Bill Statement and include only for the usage collected by selected Meters when the Statement is generated. To show how to generate partial Bill Statements:

First, here’s the updated Message Location Statement:

To generate partial Statements for Bills and Download:

  1. Open the Bill you want to generate a partial Statement for in Bill management:
  1. Select Statements. The Generate statements page opens.
  2. Under Statement job type, select Partial statement. The page adjusts to show a Meters drop-down selection field.
  3. For the current example, select Messaging Events 1 for Meters:
  1. Select Generate partial statement. This will kick-off the job to generate a partial Bill Statement and the Statement job details page opens:

Notes:

Partial Statements not persisted on Bill! Note that if you do this and in contrast to when full Statements are generated, any partial Statements you might have already generated are no longer available for download from the Generate statements page.

  1. When the Statement job is COMPLETE, select which format you want to download: Download JSON (always) or Download CSV (if you selected Generate CSV statement). The Statement is downloaded and saved locally to your Downloads folder.
  2. You can now open the Statement in the 3rd-party application of your choice and transpose and compile it as required for issuing to your end-customers as a charge breakdown backing sheet to their invoice.

Enabling Auto-Generation for Statements

You can enable auto-generation of Bill Statements for Accounts whenever a Bill is approved or locked:

These alternatives work together in the following way:

To enable auto-generation of Bill Statements when Bills are approved or locked:

  1. Either:
  1. Scroll down the page and on the Bill statements panel, use the radio buttons to enable Auto-generate statements:
  1. Select Update Organization configuration or Update account.

Checking Statement Last Modified Date

You can obtain the last modified date for a Bill Statement using API calls. This is useful if you want to check whether or not the Statement needs regenerating by comparing the last modified date/time with the Bill’s timestamp. To obtain a Statement’s last modified date:

  1. First, obtain the id of the Bill whose Statement you want to check the last modified date/time for.
  2. Use this id to make one of the available Retrieve Bill Statement API calls:
  1. The response to either call returns a pre-signed URL, which you can use to download the Statement file in either JSON or CSV format with a GET call using the URL. For example:

GET https://m3ter-billing-statements-16yxyxyxyxy-eu-west-2.s3.eu-west-2.amazonaws.com/0a5ec4d1-3300-4e2e-975d-16b3009fbf4e/89b234c3-bbb7-4179...The response to this call includes a Last-Modified header, where you can read-off the date and time.