/total-balancesReturns a paginated list of total balances.
Privileges (one of the following based on the deployment):
- bulk-billing-cust-sms.view
- bulk-billing-supplier-sms.view
- bulk-billing-cust-mnp.view
- bulk-billing-supplier-mnp.view
- bulk-billing-cust-sms-own.view
- bulk-billing-supplier-sms-own.view
- bulk-billing-cust-mnp-own.view
- bulk-billing-supplier-mnp-own.view
Audit event
- total.balance.list
Filter/Sort fields:
- id
- instanceId
- bizPartnerId
- isDefault
- currency
- billingType
- name
- status
- alertsPolicyId
- alertsBaseAmount
- alertsPolicyName
- amount
- paidTotal
- unpaidTotal
- billedTotal
- accountsTotal
- smsCount
- creditLimit
- debitLimit
- overdraftLimit
- debitBalanceThreshold
- usage
- availableAmount
- totalCredit
- debitTotal
- bizPartnerName
- bizPartnerShortName
- pricePackageMode
- pricePackageId
- orderedPrepaidMode
- overdraftPriceListId
- currentCreditRecordId
- firstCreditRecordId
- ownerId
- ownerBpName
- ownerBpBriefName
- alertsLanguage
- blockOnOutOfCredit
Searchable attributes:
- name
- billingTypeName
- bizPartnerShortName
- bizPartnerName
- status
- alertsPolicyName
- ownerId
- ownerBpName
- ownerBpBriefName
- blockOnOutOfCredit
- bizPartnerId
- debitBalanceThreshold
- overdraftLimit
Errors:
- NOT_AUTHENTICATED - Not authenticated
- NOT_AUTHORIZED - Not authorized
- INT_APP_ERROR - Unexpected internal error
Request
Query parameters
If yes (or other truthy values accepted by the server), return all matching records in one page; pagination still returns total counts.
yes, no, true, false, 1, 0 · Default: "no"Page number (1-based) when not using paging
1 · min: 1Page size when not using paging
10 · min: 1Alternative pagination as page_number,page_size (e.g. 1,10)
1,10Comma-separated sort keys for the collection returned by this operation. Prefix a key with - for descending order; omit the prefix for ascending.
Allowed keys, default order when omitted, and whether multiple keys are supported are defined on each list operation (often under a Field names for sort or equivalent section). Do not assume the same keys work on another path.
Example: sort=-field1,field2,-field3.
Free-text search across whatever fields the current list operation supports (full-text, partial match, or exact — as documented there).
Typical query forms: q=... and sometimes eq(q)=... where that operation documents it.
There is no global definition of which properties participate; always read the same operation’s description before reusing q on another endpoint.
Search criteria can be specified using the following operators and attributes: URL Filtering guidelines
Available Operators:
- isnull, isnotnull
- isempty, isnotempty
- eq, neq
- startswith, endswith, contains, doesnotcontain
- lt, lte, gt, gte
- in, notin
- between, notbetween
Special Cases:
- For operators [isnull, isnotnull, isempty, isnotempty]: field value can be omitted.
- For operators [in, notin]: field value must be a comma-separated list. Example:
in(status)=active,pending,deleted - For operators [between, notbetween]: field value must be two comma-separated values. Example:
between(statusTs)=2024-01-01,2024-12-31
Default Behavior:
- If operator is omitted, 'eq' is assumed
- Example: fieldName=fieldValue is equivalent to eq(fieldName)=fieldValue
Example Usage:
- startswith(name)=hor # Find records where name starts with "hor"
Comma-separated response property names for a slimmer JSON body. Omit for the normal full object returned by that operation.
Allowed names match the schema documented on that operation.
Request example
Responses
- 200
- 401
- 500
OK — data is an array of total balance objects; meta.pagination describes the page.
Show child attributes
Sum-side total across linked accounts; overlaid with open daily balances when real-time
Balance amount; real-time or snapshot depending on withRtBalance
ISO date string from billing Date type
1 = prepaid, 2 = postpaid, 3 = ABO postpaid
on, offMaps to CreditLimitInCurrency — limit in limitsCurrency when extent sets confLimitCurrency; else DebitLimit (see Go makeTotalBalanceResponse)
Show child attributes
Spelling matches production JSON (customAtribute not customAttribute)
Show child attributes
JSON name for internal debit total / limit aggregate (postpaid)
null when total_balance_extent is missing, or extent invoice_settings is empty / not loaded — see makeTotalBalanceResponse (only set when t.InvoiceSettings != nil).
Show child attributes
Show child attributes
From billingapi.EnumEnabledDisabled — typically enabled or disabled
Typically yes or no
Currency id used for configured credit/overdraft limits when extent specifies one
on, offMaps to OverdraftLimitInCurrency — from extent overdraft config when confLimitCurrency set; else balance OverdraftLimit
on, offDerived usage (conventionally -accountsTotal after load)
Show child attributes
Show child attributes
Number of records in data for this response
Total matching records (before current page slice)
{
"data": [
{
"accountsTotal": -1250.5,
"alertsBaseAmount": 0,
"alertsLanguage": "",
"alertsPolicyId": 0,
"alertsPolicyName": "",
"amount": 1250.5,
"availableAmount": 5000.5,
"billedTotal": 0,
"billingCreditLimit": 5000,
"billingCycle": 1,
"billingCycleUnit": "month",
"billingCycleUnitId": 1,
"billingDebitLimit": 5000,
"billingDebitThreshold": 0,
"billingOverdraftLimit": 0,
"billingStartDate": "2025-01-01",
"billingTriggerAmount": 0,
"billingType": 1,
"billingTypeCodeName": "prepaid",
"billingTypeName": "Prepaid",
"bizPartnerId": 5001,
"bizPartnerName": "Customer A",
"bizPartnerShortName": "CustA",
"blockOnOutOfCredit": "off",
"creditLimit": 5000,
"creditTotal": 0,
"currency": 978,
"currencyCode": "EUR",
"currencyName": "Euro",
"currentCreditRecordId": 0,
"customFields": [],
"debitLimitTotal": 0,
"disputePercent": 0,
"disputeValue": 0,
"firstCreditRecordId": 0,
"id": 501,
"instanceId": 3000001,
"invoiceCreation": "",
"invoiceSending": "",
"invoiceSettings": null,
"isDefault": "yes",
"lastBillingRecordId": 0,
"lastBillingReportId": 0,
"lastOpenEventHistoryId": 0,
"limitsCurrency": 978,
"minUsageAmount": 0,
"name": "Main prepaid wallet",
"nextBillingDate": "2025-02-01",
"nextReportDate": "",
"orderedPrepaidMode": "off",
"overdraftLimit": 0,
"overdraftPriceListId": 0,
"ownerBpBriefName": "Owner",
"ownerBpName": "Owner Ltd",
"ownerId": 7001,
"paidTotal": 0,
"paymentTermsDays": 0,
"pricePackageId": 0,
"pricePackageMode": "off",
"reportCycle": 0,
"reportCycleUnit": "",
"reportCycleUnitId": 0,
"reportStartDate": "",
"smsCount": 4200,
"status": "active",
"totalCredit": 5000,
"unpaidTotal": 0,
"usage": 1250.5
}
],
"meta": {
"pagination": {
"count": 1,
"currentPage": 1,
"perPage": 10,
"total": 1,
"totalPages": 1
}
}
}Not authenticated, not platform owner, or missing view privilege for total balances.
Show child attributes
Stable code for branching in the UI (e.g. INVALID-DATA, NOT_AUTHORIZED).
Present for INVALID-DATA (request validation) — list of per-field problems (ErrorItem).
Show child attributes
Full sentence for users or test assertions.
Short type such as invalid value, not allowed, or change conflict.
Request field that failed (e.g. totalBalanceId) — match to your form/input.
Optional nested context
Short summary — show in toasts or logs.
{
"error": {
"code": "NOT_AUTHENTICATED",
"message": "Not authenticated"
}
}Unexpected internal error
Show child attributes
Stable code for branching in the UI (e.g. INVALID-DATA, NOT_AUTHORIZED).
Present for INVALID-DATA (request validation) — list of per-field problems (ErrorItem).
Show child attributes
Full sentence for users or test assertions.
Short type such as invalid value, not allowed, or change conflict.
Request field that failed (e.g. totalBalanceId) — match to your form/input.
Optional nested context
Short summary — show in toasts or logs.
{
"error": {
"code": "INT_APP_ERROR",
"message": "Unexpected internal error"
}
}