Skip to main content
POST
/
organizations
/
{orgId}
/
balances
/
{balanceId}
/
transactions
Create Balance Transaction
curl --request POST \
  --url https://api.m3ter.com/organizations/{orgId}/balances/{balanceId}/transactions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "amount": 123,
  "version": 123,
  "description": "<string>",
  "paid": 123,
  "currencyPaid": "<string>",
  "transactionTypeId": "<string>",
  "appliedDate": "2023-11-07T05:31:56Z",
  "transactionDate": "2023-11-07T05:31:56Z"
}
'
{
  "id": "<string>",
  "version": 123,
  "description": "<string>",
  "amount": 123,
  "paid": 123,
  "currencyPaid": "<string>",
  "entityType": "BILL",
  "entityId": "<string>",
  "transactionTypeId": "<string>",
  "appliedDate": "2023-11-07T05:31:56Z",
  "transactionDate": "2023-11-07T05:31:56Z",
  "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.

balanceId
string
required

The unique identifier (UUID) for the Balance to which you want to add a transaction.

Body

application/json
amount
number
required

The financial value of the transaction.

version
integer<int64>

The version number of the entity:

  • Create entity: Not valid for initial insertion of new entity - do not use for Create. On initial Create, version is set at 1 and listed in the response.
  • Update Entity: 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.
description
string

A brief description explaining the purpose and context of the transaction.

paid
number

The payment amount if the payment currency differs from the Balance currency.

currencyPaid
string

The currency code of the payment if it differs from the Balance currency. For example: USD, GBP or EUR.

transactionTypeId
string

The unique identifier (UUID) of the transaction type. This is obtained from the list of created Transaction Types within the Organization Configuration.

Maximum string length: 36
appliedDate
string<date-time>

The date (in ISO 8601 format) when the Balance transaction was applied.

transactionDate
string<date-time>

The date (in ISO 8601 format) when the transaction occurred.

Response

Returns the created Balance transaction

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.
description
string

A brief description explaining the purpose or context of the transaction.

amount
number

The financial value of the transaction, as recorded in the balance.

paid
number

The actual payment amount if the payment currency differs from the Balance currency.

currencyPaid
string

The currency code such as USD, GBP, EUR of the payment, if it differs from the balance currency.

entityType
enum<string>

The type of entity associated with the Transaction - identifies who or what was responsible for the Transaction being added to the Balance - such as a User, a Service User, or a Bill.

Available options:
BILL,
COMMITMENT,
USER,
SERVICE_USER,
SCHEDULER
entityId
string

The unique identifier (UUID) for the entity associated with the Transaction, as specified by the entityType.

transactionTypeId
string

The unique identifier (UUID) for the Transaction type. This is obtained from the list of created Transaction Types within the Organization Configuration.

appliedDate
string<date-time>

The date (in ISO 8601 format) when the balance transaction was applied, i.e., when the balance was affected.

transactionDate
string<date-time>

The date (in ISO 8601 format) when the transaction was recorded in the system.

dtCreated
string<date-time>

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

dtLastModified
string<date-time>

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

createdBy
string

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

lastModifiedBy
string

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