Get Account Balance

Singleview Open Banking AIS API retrieves bulk or single account balances from the Account Servicing Payment Service Provider (ASPSP), using the Consent ID and Account ID.

📘

Note

  • The represented flow assumes that the PSU/User has already consented to this access and has authorized Singleview Open Banking API platform to access this information
  • A bank account may have multiple balances to view and these shall be represented as Amount & Type.
1750

Singleview Open Banking - Representation of process to fetch account balances through AIS

Endpoint details

EndpointMethodGrant typeScope
/v1/api/openBanking/accountsBalancePOSTThe header should include:
1. clientId
2. clientCode
3. signature
4. sid
5. Authorization: Bearer
Fetch single or multiple accounts balance using Account IDs

Request to get account balance - sample

{
  "SVAccountsBalanceRequest": {
    "DateTimeStamp": "2022-03-29T17:51:03",
     "RequestID": "{{RequestID}}",
    "userName": "{{userName}}",
    "SVAccountsInfoMessage": [
      {
        "SVAccountInfoRequest": {
          "BankCode": "SAMA",
          "ConsentId": "{{ConsentId}}",
          "Account_Id": "{{AccountId}}"
        }
      }
    ]
  }
}

Request Description

JSON TagDescriptionData type
SVAccountsBalanceRequest
Mandatory
Get account balance request tagObject
DateTimeStamp
Mandatory
Stamp denoting the request date and timeString
RequestID
Mandatory
Unique request identificationString
userName
Mandatory
Client UsernameString
SVAccountsInfoMessage
Mandatory
All accounts information message tagObject
SVAccountInfoRequest
Mandatory
Specific account information request tagArray
BankCode
Mandatory
Unique bank code for identificationString
ConsentId
Mandatory
Unique consent identificationString
Account_Id
Mandatory
Unique identifier for the account resourceString

Successfully fetched balance response - sample

{
    "success": true,
    "message": "",
    "SVAccountsBalanceResponse": {
        "SVAccountsInfoMessage": [
            {
                "SVAccountInfoResponse": {
                    "Data": {
                        "Balance": [
                            {
                                "AccountId": "9f9a3af9-d7ed-47bd-9dab-cff3d30c6bbf",
                                "Amount": {
                                    "Amount": 1500.00,
                                    "Currency": "SAR"
                                },
                                "CreditDebitIndicator": "Credit",
                                "Type": "ClosingAvailable",
                                "DateTime": "2017-10-10T00:00:00.000Z",
                                "CreditLine": [
                                    {
                                        "Included": true,
                                        "Type": "Temporary",
                                        "Amount": {
                                            "Amount": 500.00,
                                            "Currency": "SAR"
                                        }
                                    }
                                ]
                            },
                            {
                                "AccountId": "9f9a3af9-d7ed-47bd-9dab-cff3d30c6bbf",
                                "Amount": {
                                    "Amount": 1500.00,
                                    "Currency": "SAR"
                                },
                                "CreditDebitIndicator": "Credit",
                                "Type": "InterimAvailable",
                                "DateTime": "2017-10-10T00:00:00.000Z",
                                "CreditLine": [
                                    {
                                        "Included": true,
                                        "Type": "Temporary",
                                        "Amount": {
                                            "Amount": 500.00,
                                            "Currency": "SAR"
                                        }
                                    }
                                ]
                            }
                        ]
                    },
                    "Links": {
                        "Self": "https://rs1.lab.openbanking.sa/open-banking/v3.1/aisp/accounts/9f9a3af9-d7ed-47bd-9dab-cff3d30c6bbf/balances"
                    },
                    "Meta": {
                        "TotalPages": 1
                    },
                    "BankCode": "SAMA",
                    "ConsentId": "aac-b9a73147-7a1d-4ec9-bbbe-c8db6e21d65c"
                }
            }
        ]
    }
}

Response Description

JSON TagDescription
successProcess success status represented as True or False
messageProcess execution message
SVAccountsBalanceResponseGet account balance response tag
SVAccountsInfoMessageGet accounts information response tag
SVAccountInfoResponseSpecific account information response tag
DataData tag for account information
BalanceA list of balances regarding the account
AmountAmount of money of the cash balance
CurrencyIdentification of the currency reflected for the account
CreditDebitIndicatorIndicates whether the balance is a credit or a debit balance
TypeIndicates the balance types
LinksRedirect links
SelfOwn link/url details
MetaMeta tag
TotalPagesInformation displayed on number of pages
ItemCountNumber of total accounts shown or listed