> ## Documentation Index
> Fetch the complete documentation index at: https://docs.m3ter.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Balances

## List BalanceTransactionSchedule

**Function name:** `m3ter_ListBalanceTransactionSchedule`
**Category:** READ
**HTTP method:** GET (paginated)
**Destination:** m3ter

Retrieve a list of BalanceTransactionSchedule entities.

### Parameters

| Name                       | Label            | Type                    | Required | Description                                | Constraints                                                           |
| -------------------------- | ---------------- | ----------------------- | :------: | ------------------------------------------ | --------------------------------------------------------------------- |
| `integrationCredentialsId` | Credentials      | M3terEntityParameter    |    Yes   | The m3ter credentials to use.              | m3terEntity: IntegrationCredentials, authType: M3TER\_SIGNED\_REQUEST |
| `balanceId`                | balanceId        | LookupParameter         |    Yes   | UUID of the balance                        | -                                                                     |
| `statePath`                | State Path       | StateVariableParameter  |    No    | State variable to store the response.      | -                                                                     |
| `queryParams`              | Query Parameters | KeyValueLookupParameter |    No    | Query parameters to include in the request | allowedValues: ids                                                    |

### Exits

| Exit    | Description                                                                      |
| ------- | -------------------------------------------------------------------------------- |
| `NEXT`  | The API call succeeded.                                                          |
| `ERROR` | The API call failed. Error details are stored in the `m3shError` state variable. |

## Create BalanceTransactionSchedule

**Function name:** `m3ter_CreateBalanceTransactionSchedule`
**Category:** WRITE
**HTTP method:** POST
**Destination:** m3ter

Create a new BalanceTransactionSchedule.

### Parameters

| Name                       | Label        | Type                   | Required | Description                            | Constraints                                                           |
| -------------------------- | ------------ | ---------------------- | :------: | -------------------------------------- | --------------------------------------------------------------------- |
| `integrationCredentialsId` | Credentials  | M3terEntityParameter   |    Yes   | The m3ter credentials to use.          | m3terEntity: IntegrationCredentials, authType: M3TER\_SIGNED\_REQUEST |
| `balanceId`                | balanceId    | LookupParameter        |    Yes   | UUID of the balance                    | -                                                                     |
| `requestPath`              | Request Path | StateVariableParameter |    Yes   | State variable containing the request. | -                                                                     |
| `statePath`                | State Path   | StateVariableParameter |    No    | State variable to store the response.  | -                                                                     |

### Exits

| Exit    | Description                                                                      |
| ------- | -------------------------------------------------------------------------------- |
| `NEXT`  | The API call succeeded.                                                          |
| `ERROR` | The API call failed. Error details are stored in the `m3shError` state variable. |

## Retrieve BalanceChargeSchedule

**Function name:** `m3ter_GetBalanceChargeSchedule`
**Category:** READ
**HTTP method:** GET
**Destination:** m3ter

Retrieve a BalanceChargeSchedule for the given UUID.

### Parameters

| Name                       | Label       | Type                   | Required | Description                                        | Constraints                                                           |
| -------------------------- | ----------- | ---------------------- | :------: | -------------------------------------------------- | --------------------------------------------------------------------- |
| `integrationCredentialsId` | Credentials | M3terEntityParameter   |    Yes   | The m3ter credentials to use.                      | m3terEntity: IntegrationCredentials, authType: M3TER\_SIGNED\_REQUEST |
| `balanceId`                | balanceId   | LookupParameter        |    Yes   | UUID of the balance                                | -                                                                     |
| `id`                       | id          | LookupParameter        |    Yes   | The UUID of the BalanceChargeSchedule to retrieve. | -                                                                     |
| `statePath`                | State Path  | StateVariableParameter |    No    | State variable to store the response.              | -                                                                     |

### Exits

| Exit    | Description                                                                      |
| ------- | -------------------------------------------------------------------------------- |
| `NEXT`  | The API call succeeded.                                                          |
| `ERROR` | The API call failed. Error details are stored in the `m3shError` state variable. |

## Update BalanceChargeSchedule

**Function name:** `m3ter_UpdateBalanceChargeSchedule`
**Category:** WRITE
**HTTP method:** PUT
**Destination:** m3ter

Update a BalanceChargeSchedule for the given UUID.

### Parameters

| Name                       | Label        | Type                   | Required | Description                                      | Constraints                                                           |
| -------------------------- | ------------ | ---------------------- | :------: | ------------------------------------------------ | --------------------------------------------------------------------- |
| `integrationCredentialsId` | Credentials  | M3terEntityParameter   |    Yes   | The m3ter credentials to use.                    | m3terEntity: IntegrationCredentials, authType: M3TER\_SIGNED\_REQUEST |
| `balanceId`                | balanceId    | LookupParameter        |    Yes   | UUID of the balance                              | -                                                                     |
| `id`                       | id           | LookupParameter        |    Yes   | The UUID of the BalanceChargeSchedule to update. | -                                                                     |
| `requestPath`              | Request Path | StateVariableParameter |    Yes   | State variable containing the request.           | -                                                                     |
| `statePath`                | State Path   | StateVariableParameter |    No    | State variable to store the response.            | -                                                                     |

### Exits

| Exit    | Description                                                                      |
| ------- | -------------------------------------------------------------------------------- |
| `NEXT`  | The API call succeeded.                                                          |
| `ERROR` | The API call failed. Error details are stored in the `m3shError` state variable. |

## Delete BalanceChargeSchedule

**Function name:** `m3ter_DeleteBalanceChargeSchedule`
**Category:** WRITE
**HTTP method:** DELETE
**Destination:** m3ter

Delete the BalanceChargeSchedule for the given UUID.

### Parameters

| Name                       | Label       | Type                   | Required | Description                                      | Constraints                                                           |
| -------------------------- | ----------- | ---------------------- | :------: | ------------------------------------------------ | --------------------------------------------------------------------- |
| `integrationCredentialsId` | Credentials | M3terEntityParameter   |    Yes   | The m3ter credentials to use.                    | m3terEntity: IntegrationCredentials, authType: M3TER\_SIGNED\_REQUEST |
| `balanceId`                | balanceId   | LookupParameter        |    Yes   | UUID of the balance                              | -                                                                     |
| `id`                       | id          | LookupParameter        |    Yes   | The UUID of the BalanceChargeSchedule to update. | -                                                                     |
| `statePath`                | State Path  | StateVariableParameter |    No    | State variable to store the response.            | -                                                                     |

### Exits

| Exit    | Description                                                                      |
| ------- | -------------------------------------------------------------------------------- |
| `NEXT`  | The API call succeeded.                                                          |
| `ERROR` | The API call failed. Error details are stored in the `m3shError` state variable. |

## Preview ScheduledBalanceTransactions

**Function name:** `m3ter_PreviewBalanceTransactionSchedule`
**Category:** WRITE
**HTTP method:** POST
**Destination:** m3ter

Previews the BalanceTransactions this Schedule would create, without persisting them. You can use this call to obtain a preview of the Transactions a Schedule you plan to create for a Balance would generate.

### Parameters

| Name                       | Label        | Type                   | Required | Description                            | Constraints                                                           |
| -------------------------- | ------------ | ---------------------- | :------: | -------------------------------------- | --------------------------------------------------------------------- |
| `integrationCredentialsId` | Credentials  | M3terEntityParameter   |    Yes   | The m3ter credentials to use.          | m3terEntity: IntegrationCredentials, authType: M3TER\_SIGNED\_REQUEST |
| `balanceId`                | balanceId    | LookupParameter        |    Yes   | UUID of the balance                    | -                                                                     |
| `requestPath`              | Request Path | StateVariableParameter |    Yes   | State variable containing the request. | -                                                                     |
| `statePath`                | State Path   | StateVariableParameter |    No    | State variable to store the response.  | -                                                                     |

### Exits

| Exit    | Description                                                                      |
| ------- | -------------------------------------------------------------------------------- |
| `NEXT`  | The API call succeeded.                                                          |
| `ERROR` | The API call failed. Error details are stored in the `m3shError` state variable. |

## List Balances

**Function name:** `m3ter_ListBalances`
**Category:** READ
**HTTP method:** GET (paginated)
**Destination:** m3ter

Retrieve a list of all Balances for your Organization.

This endpoint returns a list of all Balances associated with your organization. You can filter the Balances by the end customer's Account UUID and end dates, and paginate through them using the `pageSize` and `nextToken` parameters.

**NOTE:** If a Balance has a rollover amount configured and you want to use the `endDateStart` or `endDateEnd` query parameters, the `rolloverEndDate` is used as the end date/time for the Balance.

### Parameters

| Name                       | Label            | Type                    | Required | Description                                | Constraints                                                              |
| -------------------------- | ---------------- | ----------------------- | :------: | ------------------------------------------ | ------------------------------------------------------------------------ |
| `integrationCredentialsId` | Credentials      | M3terEntityParameter    |    Yes   | The m3ter credentials to use.              | m3terEntity: IntegrationCredentials, authType: M3TER\_SIGNED\_REQUEST    |
| `statePath`                | State Path       | StateVariableParameter  |    No    | State variable to store the response.      | -                                                                        |
| `queryParams`              | Query Parameters | KeyValueLookupParameter |    No    | Query parameters to include in the request | allowedValues: accountId,endDateStart,endDateEnd,contract,contractId,ids |

### Exits

| Exit    | Description                                                                      |
| ------- | -------------------------------------------------------------------------------- |
| `NEXT`  | The API call succeeded.                                                          |
| `ERROR` | The API call failed. Error details are stored in the `m3shError` state variable. |

## Create Balance

**Function name:** `m3ter_PostBalance`
**Category:** WRITE
**HTTP method:** POST
**Destination:** m3ter

Create a new Balance for the given end customer Account.

This endpoint allows you to create a new Balance for a specific end customer Account. The Balance details should be provided in the request body.

### Parameters

| Name                       | Label        | Type                   | Required | Description                            | Constraints                                                           |
| -------------------------- | ------------ | ---------------------- | :------: | -------------------------------------- | --------------------------------------------------------------------- |
| `integrationCredentialsId` | Credentials  | M3terEntityParameter   |    Yes   | The m3ter credentials to use.          | m3terEntity: IntegrationCredentials, authType: M3TER\_SIGNED\_REQUEST |
| `requestPath`              | Request Path | StateVariableParameter |    Yes   | State variable containing the request. | -                                                                     |
| `statePath`                | State Path   | StateVariableParameter |    No    | State variable to store the response.  | -                                                                     |

### Exits

| Exit    | Description                                                                      |
| ------- | -------------------------------------------------------------------------------- |
| `NEXT`  | The API call succeeded.                                                          |
| `ERROR` | The API call failed. Error details are stored in the `m3shError` state variable. |

## List Transactions

**Function name:** `m3ter_ListBalanceTransactions`
**Category:** READ
**HTTP method:** GET (paginated)
**Destination:** m3ter

Retrieve all Transactions for a specific Balance.

This endpoint returns a list of all Transactions associated with a specific Balance. You can paginate through the Transactions by using the `pageSize` and `nextToken` parameters.

### Parameters

| Name                       | Label            | Type                    | Required | Description                                                                           | Constraints                                                           |
| -------------------------- | ---------------- | ----------------------- | :------: | ------------------------------------------------------------------------------------- | --------------------------------------------------------------------- |
| `integrationCredentialsId` | Credentials      | M3terEntityParameter    |    Yes   | The m3ter credentials to use.                                                         | m3terEntity: IntegrationCredentials, authType: M3TER\_SIGNED\_REQUEST |
| `balanceId`                | balanceId        | LookupParameter         |    Yes   | The unique identifier (UUID) for the Balance whose Transactions you want to retrieve. | -                                                                     |
| `statePath`                | State Path       | StateVariableParameter  |    No    | State variable to store the response.                                                 | -                                                                     |
| `queryParams`              | Query Parameters | KeyValueLookupParameter |    No    | Query parameters to include in the request                                            | allowedValues: transactionTypeId,entityType,entityId                  |

### Exits

| Exit    | Description                                                                      |
| ------- | -------------------------------------------------------------------------------- |
| `NEXT`  | The API call succeeded.                                                          |
| `ERROR` | The API call failed. Error details are stored in the `m3shError` state variable. |

## Create Balance Transaction

**Function name:** `m3ter_PostBalanceTransaction`
**Category:** WRITE
**HTTP method:** POST
**Destination:** m3ter

Add a Transaction to a Balance. This endpoint allows you to create a new Transaction amount for a Balance. This amount then becomes available at billing for draw-down to cover charges due. The Transaction details should be provided in the request body.

Before you can add a Transaction amount, you must first set up Transaction Types at the Organization Level - see the [Transaction Type](https://docs.m3ter.com/api/transactiontype/introduction) section in this API Reference for more details. You can then use this call to add an instance of a Transaction Type to a Balance.

**Note:** If you have a customer whose payment is in a different currency to the Balance currency, you can use the `paid` and `paidCurrency` request parameters to record the amount paid and alternative currency respectively. For example, you might add a Transaction amount of 200 USD to a Balance on a customer Account where the customer actually paid you 50 units in virtual currency X.

### Parameters

| Name                       | Label        | Type                   | Required | Description                                                                          | Constraints                                                           |
| -------------------------- | ------------ | ---------------------- | :------: | ------------------------------------------------------------------------------------ | --------------------------------------------------------------------- |
| `integrationCredentialsId` | Credentials  | M3terEntityParameter   |    Yes   | The m3ter credentials to use.                                                        | m3terEntity: IntegrationCredentials, authType: M3TER\_SIGNED\_REQUEST |
| `balanceId`                | balanceId    | LookupParameter        |    Yes   | The unique identifier (UUID) for the Balance to which you want to add a transaction. | -                                                                     |
| `requestPath`              | Request Path | StateVariableParameter |    Yes   | State variable containing the request.                                               | -                                                                     |
| `statePath`                | State Path   | StateVariableParameter |    No    | State variable to store the response.                                                | -                                                                     |

### Exits

| Exit    | Description                                                                      |
| ------- | -------------------------------------------------------------------------------- |
| `NEXT`  | The API call succeeded.                                                          |
| `ERROR` | The API call failed. Error details are stored in the `m3shError` state variable. |

## List BalanceChargeSchedule

**Function name:** `m3ter_ListBalanceChargeSchedule`
**Category:** READ
**HTTP method:** GET (paginated)
**Destination:** m3ter

Retrieve a list of BalanceChargeSchedule entities

### Parameters

| Name                       | Label            | Type                    | Required | Description                                | Constraints                                                           |
| -------------------------- | ---------------- | ----------------------- | :------: | ------------------------------------------ | --------------------------------------------------------------------- |
| `integrationCredentialsId` | Credentials      | M3terEntityParameter    |    Yes   | The m3ter credentials to use.              | m3terEntity: IntegrationCredentials, authType: M3TER\_SIGNED\_REQUEST |
| `balanceId`                | balanceId        | LookupParameter         |    Yes   | UUID of the balance                        | -                                                                     |
| `statePath`                | State Path       | StateVariableParameter  |    No    | State variable to store the response.      | -                                                                     |
| `queryParams`              | Query Parameters | KeyValueLookupParameter |    No    | Query parameters to include in the request | allowedValues: ids                                                    |

### Exits

| Exit    | Description                                                                      |
| ------- | -------------------------------------------------------------------------------- |
| `NEXT`  | The API call succeeded.                                                          |
| `ERROR` | The API call failed. Error details are stored in the `m3shError` state variable. |

## Create BalanceChargeSchedule

**Function name:** `m3ter_CreateBalanceChargeSchedule`
**Category:** WRITE
**HTTP method:** POST
**Destination:** m3ter

Create a new BalanceChargeSchedule.

### Parameters

| Name                       | Label        | Type                   | Required | Description                            | Constraints                                                           |
| -------------------------- | ------------ | ---------------------- | :------: | -------------------------------------- | --------------------------------------------------------------------- |
| `integrationCredentialsId` | Credentials  | M3terEntityParameter   |    Yes   | The m3ter credentials to use.          | m3terEntity: IntegrationCredentials, authType: M3TER\_SIGNED\_REQUEST |
| `balanceId`                | balanceId    | LookupParameter        |    Yes   | UUID of the balance                    | -                                                                     |
| `requestPath`              | Request Path | StateVariableParameter |    Yes   | State variable containing the request. | -                                                                     |
| `statePath`                | State Path   | StateVariableParameter |    No    | State variable to store the response.  | -                                                                     |

### Exits

| Exit    | Description                                                                      |
| ------- | -------------------------------------------------------------------------------- |
| `NEXT`  | The API call succeeded.                                                          |
| `ERROR` | The API call failed. Error details are stored in the `m3shError` state variable. |

## Get Balance Transactions Summary

**Function name:** `m3ter_GetBalanceTransactionsSummary`
**Category:** READ
**HTTP method:** GET
**Destination:** m3ter

Retrieves the Balance Transactions Summary for a given Balance.

The response contains useful recorded and calculated Transaction amounts created for a Balance during the time it is active for the Account, including amounts relevant to any rollover amount configured for a Balance:

* `totalCreditAmount`. The sum of all credits amounts created for the Balance.
* `totalDebitAmount`. The sum of all debit amounts created for the Balance.
* `initialCreditAmount`. The initial credit amount created for the Balance.
* `expiredBalanceAmount`. The amount of the Balance remaining at the time the Balance expires and which is not included in any configured Rollover amount. For example,suppose a Balance reaches its end date and 1000 credit remains unused. If the Balance is configured to rollover 800, then the `expiredBalanceAmount` is calculated as 1000 - 800 = 200.
* `rolloverConsumed`. The sum of debits made against the configured rollover amount. Note that this amount is dynamic relative to when the API call is made until either the rollover end date is reached or the cap configured for the rollover amount is reached, after which it will be unchanged. If no rollover is configured for a Balance, then this is ignored.
* `balanceConsumed`. The sum of debits made against the Balance. Note that this amount is dynamic relative to when the API call is made until either the Balance end date is reached or the available Balance amount reaches zero, after which it will be unchanged.

### Parameters

| Name                       | Label       | Type                   | Required | Description                           | Constraints                                                           |
| -------------------------- | ----------- | ---------------------- | :------: | ------------------------------------- | --------------------------------------------------------------------- |
| `integrationCredentialsId` | Credentials | M3terEntityParameter   |    Yes   | The m3ter credentials to use.         | m3terEntity: IntegrationCredentials, authType: M3TER\_SIGNED\_REQUEST |
| `balanceId`                | balanceId   | LookupParameter        |    Yes   | The UUID of the Balance               | -                                                                     |
| `statePath`                | State Path  | StateVariableParameter |    No    | State variable to store the response. | -                                                                     |

### Exits

| Exit    | Description                                                                      |
| ------- | -------------------------------------------------------------------------------- |
| `NEXT`  | The API call succeeded.                                                          |
| `ERROR` | The API call failed. Error details are stored in the `m3shError` state variable. |

## Preview ScheduledBalanceCharges

**Function name:** `m3ter_PreviewScheduledCharge`
**Category:** WRITE
**HTTP method:** POST
**Destination:** m3ter

Previews the Charges this Schedule would create, without persisting them. You can use this call to obtain a preview of the Charges a Schedule you plan to create for a Balance would generate.

### Parameters

| Name                       | Label        | Type                   | Required | Description                            | Constraints                                                           |
| -------------------------- | ------------ | ---------------------- | :------: | -------------------------------------- | --------------------------------------------------------------------- |
| `integrationCredentialsId` | Credentials  | M3terEntityParameter   |    Yes   | The m3ter credentials to use.          | m3terEntity: IntegrationCredentials, authType: M3TER\_SIGNED\_REQUEST |
| `balanceId`                | balanceId    | LookupParameter        |    Yes   | UUID of the balance                    | -                                                                     |
| `requestPath`              | Request Path | StateVariableParameter |    Yes   | State variable containing the request. | -                                                                     |
| `statePath`                | State Path   | StateVariableParameter |    No    | State variable to store the response.  | -                                                                     |

### Exits

| Exit    | Description                                                                      |
| ------- | -------------------------------------------------------------------------------- |
| `NEXT`  | The API call succeeded.                                                          |
| `ERROR` | The API call failed. Error details are stored in the `m3shError` state variable. |

## Retrieve Balance

**Function name:** `m3ter_GetBalance`
**Category:** READ
**HTTP method:** GET
**Destination:** m3ter

Retrieve a specific Balance.

This endpoint returns the details of the specified Balance.

### Parameters

| Name                       | Label       | Type                   | Required | Description                                              | Constraints                                                           |
| -------------------------- | ----------- | ---------------------- | :------: | -------------------------------------------------------- | --------------------------------------------------------------------- |
| `integrationCredentialsId` | Credentials | M3terEntityParameter   |    Yes   | The m3ter credentials to use.                            | m3terEntity: IntegrationCredentials, authType: M3TER\_SIGNED\_REQUEST |
| `id`                       | id          | LookupParameter        |    Yes   | The unique identifier (UUID) of the Balance to retrieve. | -                                                                     |
| `statePath`                | State Path  | StateVariableParameter |    No    | State variable to store the response.                    | -                                                                     |

### Exits

| Exit    | Description                                                                      |
| ------- | -------------------------------------------------------------------------------- |
| `NEXT`  | The API call succeeded.                                                          |
| `ERROR` | The API call failed. Error details are stored in the `m3shError` state variable. |

## Update Balance

**Function name:** `m3ter_PutBalance`
**Category:** WRITE
**HTTP method:** PUT
**Destination:** m3ter

Update a specific Balance.

This endpoint allows you to update the details of a specific Balance. The updated Balance details should be provided in the request body.

### Parameters

| Name                       | Label        | Type                   | Required | Description                                            | Constraints                                                           |
| -------------------------- | ------------ | ---------------------- | :------: | ------------------------------------------------------ | --------------------------------------------------------------------- |
| `integrationCredentialsId` | Credentials  | M3terEntityParameter   |    Yes   | The m3ter credentials to use.                          | m3terEntity: IntegrationCredentials, authType: M3TER\_SIGNED\_REQUEST |
| `id`                       | id           | LookupParameter        |    Yes   | The unique identifier (UUID) of the Balance to update. | -                                                                     |
| `requestPath`              | Request Path | StateVariableParameter |    Yes   | State variable containing the request.                 | -                                                                     |
| `statePath`                | State Path   | StateVariableParameter |    No    | State variable to store the response.                  | -                                                                     |

### Exits

| Exit    | Description                                                                      |
| ------- | -------------------------------------------------------------------------------- |
| `NEXT`  | The API call succeeded.                                                          |
| `ERROR` | The API call failed. Error details are stored in the `m3shError` state variable. |

## Delete Balance

**Function name:** `m3ter_DeleteBalance`
**Category:** WRITE
**HTTP method:** DELETE
**Destination:** m3ter

Delete a specific Balance.

This endpoint allows you to delete a specific Balance with the given UUID.

### Parameters

| Name                       | Label       | Type                   | Required | Description                                            | Constraints                                                           |
| -------------------------- | ----------- | ---------------------- | :------: | ------------------------------------------------------ | --------------------------------------------------------------------- |
| `integrationCredentialsId` | Credentials | M3terEntityParameter   |    Yes   | The m3ter credentials to use.                          | m3terEntity: IntegrationCredentials, authType: M3TER\_SIGNED\_REQUEST |
| `id`                       | id          | LookupParameter        |    Yes   | The unique identifier (UUID) of the Balance to delete. | -                                                                     |
| `statePath`                | State Path  | StateVariableParameter |    No    | State variable to store the response.                  | -                                                                     |

### Exits

| Exit    | Description                                                                      |
| ------- | -------------------------------------------------------------------------------- |
| `NEXT`  | The API call succeeded.                                                          |
| `ERROR` | The API call failed. Error details are stored in the `m3shError` state variable. |

## Retrieve BalanceTransactionSchedule

**Function name:** `m3ter_GetBalanceTransactionSchedule`
**Category:** READ
**HTTP method:** GET
**Destination:** m3ter

Retrieve a BalanceTransactionSchedule for the given UUID.

### Parameters

| Name                       | Label       | Type                   | Required | Description                                             | Constraints                                                           |
| -------------------------- | ----------- | ---------------------- | :------: | ------------------------------------------------------- | --------------------------------------------------------------------- |
| `integrationCredentialsId` | Credentials | M3terEntityParameter   |    Yes   | The m3ter credentials to use.                           | m3terEntity: IntegrationCredentials, authType: M3TER\_SIGNED\_REQUEST |
| `balanceId`                | balanceId   | LookupParameter        |    Yes   | UUID of the balance                                     | -                                                                     |
| `id`                       | id          | LookupParameter        |    Yes   | The UUID of the BalanceTransactionSchedule to retrieve. | -                                                                     |
| `statePath`                | State Path  | StateVariableParameter |    No    | State variable to store the response.                   | -                                                                     |

### Exits

| Exit    | Description                                                                      |
| ------- | -------------------------------------------------------------------------------- |
| `NEXT`  | The API call succeeded.                                                          |
| `ERROR` | The API call failed. Error details are stored in the `m3shError` state variable. |

## Update BalanceTransactionSchedule

**Function name:** `m3ter_UpdateBalanceTransactionSchedule`
**Category:** WRITE
**HTTP method:** PUT
**Destination:** m3ter

Update a BalanceTransactionSchedule for the given UUID.

### Parameters

| Name                       | Label        | Type                   | Required | Description                                           | Constraints                                                           |
| -------------------------- | ------------ | ---------------------- | :------: | ----------------------------------------------------- | --------------------------------------------------------------------- |
| `integrationCredentialsId` | Credentials  | M3terEntityParameter   |    Yes   | The m3ter credentials to use.                         | m3terEntity: IntegrationCredentials, authType: M3TER\_SIGNED\_REQUEST |
| `balanceId`                | balanceId    | LookupParameter        |    Yes   | UUID of the balance                                   | -                                                                     |
| `id`                       | id           | LookupParameter        |    Yes   | The UUID of the BalanceTransactionSchedule to update. | -                                                                     |
| `requestPath`              | Request Path | StateVariableParameter |    Yes   | State variable containing the request.                | -                                                                     |
| `statePath`                | State Path   | StateVariableParameter |    No    | State variable to store the response.                 | -                                                                     |

### Exits

| Exit    | Description                                                                      |
| ------- | -------------------------------------------------------------------------------- |
| `NEXT`  | The API call succeeded.                                                          |
| `ERROR` | The API call failed. Error details are stored in the `m3shError` state variable. |

## Delete BalanceTransactionSchedule

**Function name:** `m3ter_DeleteBalanceTransactionSchedule`
**Category:** WRITE
**HTTP method:** DELETE
**Destination:** m3ter

Delete the BalanceTransactionSchedule for the given UUID.

### Parameters

| Name                       | Label       | Type                   | Required | Description                                           | Constraints                                                           |
| -------------------------- | ----------- | ---------------------- | :------: | ----------------------------------------------------- | --------------------------------------------------------------------- |
| `integrationCredentialsId` | Credentials | M3terEntityParameter   |    Yes   | The m3ter credentials to use.                         | m3terEntity: IntegrationCredentials, authType: M3TER\_SIGNED\_REQUEST |
| `balanceId`                | balanceId   | LookupParameter        |    Yes   | UUID of the balance                                   | -                                                                     |
| `id`                       | id          | LookupParameter        |    Yes   | The UUID of the BalanceTransactionSchedule to update. | -                                                                     |
| `statePath`                | State Path  | StateVariableParameter |    No    | State variable to store the response.                 | -                                                                     |

### Exits

| Exit    | Description                                                                      |
| ------- | -------------------------------------------------------------------------------- |
| `NEXT`  | The API call succeeded.                                                          |
| `ERROR` | The API call failed. Error details are stored in the `m3shError` state variable. |
