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:const
transactions:object
=transactionsNamespace.transactions
getTransaction: (Fetches a single transaction of the current user by ID.getTransactionParams
) =>Promise
<Transaction
>
TransactionParams
<GetTransactionSettings
>
An object containing:
transactionSettings
: An object with the transactionId
property (string).operationSettings
: An object with operation-level settings such as
proxyRequestFunction
(preferred over using the access token flow),
accessToken
, stagingToken
, mfaPreference
, and other optional parameters.
See TransactionParams.Promise
<Transaction
>
A promise that resolves to a transaction.
InvalidParametersError
If the transactionId
parameter is not a string or is missing.
AuthenticationError
If both the proxyRequestFunction
and accessToken
are invalid or missing within
operationSettings
.
EmbedApiError
If the API request fails or returns an error.
getTransactions: (Fetches the list of transactions for the current user with optional filtering.getTransactionsParams?
) =>Promise
<GetTransactionsResponse
>
TransactionParams
<GetTransactionsSettings
>
An object containing:
transactionSettings
: An object with optional filtering parameters such as
bankAccountId
, iban
, status
, side
, operationType
, date ranges, and
attachment filters.operationSettings
: An object with operation-level settings such as
proxyRequestFunction
(preferred over using the access token flow),
accessToken
, stagingToken
, mfaPreference
, and other optional
parameters. This function also allows managing pagination by passing the
paginationSettings
property under operationSettings
, which accepts an
object with the page and itemsPerPage properties. See TransactionParams.Promise
<GetTransactionsResponse
>
A promise that resolves to an array of transactions and a meta
object containing pagination state.
InvalidParametersError
If any of the values provided under
operationSettings or transactionSettings is invalid.
AuthenticationError
If both the proxyRequestFunction
and
accessToken
are invalid or missing within operationSettings
.
EmbedApiError
If the API request fails or returns an error.