Troubleshooting Bills - m3ter Documentation

Troubleshooting Bills

If you’re experiencing issues when generating bills for an end customer Account, it’s well worth running through the following troubleshooting checklist of common billing problems with suggested remedies/checks.

Failed Bill Checklist

Bills for an Account in your Organization might be failing to create for several reasons. You can use the System Alerts page in the Console as a starting point to check and remedy any issues which are causing Bills to fail. On your Organization Dashboard, Your alerts are listed and you can click View all to open the System Alerts page:

Here are some of the main reasons Bills fail to create and how to remedy the cause of failure:

Currency Conversion Rate Missing

If the billing currency set for your Organization or at Account level doesn’t match the pricing currency set in the Plan Template/Plan you’ve attached to an Account for billing and you haven’t defined a rate for converting the Plan pricing currency into the billing currency, then Bills will fail for the Account. To remedy:

Compound Aggregation Calculation Invalid

If you’ve used a Compound Aggregation - an Aggregation that uses a calculation - and the calculation is invalid and cannot be resolved by the m3ter calculation engine, then Bills will fail for any Account on a Plan that is priced using the Compound Aggregation. A simple example would be if your calculation attempts to multiply or divide two non-numeric values. An ERROR Alert will be generated that identifies the invalid Compound Aggregation and explains why the calculation it uses is invalid. To remedy:

No Priced Plan Attached to Account

A priced Plan has not been attached to an Account. This means that no pricing metrics are available for any usage data submitted for the Account so no Bill is generated. To resolve this problem:

  1. Create a Priced Plan if you have not already created one.
  2. Attach the Plan to the Account to create an Account Plan.
  3. Re-run Bill generation.

Usage Data Issues

Usage data may not have been uploaded correctly due to a variety of reasons. You can use the Usage Data Explorer (v2) to check if usage data and measures have been submitted against the Account. Key points to check:

Parent/Child Accounts - Billing Hierarchy Issues

For Parent/Child Accounts, billing hierarchy issues can cause problems. If Bills are failing to generate:

For more details on Parent/Child Accounts billing hierarchy mode settings, see Billing Hierarchy Modes for Parent/Child Accounts.

Accounts with Prepayments/Commitments

If the Account has a Prepayment added, then it’s worth noting:

Unexpected Error

If you receive a “Failed to create bill” ERROR on your System Alerts page, when you open the Alert an “Unexpected error” might be given as the reason for failure. This is for failures where the system cannot identify and report on a specific reason for the failure. In such cases, we recommend:

Billing Dates Issues

There are several areas where billing dates can get out of alignment and cause issues for Bill generation:

Plan Pricing Dates and Account Plan Dates not Synchronized

When Account Bills are generated in m3ter, two key sets of dates affect what is calculated with respect to the usage charged for in the Bill:

The start and end dates that define these two periods do not have to coincide, but if they do not, you might see a generated bill with unexpected amounts showing:

If you suspect this might be your billing issue, you can follow a course through the Console to quickly chase it down and confirm Account Plan/Plan Pricing dates alignment:

  1. Open the page for the Account with billing issues and select the Attached Plans tab. The Active and pending plans panel lists Account Plans with ACTIVE and PENDING tags. Note the start/end dates of an ACTIVE Account Plan.
  2. Select the hotlink text for the Account Plan. The Plan attachment page opens:
  1. Scroll down the page:
  1. Check the start/end dates for the pricing on the Plan to confirm date alignment between period pricing applies to Plan and period Account Plan is active for the Account.
  2. If you want to investigate further, select the View pricing schedule hotlink text for a Pricing:

First and Subsequent Bill Dates not Aligned

You can set up first and subsequent Bill creation dates at the Organization level when you configure your Epoch settings at Settings>Organization>Edit Organization. However, you can also define first and subsequent Bill creation dates at two further points in your overall configuration:

With these configuration dependencies in mind, if you’re seeing some unexpected billing behavior, it’s well worth performing a quick check to confirm the first and subsequent Bill creation date that applies for the Account - at Organization, Account, or Account Plan level - is correct. For more details with explanatory examples, see First and Subsequent Bill Dates.

Prepayment Dates Alignment with Required Billing Period

If you add a Prepayment to an end-customer Account and not all of the Prepayment is paid upfront, to set up billing on the Account for the remaining Prepayment fees due you can select either to Bill with Plan or Bill on a Schedule - see Creating Prepayments for Accounts for more details. If you choose to set up billing for any outstanding Prepayment fees due on an Account using the Bill with plan option, please take care to ensure the required alignment of start/end dates for the Prepayment service period with the required overall billing period:

Recalculating Bills after Billing Configuration Changes

If you’ve set up a specific billing configuration for an end-customer Account and Bills have already been generated according to this configuration. If you then make changes to the billing configuration, when you recalculate the previously generated Bills, the changes might not be reflected in the recalculated Bills:

Removing or Changing an Account Plan

After setting up billing configuration for an end-customer Account by attaching one or more Account Plans to the Account, you might need to change the billing configuration for the Account for cases such as:

Updating a Prepayment/Commitment Fee Billing Schedule

Suppose you’ve set up a schedule for Prepayment billing for an Account and a Bill has already been generated for one of the Prepayment fee dates on that schedule. If you then change the dates for the Prepayment schedule, when you recalculate the existing Bill the Prepayment fee due under the original schedule will still be included. You must first delete the old Bill generated for the original Prepayment fee schedule and then re-run billing. The new Bill will then be generated in accordance with the updated Prepayment schedule.

Important: Scheduled Billing! If you are using Scheduled Billing, please ensure you check for this after updating a Prepayment fee schedule.

Prorated Charges

There are cases where line item charges shown on Bills are prorated. If you see a charge amount on a Bill which you were not expecting or which you find puzzling, this mechanism might be the cause. It’s worth checking for this when you find what at first appears to be an odd billing charge.

Bill Doesn’t Cover Entire Billing Period

If a Bill doesn’t cover the entire billing period, then prorating is applied:

Usage Data Explorer and Debugging

When you generate a bill and the result isn’t what you expect, you can use the Preview Bill API call with Debug enabled to review information in the response which might help you to figure out what’s going wrong. Here’s an example to follow using Postman:

  1. Make the usual preparation for Service User authentication with the platform by generating an Access Key id and Api Secret in the Console - see Generating an API Key and Secret for a Service User.

  2. In your Postman workspace, obtain a Bearer Token for the Service User using the Access Key id and Api Secret.

  3. If you are unsure of the Account id of the Account for which bill generation has failed, then use your Bearer Token to submit a GET List Accounts call for your Organization:

    https://api.m3ter.com/organizations/396d788d-5174-XyXy-RsRs-a12f3456fc78/accounts

  4. Now, submit a POST Preview Bill call for the relevant Account using your Bearer Token and with debug enabled:

    https://api.m3ter.com/organizations/396d788d-5174-4e8b-9d69-a41f4671fc33/bills/preview?debug=true

  5. In the debugLog section of the response schema, you can read-off debug INFO.