Update Balance
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.
Authorizations
Path Parameters
Body
The date/time (in ISO 8601 format) after which the Balance will no longer be active for the Account.
Note: You can use the rolloverEndDate request parameter to define an extended grace period for continued draw-down against the Balance if any amount remains when the specified endDate is reached.
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.
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.
The maximum amount that can be carried over past the Balance end date for draw-down at billing if there is any unused Balance amount when the end date is reached. Works with rolloverEndDate to define the amount and duration of a Balance "grace period". (Optional)
Notes:
- If you leave
rolloverAmountempty and only enter arolloverEndDate, any amount left over after the Balance end date is reached will be drawn-down against up to the specifiedrolloverEndDate. - You must enter a
rolloverEndDate. If you only enter arolloverAmountwithout entering arolloverEndDate, you'll receive an error when trying to create or update the Balance. - If you don't want to grant any grace period for outstanding Balance amounts, then do not use
rolloverAmountandrolloverEndDate.
x >= 0The end date (in ISO 8601 format) for the grace period during which unused Balance amounts can be carried over and drawn-down against at billing.
Note: Use rolloverAmount if you want to specify a maximum amount that can be carried over and made available for draw-down.
Define a surcharge level, as a percentage of regular usage rating, applied to overages (usage charges that exceed the Balance amount). For example, if the regular usage rate is $10 per unit of usage consumed and overageSurchargePercent is set at 10%, then any usage charged above the original Balance amount is charged at $11 per unit of usage.
Specify the Products whose consumption charges due at billing can be drawn-down against the Balance amount.
Note: If you don't specify any Products for Balance draw-down, by default the consumption charges for any Product the Account consumes will be drawn-down against the Balance amount.
Specify the line item charge types that can draw-down at billing against the Balance amount. Options are:
"MINIMUM_SPEND""STANDING_CHARGE""USAGE""COUNTER_RUNNING_TOTAL_CHARGE""COUNTER_ADJUSTMENT_DEBIT"AD_HOC
NOTE: If no charge types are specified, by default all types can draw-down against the Balance amount at billing.
Available line item types for Balances
STANDING_CHARGE, USAGE, MINIMUM_SPEND, COUNTER_RUNNING_TOTAL_CHARGE, COUNTER_ADJUSTMENT_DEBIT, AD_HOC A Boolean flag indicating whether the Balance is enabled as a Grant:
- true - the Balance is enabled as a Grant.
- false - the Balance is not enabled as a Grant.(Default)
NOTE: Grants in Preview Release! Please note that the Grants feature is currently available only in Preview release version. See Feature Release Stages for Preview release definition.
false
Response
Returns the updated Balance
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.