Variable: transactions
The transactions namespace contains all the functions related to transaction operations. It provides functionality to fetch and filter transactions for the authenticated user. It can be accessed like this:consttransactions:object=transactionsNamespace.transactions
Type declaration
getTransaction()
getTransaction: (Fetches a single transaction of the current user by ID.getTransactionParams) =>Promise<Transaction>
Parameters
getTransactionParams
TransactionParams<GetTransactionSettings>
An object containing:
transactionSettings: An object with thetransactionIdproperty (string).operationSettings: An object with operation-level settings such asproxyRequestFunction(preferred over using the access token flow),accessToken,stagingToken,mfaPreference, and other optional parameters. See TransactionParams.
Returns
Promise<Transaction>
A promise that resolves to a transaction.
Throws
InvalidParametersError If the transactionId parameter is not a string or is missing.
Throws
AuthenticationError If both the proxyRequestFunction and accessToken are invalid or missing within
operationSettings.
Throws
EmbedApiError If the API request fails or returns an error.
getTransactions()
getTransactions: (Fetches the list of transactions for the current user with optional filtering.getTransactionsParams?) =>Promise<GetTransactionsResponse>
Parameters
getTransactionsParams?
TransactionParams<GetTransactionsSettings>
An object containing:
transactionSettings: An object with optional filtering parameters such asbankAccountId,iban,status,side,operationType, date ranges, and attachment filters.operationSettings: An object with operation-level settings such asproxyRequestFunction(preferred over using the access token flow),accessToken,stagingToken,mfaPreference, and other optional parameters. This function also allows managing pagination by passing thepaginationSettingsproperty underoperationSettings, which accepts an object with the page and itemsPerPage properties. See TransactionParams.
Returns
Promise<GetTransactionsResponse>
A promise that resolves to an array of transactions and a meta
object containing pagination state.
Throws
InvalidParametersError If any of the values provided under
operationSettings or transactionSettings is invalid.
Throws
AuthenticationError If both the proxyRequestFunction and
accessToken are invalid or missing within operationSettings.
Throws
EmbedApiError If the API request fails or returns an error.