Balance Enquiry

Retrieve single or multiple bank account balances

SingleView B2B API services Balance Enquiry allows users with access to request and retrieve specific user bank account balances. Corporate Customers can use this B2B service to enquire about their real-time account Information, which includes Customer Name, Account Status, Account Number, Account Currency, and Available Balance.

📘

Mandatory information

  • The user must provide the valid credentials in the header
  • Encrypted and valid Signature and an active "Access Token."
  • Request format as specified with all the mandatory details with appropriate request tags

🌐Domain details

Get Balance Enquiry

Endpoint details

Endpoint URLMethodAuthentication requirements
/api/v1/account/balancePOST1/. clientid (Optional)
2. clientsecret (Optional)
3. SVReferenceID
4. Device
5. DateTimeStamp
6. CompanyId
7. Authroization: Bearer (Token)

Sample request

curl --location 'https://sandboxapi.onesingleview.com/api/v1/account/balance' \
--header 'CompanyId: MYCOMPANY'
--header 'SVReferenceID: BEMC0001'
--header 'DateTimeStamp	:2025-01-02T10:20:39'
--header 'Device: Web'
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJkYXRhIjoiTDNyMmpxV29JS2I4MTNodDBNMlZ4WGpFZmR6WFNWaTFad3B5QnlkOVpHelZXR2ZwUmFQNUV1TXl6S1Aybi94Y0lwR2V5STNNMkdPL1pqakd4ZG0yclJKUkdhRXlaWGNpWnZnOHArMWIyOGtOQTVkZ0VKajVVSEdiTmtNPSIsImlhdCI6MTczNTgwMTQ3NywiZXhwIjoxNzM1ODA1MDc3fQ.Bh7LFkvxNFrLe9dmH5rURWjGpES-u4z2EGeyrNM7z6E'
--header 'Content-Type: application/json' \
--data '{
"Message": {
  "OSVBalanceEnquiryRequest": {
    "StartDate": "2025-01-28T08:00:00",
    "TransactionType": "940",
    "OSVPaymentInfoMessage": [
      {
        "OSVPaymentInfoRequest": {
          "AccountNumbers": {
            "AccountNumber": [
              {
                "AccNumber": "2011639269901"
              }
            ]
          },
          "BankCode": "RIYADH",
          "CompanyCode": "FIFC001"
        }
      }
    ],
    "EndDate": "2025-01-28T12:00:00"
  }
},
"Signature": "FuJPkgDw2U0ZruL2TnIypUqqbdu9/KpGFX0tLns0rtvlOKR/2PKsJbgxWdIhJXvXwx8tG6b0JPr4M/afkGXkm6j5ua7VC3Z8L2k6amycZ9gCZU1uCyPYI8LRhod79jGOZIbQRY8CQj7uRqT/eKZWlwLf5qhKY7Tf0n6yBhaH51qfvlCzB6BW0Ol0riclN51VQOhKjqHQ25PRbFzu4BDUURm+z/4fJY9kKkWdDbwxoov1+AGDeu/sz0kG/lJK69ra1UXwkOtiAZk5VmnsfrkqCIVQqDsim/yAN5dVeI7Yw3ZTXGtOX4FKSp+0mCW+sfLoKhCaBwG/dbBMx6lkQqF+sg=="
}'

Request description:

JSON TagDescriptionData type
Message
Mandatory
Header information (client credentials)Object & String
OSVBalanceEnquiryRequest
Mandatory
Root nodeObject
StartDate
Mandatory
Initial or starting date of the mentioned period
ISO 8601 format - YYYY-MM-DDTHH:MM:SS
Date
EndDate
Mandatory
Final or last date of the mentioned period
ISO 8601 format - YYYY-MM-DDTHH:MM:SS
Date
TransactionType
Mandatory
Always it should be BEString
OSVPaymentInfoMessage
Mandatory
This tag contains multiple banks requestsObject
OSVPaymentInfoRequest
Mandatory
Element rootObject
BankCode
Mandatory
Unique bank identification code
Ex: ALRAJHI, SABB, BSF, ANB, SNB, ALINMA, GIB, RIYADH, ALBI, BJAZ, ICICI, HDFC
Alphanumeric
CompanyCode
Mandatory
Sender company code/Identifier provided by the bank during on-boardingAlphanumeric
B2BUserId
Conditional for ICICI
Unique B2B user identification detailsString
B2BUrn
Conditional for ICICI
Unique B2B reference numberString
B2BAggrId
Conditional for ICICI
Unique B2B aggregator identification detailsString
AccountNumbers
Mandatory
Tag carrying information on account numbersArray/Object
AccountNumber
Mandatory
Tag carrying account number detailsObject
AccNumber
Mandatory
Unique account number to request balance
Input size:
Min - 11 Characters
Max - 24 Characters
Alphanumeric
Signature
Mandatory
Encrypted string generated using a Private Key/CA-Signed Certificate with SHA-256 and RSA (JCE Signature)String

Sample responses

{
  "OSVBalanceEnquiryResponse": {
    "BalanceEnquiryResponseMessage": [
      {
        "BankCode": "RIYADH",
        "CompanyCode": "FIFC001",
        "StatusCode": "OK",
        "StatusDetail": "Success",
        "ResponseItemCount": "",
        "TotalAvailableBalance": 3405688934.32,
        "TotalOpeningBalance": 3405688934.32,
        "TotalClosingBalance": 0,
        "BalanceEnquiryResponse": [
          {
            "SequenceNum": "",
            "ReceiptTime": "2025-01-28T14:09:20",
            "AccountNumber": "2011639269901",
            "AccountCurrency": "SAR",
            "AccountStatus": "00",
            "AccountStatusDesc": "",
            "AccountType": "CA",
            "AuthorizedOdLimit": "000000000000000",
            "AvailableBalance": 3405688934.32,
            "OpeningBalance": 3405688934.32,
            "ClosingBalance": 0,
            "DebitAllowed": true,
            "CreditAllowed": true,
            "StatusCode": "OK",
            "StatusDetail": "Success"
          }
        ]
      }
    ]
  }
}
{
  "OSVBalanceEnquiryResponse": {
    "BalanceEnquiryResponseMessage": [
      {
        "BankCode": "ALRAJHI",
        "CompanyCode": "125001291",
        "StatusCode": "Failed",
        "StatusDetail": null,
        "ResponseItemCount": "",
        "TotalAvailableBalance": "",
        "TotalOpeningBalance": "",
        "TotalClosingBalance": "",
        "BalanceEnquiryResponse": [
          {
            "SequenceNum": "",
            "ReceiptTime": null,
            "AccountNumber": "01080573862900141",
            "AccountCurrency": null,
            "AccountStatus": "",
            "AccountStatusDesc": "",
            "AccountType": null,
            "AuthorizedOdLimit": "",
            "AvailableBalance": "",
            "OpeningBalance": "",
            "ClosingBalance": null,
            "DebitAllowed": true,
            "CreditAllowed": true,
            "StatusCode": "Failed",
            "StatusDetail": "Invalid Account Number"
          }
        ]
      }
    ]
  }
}

Response description

JSON TagDescriptionData type
OSVBalanceEnquiryResponseRoot nodeObject
BalanceEnquiryResponseMessageElement root containing response of every bankObject
BankCodeUnique bank identification code
Ex: ALRAJHI, SABB, BSF, ANB, NCB, ALINMA, GIB, RIYADH, ALBI, BJAZ, ICICI, HDFC
String
CompanyCodeSender company code/Identifier provided by the bank during on-boardingString
B2BAggrIdUnique B2B aggregator identificationString
B2BUserIdUnique B2B user identification detailsString
StatusCodeCode representing the status of the request processedString
StatusDetailDetails of the responseString
ResponseItemCountNumber of balance items fetched in the responseString
TotalAvailableBalanceTotal available balanceString
TotalOpeningBalanceTotal opening balanceString
TotalClosingBalanceTotal closing balanceString
BalanceEnquiryResponseThis tag contains the details of the requested Bank AccountsString
SequenceNumCount of the accounts per the bankString
ReceiptTimeReceipt Time of the EnquiryString
AccountNumberAccount NumberString
AccountCurrencyAccount Currency. Maximum length of Currency should be 3. E.g. SARString
AccountTypeAccount Type (Current, Saving etc.)String
AccountStatusStatus of the Account (ACTIVE, DORMANT, UNCLAIMED, CLOSING, CLOSED, BLOCKED, DECEASED, INVALID)String
AccountStatusDescReason for the Corresponding Account StatusString
AvailableBalanceAvailable Balance in Account (i.e)
(Ledger Balance + OD limit) - Booked balance
String
OpeningBalanceOpening BalanceString
ClosingBalanceClosing BalanceString
DebitAllowedDebit is allowed from the account or not. The value will be either true or falseBoolean
CreditAllowedCredit is allowed to the account or not. The value will be either true or falseBoolean
StatusCodeStatus Code will be “OK” for Success or FailedString
StatusDetailStatus details of the code displayedString