Get Account Info

Singleview Open Banking AIS API allows the PSU/Users to retrieve account information from the Account Servicing Payment Service Provider (ASPSP), using the Consent ID. The API allows the users to access the account information for the Bank accounts that hold an active user consent. Once a consent is expired or is deleted, that specific bank account information shall be unavailable to access.

For all the consented bank accounts, there exists unique account ID that can be used to retrieve account information and data. Below are the details along with a sample request and response for retrieving account information through SingleView Open Banking API.

📘

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

1750

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

Endpoint details:

EndpointHTTP OperationGrant typeScope
/v1/api/openBanking/accountsByIdPOSTThe header should include:
1. clientId
2. clientCode
3. signature
4. sid
5. Authorization: Bearer
Fetch accounts information using Account IDs

Request to get account information - sample

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

Description:

JSON TagDescriptionData type
SVAccountsByIdRequest
Mandatory
Fetch account details by account ID request tagObject
DateTimeStamp
Mandatory
Stamp denoting the request date and timeString
RequestID
Mandatory
Unique request identificationString
userName
Mandatory
Client UsernameString
SVAccountsInfoMessage
Mandatory
Accounts info message tagObject
SVAccountInfoRequest
Mandatory
Specific account info request tagObject
BankCode
Mandatory
Unique bank code for identificationString
ConsentId
Mandatory
Unique consent identificationString
Account_Id
Mandatory
Unique identifier for the account resourceString

Get account information response - sample

{
    "success": true,
    "message": "",
    "SVAccountsByIdResponse": {
        "SVAccountsInfoMessage": [
            {
                "SVAccountInfoResponse": {
                    "Data": {
                        "Account": {
                            "AccountId": "9f9a3af9-d7ed-47bd-9dab-cff3d30c6bbf",
                            "Currency": "SAR",
                            "Account": [
                                {
                                    "Name": "Maha Alosaimi",
                                    "SchemeName": "UK.OBIE.SortCodeAccountNumber",
                                    "Identification": "00002680000003"
                                }
                            ]
                        }
                    },
                    "Links": {
                        "Self": "https://rs1.lab.openbanking.sa/open-banking/v3.1/aisp/accounts/9f9a3af9-d7ed-47bd-9dab-cff3d30c6bbf"
                    },
                    "Meta": {
                        "TotalPages": 1
                    },
                    "BankCode": "SAMA",
                    "ConsentId": "aac-b9a73147-7a1d-4ec9-bbbe-c8db6e21d65c"
                }
            }
        ]
    }
}

Description:

JSON TagDescription
successProcess success status represented as True or False
messageProcess execution message
SVAccountsByIdResponseFetch account details by Account ID response tag
SVAccountsInfoMessageAccounts info message response tag
SVAccountInfoResponseSpecific account info response tag
DataData tag for account information
AccountUnambiguous identification of the account with credit and debit entries
AccountIdA unique identifier for the account resource
CurrencyIdentification of the currency reflected for the account
AccountBank account details
NameName(s) of the account holder or owner
SchemeNameName of the account's identification scheme
IdentificationUnique identification of the servicing institution
LinksRedirect links
SelfOwn link/url details
MetaMeta tag
TotalPagesInformation on number of pages
BankCodeUnique bank code for identification
ConsentIdUnique consent identification

Get List of All Accounts

The Get all accounts request allows the AISP to discover all the bank accounts (and AccountId(s)) that are associated with the authorization of consent. Eventually, the PSU/User can retrieve the list of accounts associated with the consent identity and consolidate all accounts through a single API request.

📘

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
1750

Singleview Open Banking - Representation of process to fetch list of all accounts through AIS

Endpoint details:

End pointMethodGrant typeScope
/v1/api/openBanking/allAccountsPOSTThe header should include:
1. clientId
2. clientCode
3. signature
4. sid
5. Authorization: Bearer
Fetch the list of all bank accounts associated and authorized to a specific consent ID

Request to get list of all accounts

{
  "SVAllAccountsRequest": {
    "DateTimeStamp": "2022-05-26T17:51:03",
    "RequestID": "{{RequestID}}",
    "userName": "{{userName}}",
    "SVAccountsInfoMessage": [
      {
        "SVAccountInfoRequest": {
          "BankCode": "SAMA",
          "ConsentId": "{{ConsentId}}"
        }
      }
    ]
  }
}

Description:

JSON TagDescriptionData type
SVAllAccountsRequest
Mandatory
Get all accounts request tagObject
DateTimeStamp
Mandatory
Stamp denoting the request date and timeString
RequestID
Mandatory
Unique request identificationString
userName
Mandatory
Client UsernameString
SVAccountsInfoMessage
Mandatory
Get all accounts info message tagObject
SVAccountInfoRequest
Mandatory
Get account info request specific account details tagObject
BankCode
Mandatory
Unique bank code for identificationString
ConsentId
Mandatory
Unique consent identificationString

Successfully fetch all accounts response - sample

{
    "success": true,
    "message": "",
    "SVAllAccountsResponse": {
        "SVAccountsInfoMessage": [
            {
                "SVAccountInfoResponse": {
                    "Data": {
                        "Account": [
                            {
                                "AccountId": "9f9a3af9-d7ed-47bd-9dab-cff3d30c6bbf",
                                "Currency": "SAR",
                                "Account": [
                                    {
                                        "Name": "Maha Alosaimi",
                                        "SchemeName": "UK.OBIE.SortCodeAccountNumber",
                                        "Identification": "00002680000003"
                                    }
                                ]
                            },
                            {
                                "AccountId": "3376fdc5-2573-4e1b-bac5-ccbecc474131",
                                "Currency": "SAR",
                                "Account": [
                                    {
                                        "Name": "Maha Alosaimi",
                                        "SchemeName": "UK.OBIE.SortCodeAccountNumber",
                                        "Identification": "01002680000001"
                                    }
                                ]
                            },
                            {
                                "AccountId": "73cd6f30-0b24-4bdd-ad82-a20a304acf2b",
                                "Currency": "SAR",
                                "Account": [
                                    {
                                        "Name": "Maha Alosaimi",
                                        "SchemeName": "UK.OBIE.SortCodeAccountNumber",
                                        "Identification": "01002680000002"
                                    }
                                ]
                            }
                        ]
                    },
                    "Links": {
                        "Self": "https://rs1.lab.openbanking.sa/open-banking/v3.1/aisp/accounts"
                    },
                    "Meta": {
                        "TotalPages": 1
                    },
                    "BankCode": "SAMA",
                    "ConsentId": "aac-b9a73147-7a1d-4ec9-bbbe-c8db6e21d65c"
                }
            }
        ]
    }
}

Description:

JSON TagDescription
successProcess success status represented as True or False
messageProcess execution message
SVAllAccountsResponseGet all accounts response tag
SVAccountsInfoMessageGet all accounts info message tag
SVAccountInfoResponseSpecific account info response tag
DataData tag for account information
AccountUnambiguous identification of the account with credit and debit entries
AccountIdUnique identifier for the account resource
CurrencyIdentification of the currency reflected for the account
AccountBank account details
NameName(s) of the account holder or owner
SchemeNameName of the account's identification scheme
IdentificationUnique identification of the servicing institution
LinksRedirect links
SelfOwn link/url details
MetaMeta tag
BankCodeUnique bank code for identification
TotalPagesInformation on number of pages
ItemCountNumber of total items/accounts shown or listed