POST
/
api
/
service
/
data
/
accounts
/
list
JavaScript
import Ivy from '@getivy/node-sdk';

const client = new Ivy({
  apiKey: 'My API Key',
});

const accounts = await client.data.accounts.list({ sessionId: 'sessionId' });

console.log(accounts.accounts);
{
  "accounts": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "financialAddress": [
        {
          "type": "iban",
          "iban": {
            "accountHolderName": "<string>",
            "iban": "<string>",
            "bic": "<string>"
          },
          "sortCode": {
            "accountHolderName": "<string>",
            "sortCode": "<string>",
            "accountNumber": "<string>"
          },
          "bankCode": {
            "accountHolderName": "<string>",
            "code": "<string>",
            "accountNumber": "<string>"
          },
          "bban": {
            "accountHolderName": "<string>",
            "bban": "<string>",
            "bic": "<string>"
          }
        }
      ],
      "bankId": "<string>",
      "bankName": "<string>",
      "currency": "<string>",
      "accountName": "<string>"
    }
  ]
}

Authorizations

X-Ivy-Api-Key
string
header
required

API key for authentication

Body

application/json

Response

200 - application/json

Returns the list of bank accounts for the given data session

The response is of type object.