Variable: sepaTransfers
The sepaTransfers namespace contains all the client-side functions related to SEPA transfer operations. This version uses proxy-based authentication (proxyRequestFunction or proxyEndpointDescriptor) and is designed for browser environments. For server-side operations using access tokens, import from ‘@qonto/embed-sdk/sepa-transfers/server’. It can be accessed like this:constsepaTransfers:object
Type declaration
bulkTransfers
bulkTransfers: object
bulkTransfers.createBulkTransfer()
createBulkTransfer: (Creates a new SEPA bulk transfer with Verification of Payee (VoP) checks. This function is only available in client-side (browser) environments as it requires UI interaction. Note: This function currently uses accessToken + iframe flow. Support for proxy-based flow is planned for a future update.params) =>AsyncGenerator<SingleBulkVopVerificationResult[],undefined|CreateBulkTransferResponse>
Parameters
params
CreateBulkTransferClientParams
An object containing bulk transfer settings and operation settings.
Returns
AsyncGenerator<SingleBulkVopVerificationResult[], undefined | CreateBulkTransferResponse>
As a yielded value, VoP check results for all unique beneficiaries.
As the final return value, an object containing the created bulk transfer and metadata
including the idempotency key.
bulkTransfers.getBulkTransfer()
getBulkTransfer: (Fetches a specific SEPA bulk transfer by its ID.params) =>Promise<BulkTransfer>
Parameters
params
BulkTransferClientParams<GetBulkTransfer>
An object containing the bulkTransferId and operation settings with
proxyRequestFunction or proxyEndpointDescriptor (required).
Returns
Promise<BulkTransfer>
A promise that resolves to a BulkTransfer object.
bulkTransfers.getBulkTransfers()
getBulkTransfers: (Fetches the list of SEPA bulk transfers for the current user.getBulkTransfersParams?) =>Promise<GetBulkTransfersResponse>
Parameters
getBulkTransfersParams?
BulkTransferClientParams<never>
An optional object containing operation settings with
proxyRequestFunction or proxyEndpointDescriptor (required).
Returns
Promise<GetBulkTransfersResponse>
A promise that resolves to an object containing an array of bulk
transfers and a meta object containing pagination state.
cancelSepaTransfer()
cancelSepaTransfer: (Cancels an existing SEPA transfer identified by the providedcancelSepaTransferParams) =>Promise<void>
sepaTransferId.
Parameters
cancelSepaTransferParams
SepaTransferClientParams<CancelSepaTransferParams>
An object containing:
sepaTransferSettings: An object with thesepaTransferIdproperty (string).operationSettings: An object with operation-level settings such asproxyRequestFunctionorproxyEndpointDescriptor(required).
Returns
Promise<void>
A promise that resolves without return value.
Throws
InvalidParametersError If the sepaTransferId parameter is missing,
not a string, or if neither proxyRequestFunction nor proxyEndpointDescriptor is provided.
Throws
EmbedApiError If the API request fails or returns an error.
createSepaTransfer()
createSepaTransfer: (Creates a new SEPA transfer from the current user to a given beneficiary including a Verification of Payee (VoP) check first. If the VoP check is responded with an acceptance, and depending on the beneficiary’s trust status, this function will either create the transfer directly (if the beneficiary is trusted) via API or open the UI to complete the SCA process (if the beneficiary is not trusted). This function is only available in client-side (browser) environments as it may require UI interaction for SCA flows.createTransferParams) =>AsyncGenerator<VopVerificationResult,undefined|CreateSepaTransferResponse>
Parameters
createTransferParams
SepaTransferClientParams<NewSepaTransfer | BeneficiaryInformationForVop>
An object with the parameters to create the
transfer. See SepaTransferClientParams.
Returns
AsyncGenerator<VopVerificationResult, undefined | CreateSepaTransferResponse>
As the first yielded value, a promise that resolves to the VoP check result.
As the final return value, a promise that resolves to an object containing the created
SEPA transfer and metadata including the idempotency key.
Throws
InvalidParametersError If required parameters are missing or invalid.
Throws
InvalidRuntimeError If a transfer for an untrusted beneficiary is
attempted in a non-browser environment.
Throws
EmbedApiError If the API request fails or returns an error.
getSepaTransfer()
getSepaTransfer: (Fetches a single SEPA transfer of the current user by ID.getSepaTransferParams) =>Promise<SepaTransfer>
Parameters
getSepaTransferParams
SepaTransferClientParams<GetSepaTransfer>
An object containing:
sepaTransferSettings: An object with thesepaTransferIdproperty (string).operationSettings: An object with operation-level settings such asproxyRequestFunctionorproxyEndpointDescriptor(required).
Returns
Promise<SepaTransfer>
A promise that resolves to a SEPA transfer.
Throws
InvalidParametersError If the sepaTransferId parameter is not a string,
missing, or if neither proxyRequestFunction nor proxyEndpointDescriptor is provided.
Throws
EmbedApiError If the API request fails or returns an error.
getSepaTransferCreationFlowLink()
getSepaTransferCreationFlowLink: (Generates an authentication link to start the SEPA transfer creation flow as a hosted page. This flow will allow users to create a SEPA transfer from a Qonto hosted page.getSepaTransferCreationFlowLinkParams) =>Promise<AuthLinkRequestResult>
Parameters
getSepaTransferCreationFlowLinkParams
SepaTransferClientParams<SepaTransferCreationFlowRequest>
An object containing:
sepaTransferSettings: An object with thecallbackUrlproperty.operationSettings: An object with operation-level settings such asproxyRequestFunctionorproxyEndpointDescriptor(required).
Returns
Promise<AuthLinkRequestResult>
A promise that resolves to an object representing the Embed Auth Link.
Throws
InvalidParametersError If the callbackUrl is invalid or missing, or if
neither proxyRequestFunction nor proxyEndpointDescriptor is provided.
Throws
EmbedApiError If the API request fails or returns an error.
getSepaTransfers()
getSepaTransfers: (Fetches the list of SEPA transfers for the current user.getSepaTransfersParams?) =>Promise<GetSepaTransfersResponse>
Parameters
getSepaTransfersParams?
SepaTransferClientParams<never>
An object containing:
operationSettings: An object with operation-level settings such asproxyRequestFunctionorproxyEndpointDescriptor(required),paginationSettings, and other optional parameters.
Returns
Promise<GetSepaTransfersResponse>
A promise that resolves to an object containing an array of SEPA
transfers and a meta object containing pagination state.
Throws
InvalidParametersError If neither proxyRequestFunction nor
proxyEndpointDescriptor is provided.
Throws
EmbedApiError If the API request fails or returns an error.