Skip to main content
GET
/
organizations
/
{orgId}
/
plangroups
List PlanGroups
curl --request GET \
  --url https://api.m3ter.com/organizations/{orgId}/plangroups \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "id": "<string>",
      "version": 123,
      "customFields": {},
      "name": "<string>",
      "code": "<string>",
      "standingCharge": 123,
      "standingChargeDescription": "<string>",
      "minimumSpend": 123,
      "minimumSpendDescription": "<string>",
      "currency": "<string>",
      "standingChargeBillInAdvance": true,
      "minimumSpendBillInAdvance": true,
      "accountId": "<string>",
      "minimumSpendAccountingProductId": "<string>",
      "standingChargeAccountingProductId": "<string>",
      "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 PlanGroups to retrieve per page.

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

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

accountId
string[]

Optional filter. The list of Account IDs to which the PlanGroups belong.

ids
string[]

Optional filter. The list of PlanGroup IDs to retrieve.

Response

Returns the list of PlanGroups

data
object[]
nextToken
string