Skip to main content
PUT
/
organizations
/
{orgId}
/
billconfig
Update BillConfig
curl --request PUT \
  --url https://api.m3ter.com/organizations/{orgId}/billconfig \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "version": 123,
  "billLockDate": "2023-12-25"
}
'
{
  "id": "<string>",
  "version": 123,
  "billLockDate": "2023-12-25",
  "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

UUID of the organization. The Organization represents your company as a direct customer of the m3ter service.

Body

application/json
version
integer<int64>

The version number:

  • Default value when newly created is one.
  • 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
billLockDate
string<date>

The global lock date when all Bills will be locked (in ISO 8601 format).

For example: "2024-03-01".

Response

Return the updated BillConfig

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.
billLockDate
string<date>

The global lock date (in ISO 8601 format) when all Bills will be locked.

For example: "2024-03-01".

dtCreated
string<date-time>

The DateTime (in ISO-8601 format) when the bill config was first created.

dtLastModified
string<date-time>

The DateTime (in ISO-8601 format) when the bill config was last modified.

createdBy
string

The id of the user who created this bill config.

lastModifiedBy
string

The id of the user who last modified this bill config.