Skip to main content
GET
/
organizations
/
{orgId}
/
statementdefinitions
List StatementDefinitions
curl --request GET \
  --url https://api.m3ter.com/organizations/{orgId}/statementdefinitions \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "id": "<string>",
      "version": 123,
      "name": "<string>",
      "aggregationFrequency": "DAY",
      "includePricePerUnit": true,
      "dimensions": [
        {
          "name": "<string>",
          "filter": [
            "<string>"
          ],
          "meterId": "<string>",
          "attributes": [
            "<string>"
          ]
        }
      ],
      "measures": [
        {
          "meterId": "<string>",
          "name": "<string>",
          "aggregations": [
            "SUM"
          ]
        }
      ],
      "generateSlimStatements": true,
      "dtCreated": "2023-11-07T05:31:56Z",
      "dtLastModified": "2023-11-07T05:31:56Z",
      "createdBy": "<string>",
      "lastModifiedBy": "<string>"
    }
  ],
  "nextToken": "<string>"
}

Authorizations

Authorization
string
header
required

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

orgId
string
required

The unique identifier (UUID) of your Organization. The Organization represents your company as a direct customer of our service.

Query Parameters

pageSize
integer<int32>

Specifies the maximum number of StatementDefinitions to retrieve per page.

Required range: 1 <= x <= 100
nextToken
string

The nextToken for multi-page retrievals. It is used to fetch the next page of StatementDefinitions in a paginated list.

Response

Returns the list of requested StatementDefinitions

data
object[]
nextToken
string