import Ivy from '@getivy/node-sdk';
const client = new Ivy({
apiKey: 'My API Key',
});
const transactions = await client.data.transactions.list({ from: 0, to: 0 });
console.log(transactions.data);
{
"data": [
{
"id": "<string>",
"amount": "<string>",
"currency": "<string>",
"side": "credit",
"creditor": {
"type": "iban",
"iban": {
"iban": "<string>",
"bic": "<string>",
"accountHolderName": "<string>"
},
"sortCode": {
"sortCode": "<string>",
"accountNumber": "<string>",
"accountHolderName": "<string>"
},
"bankCode": {
"accountNumber": "<string>",
"code": "<string>",
"accountHolderName": "<string>"
},
"bban": {
"bban": "<string>",
"accountHolderName": "<string>",
"bic": "<string>"
}
},
"debtor": {
"type": "iban",
"iban": {
"iban": "<string>",
"bic": "<string>",
"accountHolderName": "<string>"
},
"sortCode": {
"sortCode": "<string>",
"accountNumber": "<string>",
"accountHolderName": "<string>"
},
"bankCode": {
"accountNumber": "<string>",
"code": "<string>",
"accountHolderName": "<string>"
},
"bban": {
"bban": "<string>",
"accountHolderName": "<string>",
"bic": "<string>"
}
},
"balance": {
"before": "<string>",
"after": "<string>"
},
"bankStatementReference": "<string>",
"transactionDate": 123
}
],
"paging": {
"hasNext": true,
"nextCursor": "<string>"
}
}
Retrieves the list of transactions for a given data session. Returns transactions from the last 3 months.
import Ivy from '@getivy/node-sdk';
const client = new Ivy({
apiKey: 'My API Key',
});
const transactions = await client.data.transactions.list({ from: 0, to: 0 });
console.log(transactions.data);
{
"data": [
{
"id": "<string>",
"amount": "<string>",
"currency": "<string>",
"side": "credit",
"creditor": {
"type": "iban",
"iban": {
"iban": "<string>",
"bic": "<string>",
"accountHolderName": "<string>"
},
"sortCode": {
"sortCode": "<string>",
"accountNumber": "<string>",
"accountHolderName": "<string>"
},
"bankCode": {
"accountNumber": "<string>",
"code": "<string>",
"accountHolderName": "<string>"
},
"bban": {
"bban": "<string>",
"accountHolderName": "<string>",
"bic": "<string>"
}
},
"debtor": {
"type": "iban",
"iban": {
"iban": "<string>",
"bic": "<string>",
"accountHolderName": "<string>"
},
"sortCode": {
"sortCode": "<string>",
"accountNumber": "<string>",
"accountHolderName": "<string>"
},
"bankCode": {
"accountNumber": "<string>",
"code": "<string>",
"accountHolderName": "<string>"
},
"bban": {
"bban": "<string>",
"accountHolderName": "<string>",
"bic": "<string>"
}
},
"balance": {
"before": "<string>",
"after": "<string>"
},
"bankStatementReference": "<string>",
"transactionDate": 123
}
],
"paging": {
"hasNext": true,
"nextCursor": "<string>"
}
}
API key for authentication
Returns the list of transactions for the given data session
The response is of type object
.
Was this page helpful?