Query Account Balance
Retrieve the current balance for each currency held in the merchant's account. Supports filtering by currency and balance type, including normal balances, same-name top-up balances, budget balances, and overflow balances.
Request Parameters
currenciesarray
Filter by currency. Each element is a 3-letter ISO 4217 currency code (e.g., USD, EUR). If omitted, all currencies are returned. See Data Types.
balanceTypesarray
Filter by balance type. If omitted, defaults to NORMAL_BALANCE. See BalanceType on the Balance overview page.
budgetAccountIdstring
Budget account ID. Required when balanceTypes contains BUDGET_BALANCE.
Response Parameters
resultResult
API call result. See Result.
balancesarray
List of balance items, one per currency and balance type combination. Maximum 500 elements.
Error Codes
Definition
POST /api/open/v1/balances/queryRequest
{
"currencies": [
"USD"
],
"balanceTypes": [
"SAME_NAME_TOP_UP_BALANCE",
"BUDGET_BALANCE"
],
"budgetAccountId": "BUDGET_20240001"
}Response
{
"result": {
"resultStatus": "S",
"resultCode": "SUCCESS",
"resultMessage": "success"
},
"balances": [
{
"currency": "USD",
"availableAmount": {
"value": 100000,
"currency": "USD"
},
"frozenAmount": {
"value": 30000,
"currency": "USD"
},
"balanceType": "SAME_NAME_TOP_UP_BALANCE"
},
{
"currency": "USD",
"availableAmount": {
"value": 50000,
"currency": "USD"
},
"frozenAmount": {
"value": 0,
"currency": "USD"
},
"balanceType": "BUDGET_BALANCE"
}
]
}