Sorry, you need to enable JavaScript to visit this website.

6 Get list of accounts

Action

Using the heavy access token you received from the previous step, call the accounts list endpoint to get a list of accounts that the user has given you access to.


Method GET
Endpoint https://api.nedbank.co.za/apimarket/sandbox/open-banking/v3.1/aisp/accounts
Request
Headers
Header Value Description
x-fapi-financial-id OB/2017/001 Financial ID
Authorization Bearer <ACCESS_TOKEN> Replace with the heavy/submission access token you received from the previous call.
x-ibm-client-id <YOUR CLIENT ID> The client ID you received when creating the app on the portal.
x-ibm-client-secret <YOUR CLIENT SECRET> The client secret you received when creating the app on the portal.
Response JSON
                            
{
    "Data": {
        "Account": [
            {
                "AccountId": "306c3686-5c25-47a9-bc58-8c86a2f6522a",
                "Status": "Enabled",
                "StatusUpdateDateTime": "2023-10-27T06:37:57.000Z",
                "Currency": "ZAR",
                "AccountType": "Personal",
                "AccountSubType": "CurrentAccount",
                "Nickname": "ELEC SHOPP",
                "Account": [
                    {
                        "SchemeName": "SortCodeAccountNumber",
                        "Identification": "1987651009427721",
                        "Name": "ELEC SHOPP",
                        "SecondaryIdentification": "1009427721"
                    }
                ]
            },
            {
                "AccountId": "be33f533-c12f-4eaa-baee-df4581b3b6e1",
                "Status": "Enabled",
                "StatusUpdateDateTime": "2023-10-27T06:37:57.000Z",
                "Currency": "ZAR",
                "AccountType": "Personal",
                "AccountSubType": "Savings",
                "Nickname": "MONEY MARK",
                "Account": [
                    {
                        "SchemeName": "SortCodeAccountNumber",
                        "Identification": "1987652012347654",
                        "Name": "MONEY MARK",
                        "SecondaryIdentification": "2012347654"
                    }
                ]
            },
            {
                "AccountId": "be83f533-c12f-5eaa-baee-df3581b3b6e1",
                "Status": "Enabled",
                "StatusUpdateDateTime": "2023-10-27T06:37:57.000Z",
                "Currency": "ZAR",
                "AccountType": "Personal",
                "AccountSubType": "CreditCard",
                "Nickname": "CR CARD",
                "Account": [
                    {
                        "SchemeName": "SortCodeAccountNumber",
                        "Identification": "1987654922131234567891",
                        "Name": "CR CARD",
                        "SecondaryIdentification": "4922131234567891"
                    }
                ]
            }
        ]
    },
    "Links": {
        "Self": "https://api.nedbank.co.za/apimarket/sandbox/open-banking/v3.1/aisp/accounts"
    },
    "Meta": {
        "TotalPages": 1
    }
}
                            
                        

You now have an AccountId. Take note of it as you are going to use it in the next call.