Variable: transactions
The transactions namespace contains all the client-side functions related to transaction operations. This version uses proxy-based authentication (proxyEndpointDescriptor) and is designed for browser environments. For server-side operations using access tokens, import from ‘@qonto/embed-sdk/server/transactions’. It can be accessed like this:consttransactions:object
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 includingproxyEndpointDescriptor(required). See TransactionParams.
Returns
Promise<Transaction>
A promise that resolves to a transaction.
Remarks
This is the client-side implementation that requiresproxyEndpointDescriptor.
For security, never expose access tokens in the browser.
Use “@qonto/embed-sdk/server/transactions” only in server-side/backend environments.
Throws
InvalidParametersError If the transactionId parameter is not a string or is missing.
Throws
AuthenticationError If proxyEndpointDescriptor is 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 includingproxyEndpointDescriptor(required), and optionalpaginationSettingsfor managing pagination (accepts an object withpageanditemsPerPageproperties). See TransactionParams.
Returns
Promise<GetTransactionsResponse>
A promise that resolves to an array of transactions and a meta
object containing pagination state.
Remarks
This is the client-side implementation that requiresproxyEndpointDescriptor.
For security, never expose access tokens in the browser.
Use “@qonto/embed-sdk/server/transactions” only in server-side/backend environments.
Throws
InvalidParametersError If any of the values provided under
operationSettings or transactionSettings is invalid.
Throws
AuthenticationError If proxyEndpointDescriptor is missing within operationSettings.
Throws
EmbedApiError If the API request fails or returns an error.