Skip to main content
DELETE
/
organizations
/
{orgId}
/
plangroups
/
{id}
Delete PlanGroup
curl --request DELETE \
  --url https://api.m3ter.com/organizations/{orgId}/plangroups/{id} \
  --header 'Authorization: Bearer <token>'
{
  "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>"
}

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.

id
string
required

The unique identifier (UUID) of the PlanGroup to delete.

Response

Returns the deleted PlanGroup

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.

name
string

The name of the PlanGroup.

code
string

The short code representing the PlanGroup.

standingCharge
number<double>

Standing charge amount for the PlanGroup.

standingChargeDescription
string

Description of the standing charge, displayed on the bill line item.

minimumSpend
number<double>

The minimum spend amount for the PlanGroup.

minimumSpendDescription
string

Description of the minimum spend, displayed on the bill line item.

currency
string

Currency code for the PlanGroup (For example, USD).

standingChargeBillInAdvance
boolean

A boolean flag that determines when the standing charge is billed. This flag overrides the setting at Organizational level for standing charge billing in arrears/in advance.

  • TRUE - standing charge is billed at the start of each billing period.
  • FALSE - standing charge is billed at the end of each billing period.
minimumSpendBillInAdvance
boolean

A boolean flag that determines when the minimum spend is billed. This flag overrides the setting at Organizational level for minimum spend billing in arrears/in advance.

  • TRUE - minimum spend is billed at the start of each billing period.
  • FALSE - minimum spend is billed at the end of each billing period.
accountId
string

Optional. This PlanGroup was created as bespoke for the associated Account with this Account ID.

minimumSpendAccountingProductId
string

Optional. Product ID to attribute the PlanGroup's minimum spend for accounting purposes.

standingChargeAccountingProductId
string

Optional. Product ID to attribute the PlanGroup's standing charge for accounting purposes.

dtCreated
string<date-time>

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

dtLastModified
string<date-time>

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

createdBy
string

The unique identifier (UUID) for the user who created the PlanGroup.

lastModifiedBy
string

The unique identifier (UUID) for the user who last modified the PlanGroup.