VA Balance

Get real-time info on virtual account balance

Overview

svVABalanceEnqService provides a way for ERP systems and backend services to query the current available balance and related metadata for a virtual account. This endpoint returns account-level balance details for one or more virtual accounts tied to a company user.

❗️

Important Information

  • This service is restricted to fetch the balances exclusively for virtual accounts.

Fetch Virtual Account Balance

Endpoint details

Endpoint URL

Method

Authentication requirements

/v1/api/erp/svVABalanceEnqService

POST

  1. clientid
  2. clientsecret
  3. signature

Sample request

curl --location --request POST 'https://servicesuat.onesingleview.com/v1/api/erp/svVABalanceEnqService' \
--header 'clientid: abcdef83643f61c975' \
--header 'clientsecret: zyxvw95cE163C03b7d1' \
--header 'signature: UMEH9M8tXknuRnnkrzRjDHaxFRLyZJwDNAl408nUMEH9M8tXknuRnnkrzRjDHaxFRLyZJwDNAl408n' \
--header 'Content-Type: application/json' \
--data-raw '{
"svBalanceEnqServiceRQ": {
  "groupCode": "1234",
  "company": [
    {
      "companyCode": "1122",
      "userName": "MOHAMMED_1234",
      "account": [
        {
          "va_acERPcode": "ALRAJHIVA001"
        }
      ]
    }
  ]
}
}'

Request description

JSON Tag

Requirement

Description

Data Type

svVABalanceEnqService

Mandatory

Tag carrying information on request to fetch virtual account balance

Object

groupCode

Conditional

Unique group identification code
Length of input: Min 3 Characters Max 20 Characters

String

company

Mandatory

Tag carrying information about company

Object

companyCode

Mandatory

Unique company identification code Length of input: Min 3 Characters Max 20 Characters

String

userName

Mandatory

Unique user identification name Length of input: Min 3 Characters Max 20 Characters

String

account

Mandatory

Tag carrying information on virtual account details to fetch the balance

Object

va_acERPcode

Mandatory

Unique account ERP identification code of the virtual account Min: 9 Characters

Alphanumeric

Sample response

{
  "svBalanceEnqServiceRS": {
    "company": [
      {
        "companyCode": "1122",
        "userName": "MOHAMMED_1234",
        "account": [
          {
            "va_acERPcode": "ALRAJHIVA001",
            "Balance": {
              "SequenceNum": "",
              "ReceiptTime": "",
              "AccountNumber": "SA3280900000665991239013",
              "AccountCurrency": "SAR",
              "AccountStatus": "",
              "AccountStatusDesc": "",
              "CustomerFullName": "",
              "AccountType": "",
              "AuthorizedOdLimit": "",
              "LastCreditDate": "",
              "LastCreditAmount": "",
              "AvailableBalance": 1000,
              "AvailableBalanceLCY": "",
              "OpeningBalanceLCY": "",
              "OpeningBalance": "",
              "ClosingBalance": "",
              "DebitAllowed": "",
              "CreditAllowed": "",
              "StatusCode": "OK",
              "StatusDetail": "OK"
            }
          }
        ]
      }
    ]
  }
}

Response description

JSON TagDescriptionData Type
svBalanceEnqServiceRSTag carrying information on process response of Virtual Account balance servicesObject
companyTag carrying information on companyObject
companyCodeEchoes back the companyCode from the requestString
userNameEchoes back the userName from the requestString
accountTag carrying information on one or more account entries included in the requestObject
va_acERPcodeEchoes the va_acERPcode from the requestAlphanumeric
BalanceTag carrying information as balance metadata for the virtual accountObject
SequenceNumInternal sequence or trace number (if available)Alphanumeric
ReceiptTimeTimestamp of the balance snapshot in ISO 8601 standard formatDate
AccountNumberBank account number that is mapped to the provided virtual account code in the requestString
AccountCurrencyUnique code denoting the currency of the virtual accountString
AccountStatusShort status code for the account as Active pr InactiveString
AccountStatusDescStatus description for the mentioned accountString
CustomerFullNameFull name of the customer holding the accountString
AccountTypeType of accountString
AuthorizedOdLimitAmount representing the over-draft limit for the accountNumeric
LastCreditDateDate & time of the last credit to the accountDate
LastCreditAmountAmount of the last credit transactionNumeric
AvailableBalanceAvailable balance in the virtual accountNumeric
AvailableBalanceLCYAvailable balance in local currency (for accounts supporting multicurrency)Numeric
OpeningBalanceLCYOpening balance in local currency (for accounts supporting multicurrency)Numeric
OpeningBalanceOpening balance of the account for the ReceiptTimeNumeric
ClosingBalanceClosing balance of the account for the ReceiptTimeNumeric
DebitAllowedFlag indicating whether debits are permitted for the virtual accountString
CreditAllowedFlag indicating whether credits are permitted for the virtual accountString
StatusCodeCode representing the status of the processString
StatusDetailDetails on the StatusCodeString