v10

latestOpenAPI 3.0.1raw.githubusercontent.com2025-12-033223581.2 MB
Account

Retrieve Account

Retrieve the Account with the given Account UUID.

get/organizations/{orgId}/accounts/{id}

Path parameters

orgIdstring required

UUID of the organization. The Organization represents your company as a direct customer of the m3ter service.

idstring required

The UUID of the Account to retrieve.

Response

Returns the requested Account

idstring required

The UUID of the entity.

versioninteger

The version number:

  • Create: On initial Create to insert a new entity, the version is set at 1 in the response.
  • Update: On successful Update, the version is incremented by 1 in the response.
customFieldsobject

User defined fields enabling you to attach custom data. The value for a custom field can be either a string or a number.

If customFields can also be defined for this entity at the Organizational level,customField values defined at individual level override values of customFields with the same name defined at Organization level.

See Working with Custom Fields in the m3ter documentation for more information.

namestring

Name of the Account.

codestring

Code of the Account. This is a unique short code used for the Account.

emailAddressstring

Contact email for the Account.

configDataobject

Configuration data for the Account

parentAccountIdstring

Parent Account ID, or null if this account does not have a parent.

billEpochstring date

Defines first bill date for Account Bills. For example, if the Plan attached to the Account is set for monthly billing frequency and you set the first bill date to be January 1st, Bills are created every month starting on that date.

Optional attribute - if not defined, then first bill date is determined by the Epoch settings at Organizational level.

purchaseOrderNumberstring

Purchase Order Number of the Account.

Optional attribute - allows you to set a purchase order number that comes through into invoicing. For example, your financial systems might require this as a reference for clearing payments.

currencystring

Account level billing currency, such as USD or GBP. Optional attribute:

  • If you define an Account currency, this will be used for bills.
  • If you do not define a currency, the billing currency defined at Organizational will be used.

Note: If you've attached a Plan to the Account that uses a different currency to the billing currency, then you must add the relevant currency conversion rate at Organization level to ensure the billing process can convert line items calculated using the Plan currency into the selected billing currency. If you don't add these conversion rates, then bills will fail for the Account.

statementDefinitionIdstring

The UUID of the statement definition used when Bill statements are generated for the Account. If no statement definition is specified for the Account, the statement definition specified at Organizational level is used.

Bill statements can be used as informative backing sheets to invoices. Based on the usage breakdown defined in the statement definition, generated statements give a breakdown of usage charges on Account Bills, which helps customers better understand usage charges incurred over the billing period.

See Working with Bill Statements in the m3ter documentation for more details.

dtCreatedstring date-time

The DateTime when the Account was created (in ISO 8601 format).

dtLastModifiedstring date-time

The DateTime when the Account was last modified (in ISO 8601 format).

createdBystring

The ID of the user who created the account.

lastModifiedBystring

The ID of the user who last modified the Account.

autoGenerateStatementMode'NONE' | 'JSON' | 'JSON_AND_CSV'

Specify whether to auto-generate statements once Bills are approved or locked. It will not auto-generate if a bill is in pending state.

The default value is None.

  • None. Statements will not be auto-generated.
  • JSON. Statements are auto-generated in JSON format.
  • JSON and CSV. Statements are auto-generated in both JSON and CSV formats.
creditApplicationOrderBillCreditType[]

The order in which any Prepayment or Balance amounts on the Account are to be drawn-down against for billing. Four options:

  • "PREPAYMENT","BALANCE". Draw-down against Prepayment credit before Balance credit.
  • "BALANCE","PREPAYMENT". Draw-down against Balance credit before Prepayment credit.
  • "PREPAYMENT". Only draw-down against Prepayment credit.
  • "BALANCE". Only draw-down against Balance credit.
daysBeforeBillDueinteger

The number of days after the Bill generation date shown on Bills as the due date.

Example response

{
  "currency": "USD"
}