Skip to main content
GET
/
organizations
/
{orgId}
/
accountplans
/
{id}
Retrieve AccountPlan
curl --request GET \
  --url https://api.m3ter.com/organizations/{orgId}/accountplans/{id} \
  --header 'Authorization: Bearer <token>'
{
  "id": "<string>",
  "version": 123,
  "customFields": {},
  "accountId": "<string>",
  "productId": "<string>",
  "planId": "<string>",
  "planGroupId": "<string>",
  "startDate": "2023-11-07T05:31:56Z",
  "endDate": "2023-11-07T05:31:56Z",
  "code": "<string>",
  "billEpoch": "2023-12-25",
  "contractId": "<string>",
  "childBillingMode": "PARENT_SUMMARY",
  "dtCreated": "2023-11-07T05:31:56Z",
  "dtLastModified": "2023-11-07T05:31:56Z",
  "createdBy": "<string>",
  "lastModifiedBy": "<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) for your Organization. The Organization represents your company as a direct customer of our service.

id
string
required

The unique identifier (UUID) of the AccountPlan or AccountPlanGroup to retrieve.

Response

Returns the AccountPlan or AccountPlanGroup

id
string
required

The UUID of the entity.

version
integer<int64>

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.
customFields
object

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.

accountId
string

The unique identifier (UUID) for the Account to which the AccountPlan or AccounPlanGroup is attached.

productId
string

The unique identifier (UUID) for the Product associated with the AccountPlan.

Note: Not present in response for AccountPlanGroup - Plan Groups can contain multiple Plans belonging to different Products.

planId
string

The unique identifier (UUID) of the Plan that has been attached to the Account to create the AccountPlan.

planGroupId
string

The unique identifier (UUID) of the Plan Group that has been attached to the Account to create the AccountPlanGroup.

startDate
string<date-time>

The start date (in ISO-8601 format) for the when the AccountPlan or AccountPlanGroup starts to be active for the Account.

endDate
string<date-time>

The end date (in ISO-8601 format) for when the AccountPlan or AccountPlanGroup ceases to be active for the Account. If not specified, the AccountPlan or AccountPlanGroup remains active indefinitely.

code
string

The unique short code of the AccountPlan or AccountPlanGroup.

billEpoch
string<date>

The initial date for creating the first bill against the Account for charges due under the AccountPlan or AccountPlanGroup. All subsequent bill creation dates are calculated from this date. If left empty, the first bill date definedfor the Account is used. The date is in ISO-8601 format.

contractId
string

The unique identifier (UUID) for the Contract to which the Plan or Plan Group attached to the Account has been added.

childBillingMode
enum<string>

If the Account is either a Parent or a Child Account, this specifies the Account hierarchy billing mode. The mode determines how billing will be handled and shown on bills for charges due on the Parent Account, and charges due on Child Accounts:

  • Parent Breakdown - a separate bill line item per Account. Default setting.

  • Parent Summary - single bill line item for all Accounts.

  • Child - the Child Account is billed.

Available options:
PARENT_SUMMARY,
PARENT_BREAKDOWN,
CHILD
dtCreated
string<date-time>

The date and time (in ISO 8601 format) when the AccountPlan or AccountPlanGroup was first created.

dtLastModified
string<date-time>

The date and time (in ISO 8601 format) when the AccountPlan or AccountPlanGroup was last modified.

createdBy
string

The unique identifier (UUID) for the user who created the AccountPlan or AccountPlanGroup.

lastModifiedBy
string

The unique identifier (UUID) for the user who last modified the AccountPlan or AccountPlanGroup.