Billing Data Administration

Have a Question?

Using the carbonio admin getUsageData and carbonio admin DeleteUsageData CLI commands, an Administrator can receive or erase billing data for subscriptions enabled for each domain.

Two optional arguments are accepted by the commands:

  • date_start: the starting date for retrieving billing data, in the format YYYY-MM-DD.
  • date_end: the end date for retrieving billing data, in the format YYYY-MM-DD.

There is one additional option for the getUsageData command:

  • data_format: specifies whether data should be shown in JSON (the default) or CSV format.

As an example, the following command gets all active subscriptions in September 2023.

An example of the output is shown below.

The syntax for DeleteUsageData is similar. Take note that it does not request confirmation.

The command below deletes all data for the month of September 2023.