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>"
}
]
}
Retrieves the list of accounts for a given data session.
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>"
}
]
}
API key for authentication
Returns the list of bank accounts for the given data session
The response is of type object
.
Was this page helpful?