Data Export Entity Schema

The schema for the entities available for usage and operational data exports are given in the tables below.

For additional reference:

  • Data export records typically include all relevant fields for an entity returned by the API when retrieving the entity plus some additional fields only relevant for exports. Further details and descriptions of each field can be found in the corresponding sections of the m3ter API Reference documentation.

  • The Entity Relationship Diagram lays out the m3ter data entities and their relationships.

Account

Field NameData TypeNotes
idstringuuid (primary key)
versioninteger
namestring
codestring
addressstringJSON object
autoGenerateStatementModestring
billEpochstring
creditApplicationOrderstring
currencystring
emailAddressstring
parentAccountIdstringuuid (foreign key to parent account)
purchaseOrderNumberstring
statementDefinitionIdstringuuid (foreign key to statement definition)
customFieldsstringJSON object
dtCreatedstring
dtLastModifiedstring
createdBystring
lastModifiedBystring
deletedboolean

AccountPlan

Field NameData TypeNotes
idstringuuid (primary key)
versioninteger
codestring
accountIdstringuuid (foreign key to account)
billEpochstring
childBillingModestring
contractIdstring
modifiedBystring
planIdstring
planGroupIdstring
productIdstring
startDatestring
endDatestring
customFieldsstringJSON object
dtCreatedstring
dtLastModifiedstring
createdBystring
lastModifiedBystring
deletedboolean

Aggregation

Field NameData TypeNotes
idstringuuid (primary key)
versioninteger
name string
codestring
roundingstring
quantityPerUnitinteger
unitstring
segmentsstringJSON object
meterIdstringuuid (foreign key to meter)
targetFieldstring
aggregationstring
segmentedFieldsstringJSON object
defaultValueinteger
dtCreatedstring
dtLastModifiedstring
createdBystring
lastModifiedBystring
deletedstring

Balance

Field NameData TypeNotes
idstringuuid (primary key)
versioninteger
namestring
codestring
descriptionstring
accountIdstringuuid (foreign key to account)
amountfloat
currency string
startDatestring
endDatestring
rolloverAmountfloat
rolloverEndDatestring
balanceDrawDownDescriptionstring
overageSurchargePercentfloat
overageDescriptionstring
productIdsstringJSON object (list of uuids)
lineItemTypesstringJSON object
dtCreatedstring
dtLastModifiedstring
createdBystring
lastModifiedBystring
deletedboolean

Bill

Field NameData TypeNotes
idstringuuid (primary key)
versionstring
accountIdstringuuid (foreign key to account)
startDateTimeUTCstring
endDateTimeUTCstring
billDatestring
dueDatestring
billingFrequencystring
billingFrequencyIntervalinteger
timezonestring
currencystring
lockedboolean
createdDatestring
statusstring
lastCalculatedDatestring
purchaseOrderNumberstring
externalInvoiceReferencestring
billTotaldouble
dtCreatedstring
dtLastModifiedstring
createdBystring
lastModifiedBystring
deletedboolean

Bill Line Item

Field NameData TypeNotes
idstringuuid (primary key)
versioninteger
productIdstringuuid (foreign key to product)
aggregationIdstringuuid (foreign key to aggregation)
compoundAggregationIdstringuuid (foreign key to compound aggregation)
counterIdstringuuid (foreign key to counter)
segmentstringJSON Object
meterIdstringuuid (foreign key to meter)
planIdstringuuid (foreign key to plan)
planGroupIdstringuuid (foreign key to plan group)
commitmentIdstringuuid (foreign key to commitment)
balanceIdstringuuid (foreign key to balance)
billIdstringuuid (foreign key to bill)
productNamestring
productCodestring
descriptionstring
quantityfloat
unitsfloat
unitstring
subtotalfloat
currencystring
conversionRatefloat
convertedSubtotalfloat
creditTypeIdstringuuid (foreign key to credit type)
lineItemTypestring
pricingIdstringuuid (foreign key to pricing)
bandUsagestringJSON Object
servicePeriodStartDatestring
servicePeriodEndDatestring
referenceBillIdstring
referenceLineItemIdstring
reasonIdstringuuid (foreign key to reason)
contractIdstringuuid (foreign key to contract)
averageUnitPricefloat
sequenceNumberinteger
dtCreatedstring
dtLastModifiedstring
createdBystring
lastModifiedBystring
deletedboolean

Commitment/Prepayment

Field NameData TypeNotes
idstringuuid (primary key)
versioninteger
accountIdstringuuid (foreign key to account)
billingPlanIdstringuuid (foreign key to billing plan)
productIdsstringJSON Object
startDatestring
endDatestring
currencystring
amountfloat
amountPrePaidfloat
amountFirstBillfloat
amountSpentfloat
overageSurchargePercentfloat
separateOverageUsageboolean
billingIntervalinteger
billingOffsetinteger
commitmentFeeDescriptionstring
commitmentUsageDescriptionstring
overageDescriptionstring
commitmentFeeBillInAdvanceboolean
billEpochstring
contractIdstringuuid (foreign key to contract)
accountingProductIdstringuuid (foreign key to accounting product)
childBillingModestring
lineItemTypesstringJSON Object
dtCreatedstring
dtLastModifiedstring
createdBystring
lastModifiedBystring
deletedboolean

Compound Aggregation

Field NameData TypeNotes
idstringuuid (primary key)
versioninteger
namestring
codestring
roundingstring
quantityPerUnitinteger
unitstring
productIdstringuuid (foreign key to product)
calculationstring
evaluateNullAggregationsboolean
customFieldsstringJSON object
dtCreatedstring
dtLastModifiedstring
createdBystring
lastModifiedBystring
deletedstring

Contract

Field NameData TypeNotes
idstringuuid (primary key)
versioninteger
accountIdstringuuid (foreign key to account)
namestring
codestring
descriptionstring
purchaseOrderNumberstring
startDatestring
endDatestring
customFieldsstringJSON object
dtCreatedstring
dtLastModifiedstring
createdBystring
lastModifiedBystring
deletedboolean

Meter

Field NameData TypeNotes
idstringuuid (primary key)
versioninteger
namestring
codestring
productIdstringuuid (foreign key to product)
dataFieldsarray of objects: category; code; name; unitJSON
derivedFieldsarray of objects: category; code; name; unit; calculationJSON
customFieldsstringJSON object
dtCreatedstring
dtLastModifiedstring
createdBystring
lastModifiedBystring
deletedboolean

Plan

Field NameData TypeNotes
idstringuuid (primary key)
versioninteger
namestring
codestring
planTemplateIdstringuuid (foreign key to plan template)
productIdstringuuid (foreign key to product)
ordinalinteger
bespokeboolean
minimumSpendfloat
minimumSpendDescriptionstring
accountIdstringuuid
standingChargefloat
standingChargeDescriptionstring
standingChargeBillInAdvanceboolean
minimumSpendBillInAdvanceboolean
customFieldsstringJSON object
dtCreatedstring
dtLastModifiedstring
createdBystring
lastModifiedBystring
deletedboolean

Plan Group

Field NameData TypeNotes
idstringuuid (primary key)
versioninteger
namestring
codestring
standingChargefloat
standingChargeDescriptionstring
standingChargeBillInAdvanceboolean
standingChargeAccountingProductIdstringuuid (foreign key to standing charge accounting product)
minimumSpendfloat
minimumSpendDescriptionstring
minimumSpendBillInAdvanceboolean
minimumSpendAccountingProductIdstringuuid (foreign key to minimum spend accounting product)
currencystring
accountIdstringuuid (foreign key to account)
customFieldsstringJSON object
dtCreatedstring
dtLastModifiedstring
createdBystring
lastModifiedBystring
deletedboolean
Column AData TypeNotes
idstringuuid (primary key)
versioninteger
planGroupIdstringuuid (foreign key to plan group)
planIdstringuuid (foreign key to plan)
dtCreatedstring
dtLastModifiedstring
createdBystring
lastModifiedBystring
deletedboolean

Plan Template

Field NameData TypeNotes
idstringuuid (primary key)
versioninteger
namestring
codestring
productIdstringuuid (foreign key to product)
currencystring
standingChargefloat
standingChargeDescriptioonstring
standingChargeIntervalinteger
standingChargeOffsetinteger
standingChargeBillInAdvanceboolean
billFrequencystring
billFrequencyIntervalinteger
ordinalinteger
minimumSpendfloat
minimumSpendDescriptionstring
minimumSpendBillInAdvanceboolean
customFieldsstringJSON object
dtCreatedstring
dtLastModifiedstring
createdBystring
lastModifiedBystring
deletedboolean

Pricing

Field NameData TypeNotes
idstringuuid (primary key)
versionboolean
codestring
descriptionstring
planIdstringuuid (foreign key to plan)
planTemplateIdstringuuid (foreign key to plan template)
startDatestring
endDatestring
minimumSpendfloat
minimumSpend Descriptionstring
minimumSpendBillInAdvanceboolean
aggregationIdstringuuid (foreign key to aggregation)
aggregationTypestring
compoundAggregationIdstringuuid (foreign key to compound aggregation)
cumulativeboolean
typestring
segmentstringJSON Object
tiersSpanPlanboolean
dtCreatedstring
dtLastModifiedstring
createdbystring
lastModifiedBystring
deletedboolean

Pricing Band

Field NameData TypeNotes
idstringuuid (primary key)
versioninteger
pricingIdstringuuid (foreign key to pricing)
lowerLimitfloat
fixedPricefloat
unitPricefloat
typestring
dtCreatedstring
dtLastModifiedstring
createdBystring
lastModifiedBystring
deletedboolean

Product

Field NameData TypeNotes
idstringuuid (primary key)
versioninteger
namestring
codestring
customFieldsstringJSON object
dtCreatedstring
dtLastModifiedstring
createdBystring
lastModifiedBystring
deletedboolean

Usage (Measurements)

The Measurement schema for exported usage data is set out in the following tables:

Note that what is contained in a particular usage data export is dependent upon the configuration set up for the export. Some fields will be included in all usage exports but the inclusion of others will depend on selections made for aggregating usage data for the export. These dependencies are noted for the relevant fields in the following tables.

Raw

Field NameData TypeNotes
meter_idstringuuid (foreign key to meter)
timestampstring
uidstringuuid (primary key)
etsstring
received_atstring
account_idstringuuid (foreign key to account)
FIELDS DEPENDENT ON METER CONFIGBoth Dimension (String) and Fact or Measure (Numeric) Meter data fields are included for raw usage data exports.
{field_name} (ORIGINAL)stringGeneral header format for both Dimension and Fact Meter Data Fields included for export. In any particular usage export, the fields included will be determined by the time period configured for the export.

Aggregated

Field NameData TypeNotes
meter_idstringuuid (foreign key to meter)
timestampstring
yearstring
account_idstringuuid (foreign key to account) Optional - only exported for export if filtering by Accounts.
FIELDS DEPENDENT ON METER CONFIGOnly Fact or Measure (Numeric) Meter data fields are included for aggregated usage data exports.
{field_name} ({aggregation_type})stringGeneral header format for Fact Meter Data Fields included for export. In any particular usage export, the fields included will be determined by the time period configured for the export.
FIELDS DEPENDENT ON AGGREGATION CONFIGInclusion in export depends on selected aggregation frequency.
monthstringIncluded if frequency is, monthly, weekly, daily, or hourly.
weekstringIncluded if frequency is weekly, daily, or hourly.
daystringIncluded if frequency is daily or hourly.
hourstringIncluded if frequency is hourly.



Additional Support

Login to the Support portal for additional help and to send questions to our Support team.