import Ivy from '@getivy/node-sdk';
const client = new Ivy({
apiKey: process.env['IVY_API_KEY'], // This is the default and can be omitted
});
const transactions = await client.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>",
"accountHolderName": "<string>",
"bic": "<string>"
},
"sortCode": {
"sortCode": "<string>",
"accountNumber": "<string>",
"accountHolderName": "<string>"
},
"bankCode": {
"accountNumber": "<string>",
"code": "<string>",
"accountHolderName": "<string>"
},
"bban": {
"bban": "<string>",
"accountHolderName": "<string>",
"bic": "<string>"
},
"wallet": {
"address": "<string>"
}
},
"debtor": {
"type": "iban",
"iban": {
"iban": "<string>",
"accountHolderName": "<string>",
"bic": "<string>"
},
"sortCode": {
"sortCode": "<string>",
"accountNumber": "<string>",
"accountHolderName": "<string>"
},
"bankCode": {
"accountNumber": "<string>",
"code": "<string>",
"accountHolderName": "<string>"
},
"bban": {
"bban": "<string>",
"accountHolderName": "<string>",
"bic": "<string>"
},
"wallet": {
"address": "<string>"
}
},
"balance": {
"before": "<string>",
"after": "<string>"
},
"bankStatementReference": "<string>",
"transactionDate": 123
}
],
"paging": {
"hasNext": true,
"nextCursor": "<string>"
}
}Retrieve a paginated list of transactions for the specified time period
import Ivy from '@getivy/node-sdk';
const client = new Ivy({
apiKey: process.env['IVY_API_KEY'], // This is the default and can be omitted
});
const transactions = await client.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>",
"accountHolderName": "<string>",
"bic": "<string>"
},
"sortCode": {
"sortCode": "<string>",
"accountNumber": "<string>",
"accountHolderName": "<string>"
},
"bankCode": {
"accountNumber": "<string>",
"code": "<string>",
"accountHolderName": "<string>"
},
"bban": {
"bban": "<string>",
"accountHolderName": "<string>",
"bic": "<string>"
},
"wallet": {
"address": "<string>"
}
},
"debtor": {
"type": "iban",
"iban": {
"iban": "<string>",
"accountHolderName": "<string>",
"bic": "<string>"
},
"sortCode": {
"sortCode": "<string>",
"accountNumber": "<string>",
"accountHolderName": "<string>"
},
"bankCode": {
"accountNumber": "<string>",
"code": "<string>",
"accountHolderName": "<string>"
},
"bban": {
"bban": "<string>",
"accountHolderName": "<string>",
"bic": "<string>"
},
"wallet": {
"address": "<string>"
}
},
"balance": {
"before": "<string>",
"after": "<string>"
},
"bankStatementReference": "<string>",
"transactionDate": 123
}
],
"paging": {
"hasNext": true,
"nextCursor": "<string>"
}
}API key for authentication
The list of transactions
Array of transactions
Show child attributes
Transaction identifier
Amount of the transaction
ISO 4217 currency code
Side of the transaction
credit, debit Creditor account details
Show child attributes
Type of financial address
iban, sort_code, bank_code, bban, wallet Debtor account details
Show child attributes
Type of financial address
iban, sort_code, bank_code, bban, wallet Bank statement reference
Transaction date as unix timestamp
Was this page helpful?