Create StatementDefinition
Create a new StatementDefinition.
This endpoint creates a new StatementDefinition within the specified Organization. The details of the StatementDefinition are provided in the request body.
Authorizations
m3ter supports machine to machine authentication using the clientCredentials OAuth2 flow.
The authorizationCode flow controls access for human users via the m3ter Console application.
Path Parameters
The unique identifier (UUID) of your Organization. The Organization represents your company as a direct customer of our service.
Body
This specifies how often the Statement should aggregate data.
ORIGINAL, HOUR, DAY, WEEK, MONTH, QUARTER, YEAR, WHOLE_PERIOD The version number of the entity:
- Create entity: Not valid for initial insertion of new entity - do not use for Create. On initial Create, version is set at 1 and listed in the response.
- Update Entity: On Update, version is required and must match the existing version because a check is performed to ensure sequential versioning is preserved. Version is incremented by 1 and listed in the response.
Descriptive name for the StatementDefinition providing context and information.
A Boolean indicating whether to include the price per unit in the Statement.
- TRUE - includes the price per unit.
- FALSE - excludes the price per unit.
An array of objects, each representing a Dimension data field from a Meter (for Meters that have Dimensions setup).
An array of objects, each representing a Measure data field from a Meter.
Response
Returns the created StatementDefinition
The unique identifier (UUID) of the StatementDefinition.
The version number. Default value when newly created is one.
Descriptive name for the StatementDefinition providing context and information.
This specifies how often the Statement should aggregate data.
ORIGINAL, HOUR, DAY, WEEK, MONTH, QUARTER, YEAR, WHOLE_PERIOD A Boolean indicating whether to include the price per unit in the Statement.
- TRUE - includes the price per unit.
- FALSE - excludes the price per unit.
An array of objects, each representing a Dimension data field from a Meter (for Meters that have Dimensions setup).
An array of objects, each representing a Measure data field from a Meter.
The date and time (in ISO-8601 format) when the StatementDefinition was created.
The date and time (in ISO-8601 format) when the StatementDefinition was last modified.
The unique identifier (UUID) of the user who created this StatementDefinition.
The unique identifier (UUID) of the user who last modified this StatementDefinition.