Skip to main content

Event Javascript

Description

The widget service provides a way to retrieve tracking information by dispatching events via the use of postMessage which enables cross-origin communication between window objects. See https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage for more info about the technology.

For example, when performing an 'Add Connection' flow, we make it possible for you to be aware of the flow's result by adding an event listener on "message" events.

In the application, subscribe to message events:

  window.addEventListener("message", (e) => {
// e.data will contain the useful data
console.log(e.data)
})

When the flow ends the above will catch the event and output:

{
result: "created",
status: "success",
connection_id: "123456"
}

Events list

Some events are "Global", they can spread from any Widget. They are the first of the list below and have the value "Global" in the column "Widget screen".

For example, the event that warns that the widget has been resized spreads regardless of the widget currently displayed.

Widget screenEvent nameDescriptionTriggeringProperties
GlobalresizeReturns the new widget size after a resizeon widget resize{"innerWidth": int, "innerHeight": int, "outerWidth": int, "outerHeight": int}
GloballeaveThis event is triggered when the user clicks on the cross to close the widget or when the window is closedon click exit button{"client_id": "uuidv4", "redirect_uri": "url", "closing_type": "Button
Globalredirect_toThis event is triggered when the browser will redirect on the redirect_urlWhen user is redirected (change from a widget to another){"client_id": "uuidv4", "redirect_uri": "url"} + list of redirection parameters that depends of the parameters available (status, queue_id, connection_id ...)
Choose bankchoose_bank_enterWhen the choose bank widget is opened on load{"client_id": "uuidv4", "user_id": "int, optional"}
Choose bankchoose_bank_loading_errorThis event is triggered when the list of bank can not be loadedon response error{"client_id": "uuidv4", "error": "String", "user_id": int}
Choose bankchoose_bank_selectedThis event is triggered when the user select a bank and click on bank nameon click "Next Step" button{"client_id": "uuidv4", "user_id": int, "bank_id": int, "bank_name": "String", "bank_branch_name": "String"}
PSD2 Consentpsd2_consent_authorize_url_successThis event is triggered after authorized url is requestedon response success{"client_id": "uuidv4", "user_id": "int", "bank_id": "int", "bank_name": "String", "bank_branch_name": "String", channel_definition_id: "int"}
PSD2 Consentpsd2_consent_authorize_url_failureThis event is triggered after authorized url is requestedon response error{"client_id": "uuidv4", "user_id": "int", "bank_id": "int", "bank_name": "String", "bank_branch_name": "String", channel_definition_id: "int"}
PSD2 Consentpsd2_consent_selectedThis event is triggered when the user click on next step buttonon click "Next Step" button{"client_id": "uuidv4", "user_id": "int", "bank_id": "int", "bank_name": "String", "bank_branch_name": "String", channel_definition_id: "int"}
Termsterms_conditions_open_termsThis event is triggered when the user clicks on Terms and condition buttonon load{"client_id": "uuidv4", "user_id": "int", "bank_id": "int", "bank_name": "String", "bank_branch_name": "String", channel_definition_id: "int"}
Termspsd2_consent_open_detailsThis event is triggered when the user clicks on data information buttonon load{"client_id": "uuidv4", "user_id": "int", "bank_id": "int", "bank_name": "String", "bank_branch_name": "String", channel_definition_id: "int"}
Termspsd2_consent_open_privacy_policyThis event is triggered when the user clicks on privacy policy buttonon load{"client_id": "uuidv4", "user_id": "int", "bank_id": "int", "bank_name": "String", "bank_branch_name": "String", channel_definition_id: "int"}
Bank loginbank_login_credential_enterWhen the bank login widget is openedon load{"client_id": "uuidv4", "user_id": "int, optional"}
Bank loginbank_login_credentialWe send this event for each credentials when the user click on next step buttonon click "Next Step" button{"client_id": "uuidv4", "user_id": int, "credential_id": int, "credential_type": "String (PWD, DOB)", "credential_label": "String"} PWD = Password, DOB = Date of birth
Synchronizationsynchronization_enterWhen the synchronization widget is openedon load{"client_id": "uuidv4", "user_id": "int, optional"}
Synchronizationsynchronization_startThis event is triggered at the start of the synchronization when the users enter.when the synchronization loads{"client_id": "uuidv4", "user_id": int, "started_at": timestamp}
Synchronizationchallenge_enterWhen the user encounter a challenge, he is sent on a page that asks him to act (confirm send challenge, challenge value). We want to track all challengeswhen the challenge loads{"client_id": "uuidv4", "user_id": int, "credential_id": int, "credential_type": "String (PWD*, DOB**)", "credential_label": "String"}
Synchronizationsynchronization_successWhen synchronization finish with successwhen the success container loads{"client_id": "uuidv4", "user_id": int, "ended_at": timestamp, "duration_time": float, "status": "String", "queue_id": "String"}
Synchronizationsynchronization_errorWhen synchronization finish with failurewhen the error container loads{"client_id": "uuidv4", "user_id": int, "ended_at": timestamp, "duration_time": float, "event_status": "String", "error": "String"}
Consentconsent_enterWhen the consent widget is openedon load{"client_id": "uuidv4", "user_id": "int, optional"}
Consentconsent_submit_successThe user accept consent (or close the window) and we send this event with the list of asked scopeson click "Next Step" button{"client_id": "uuidv4", "user_id": "int", "scopes": "String", "authorization": boolean}
Consentconsent_submit_errorAn error occurend when the user authorizes issuer to send data to partnerson response error{"client_id": "uuidv4", "user_id": "int", "scopes": "String", "error": "String"}
Consentconsent_for_accounts_successThe user gives consent for selected accountson submit button click{"client_id": "uuidv4", "user_id": "int", "queue_id": "String", "connection_id": "String", "channel_definition_id": "int"}
Consentconsent_for_accounts_failureThe user gives consent for selected accounts and an error occureson submit button click{"client_id": "uuidv4", "user_id": "int", "queue_id": "String", "connection_id": "String", "channel_definition_id": "int"}
Manage connection listconnection_list_enterWhen the connection list page is displayedon load{"client_id": "uuidv4", "user_id": "int"}
Manage connection listconnection_clickWhen the user clicks on connectionon click{"client_id": "uuidv4", "user_id": "int", "connection_id": "String","bank_id": "int", "bank_name": "String", "bank_branch_name": "String"}
Manage connection listconnection_list_error_toastWhen the system displays toast error on connection list pageon load{"client_id": "uuidv4", "user_id": "int", "connection_id": "List(String)","bank_id": "List(int)", "bank_name": "List(String)", "bank_branch_name": "List(String)", "connection_status":"List(String)"}
Manage connection listconnection_list_informationWhen the system displays information icon on connection list pageon load{"client_id": "uuidv4", "user_id": "int", "connection_id": "List(String)","bank_id": "List(int)", "bank_name": "List(String)", "bank_branch_name": "List(String)", "connection_status":"List(String)"}
Manage connection listadd_connection_clickWhen the user clicks on “Ajouter une connexion” buttonon click{"client_id": "uuidv4", "user_id": "int"}
Manage connection listsynchro_allWhen the user clicks on synchronization iconon click{"client_id": "uuidv4", "user_id": "int", "connection_id": "String","bank_id": "int", "bank_name": "String", "bank_branch_name": "String"}
Manage connection listsynchro_all_errorWhen user wants to synchronize but there is an erroron response error{"client_id": "uuidv4", "user_id": "int", "connection_id": "String","bank_id": "int", "bank_name": "String", "bank_branch_name": "String"}
Manage connection detailconnection_detail_enterWhen the system displays connection detail pageon load{"client_id": "uuidv4","user_id": "int","connection_id": "String","bank_id": "int","bank_name": "String", "bank_branch_name":"String","connection_status": "String","channel_statut": "String","channel_type": "String","channel_name": "String"}
Manage connection detailconnection_detail_error_toastWhen the system displays toast error on connection detail pageon load{"client_id": "uuidv4", "user_id": "int", "connection_id": "String","bank_id": "int", "bank_name": "String", "bank_branch_name": "String", "connection_status": "String", "channel_statut": "String","channel_type": "String","channel_name": "String"}
Manage connection detailconnection_detail_error_toast_clickWhen the user clicks on toast error on connection detail pageon click{"client_id": "uuidv4", "user_id": "int", "connection_id": "String","bank_id": "int", "bank_name": "String", "bank_branch_name": "String", "connection_status":"String", "channel_statut": "String", "channel_type": "String","channel_name": "String"}
Manage connection detailconnection_detail_information_toastWhen the system displays information toast on connection detail pageon load{"client_id": "uuidv4", "user_id": "int", "connection_id": "String","bank_id": "int", "bank_name": "String", "bank_branch_name": "String", "connection_status": "String", "channel_statut": "String", "channel_type": "String", "channel_name": "String"}
Manage connection detailadd_channel_enterWhen the system displays “Ajouter ces comptes” buttonon load{"client_id": "uuidv4", "user_id": "int", "connection_id": "String","bank_id": "int", "bank_name": "String", "bank_branch_name": "String", "connection_status": "String", "channel_statut": "String", "channel_type": "String", "channel_name": "String"}
Manage connection detailadd_channel_clickWhen the user clicks on “Ajouter ces comptes” buttonon click{"client_id": "uuidv4", "user_id": "int", "connection_id": "String","bank_id": "int", "bank_name": "String", "bank_branch_name": "String", "connection_status": "String", "channel_statut": "String", "channel_type": "String", "channel_name": "String"}
Connection optionsconnection_option_clickWhen the user clicks on “connection option” iconon click{"client_id": "uuidv4", "user_id": "int", "connection_id": "String","bank_id": "int", "bank_name": "String", "bank_branch_name": "String"}
Connection optionsconnection_option_enterWhen the system displays connection option pageon load{"client_id": "uuidv4", "user_id": "int", "connection_id": "String","bank_id": "int", "bank_name": "String", "bank_branch_name": "String"}
Connection optionsconnection_option_renameWhen the user clicks on “renommer”on click{"client_id": "uuidv4", "user_id": "int", "connection_id": "String","bank_id": "int", "bank_name": "String", "bank_branch_name": "String"}
Connection optionsconnection_option_rename_errorWhen user wants renames but there is an erroron response error{"client_id": "uuidv4", "user_id": "int", "connection_id": "String","bank_id": "int", "bank_name": "String", "bank_branch_name": "String"}
Connection optionsconnection_option_synchronizationWhen the user clicks on “synchroniser”on click{"client_id": "uuidv4", "user_id": "int", "connection_id": "String","bank_id": "int", "bank_name": "String", "bank_branch_name": "String"}
Connection optionsconnection_option_synchronization_errorWhen user wants to synchronize but there is an erroron response error{"client_id": "uuidv4", "user_id": "int", "connection_id": "String","bank_id": "int", "bank_name": "String", "bank_branch_name": "String"}
Connection optionsconnection_option_archiveWhen the user clicks on “archiver”on click{"client_id": "uuidv4", "user_id": "int", "connection_id": "String","bank_id": "int", "bank_name": "String", "bank_branch_name": "String"}
Connection optionsconnection_option_archive_errorWhen user wants arhieve but there is an erroron response error{"client_id": "uuidv4", "user_id": "int", "connection_id": "String","bank_id": "int", "bank_name": "String", "bank_branch_name": "String"}
Connection optionsconnection_option_unarchiveWhen the user clicks on “desarchiver”on click{"client_id": "uuidv4", "user_id": "int", "connection_id": "String","bank_id": "int", "bank_name": "String", "bank_branch_name": "String"}
Connection optionsconnection_option_unarchive_errorWhen user wants desarchive but there is an erroron response error{"client_id": "uuidv4", "user_id": "int", "connection_id": "String","bank_id": "int", "bank_name": "String", "bank_branch_name": "String"}
Connection optionsconnection_option_deleteWhen the user clicks on “supprimer”on click{"client_id": "uuidv4", "user_id": "int", "connection_id": "String","bank_id": "int", "bank_name": "String", "bank_branch_name": "String"}
Connection optionsconnection_option_delete_errorWhen user wants deletes but there is an erroron response error{"client_id": "uuidv4", "user_id": "int", "connection_id": "String","bank_id": "int", "bank_name": "String", "bank_branch_name": "String"}
Account optionsaccount_option_clicksWhen the user clicks on account optionon click{"client_id": "uuidv4", "user_id": "int", "connection_id": "String","bank_id": "int", "bank_name": "String", "bank_branch_name": "String", "connection_status": "String","channel_statut": "String", "channel_type":"String", "account_statut": "String", "account_id": "String"}
Account optionsaccount_option_enterWhen the widget displays account option pageon load{"client_id": "uuidv4", "user_id": "int", "connection_id": "String","bank_id": "int", "bank_name": "String", "bank_branch_name": "String", "connection_status":"String","channel_statut": "String","channel_type": "String","account_statut": "String", "account_id": "String"}
Account optionsaccount_option_information_toast_enterWhen the system displays toast error on account option pageon load{"client_id": "uuidv4", "user_id": "int", "connection_id": "String","bank_id": "int", "bank_name": "String", "bank_branch_name": "String", "connection_status": "String", "channel_statut": "String", "channel_type": "String", "account_statut": "String", "account_id": "String"}
Account optionsaccount_option_renameWhen the user clicks on “renommer”on click{"client_id": "uuidv4", "user_id": "int", "connection_id": "String","bank_id": "int", "bank_name": "String", "bank_branch_name": "String"}
Account optionsaccount_option_rename_errorWhen user wants renames but there is an erroron response error{"client_id": "uuidv4", "user_id": "int", "connection_id": "String","bank_id": "int", "bank_name": "String", "bank_branch_name": "String"}
Account optionsaccount_option_archiveWhen the user clicks on “Archive”on click{"client_id": "uuidv4", "user_id": "int", "connection_id": "String","bank_id": "int", "bank_name": "String", "bank_branch_name": "String"}
Account optionsaccount_option_archive_errorWhen user wants achives but there is an erroron response error{"client_id": "uuidv4", "user_id": "int", "connection_id": "String","bank_id": "int", "bank_name": "String", "bank_branch_name": "String"}
Account optionsaccount_option_unarchiveWhen the user clicks on “Desachive”on click{"client_id": "uuidv4", "user_id": "int", "connection_id": "String","bank_id": "int", "bank_name": "String", "bank_branch_name": "String"}
Account optionsaccount_option_unarchive_errorWhen user wants desachives but there is an erroron response error{"client_id": "uuidv4", "user_id": "int", "connection_id": "String","bank_id": "int", "bank_name": "String", "bank_branch_name": "String"}
Account optionsaccount_option_deleteWhen the user clicks on “Supprimer”on click{"client_id": "uuidv4", "user_id": "int", "connection_id": "String","bank_id": "int", "bank_name": "String", "bank_branch_name": "String"}
Account optionsaccount_option_delete_errorWhen user wants deleted but there is an erroron response error{"client_id": "uuidv4", "user_id": "int", "connection_id": "String","bank_id": "int", "bank_name": "String", "bank_branch_name": "String"}
Channel optionschannel_edit_credentials_red_clickWhen the user clicks on "Renouveler l'authentification"on click{"client_id": "uuidv4", "user_id": "int", "connection_id": "String","bank_id": "int", "bank_name": "String", "bank_branch_name": "String"}
Channel optionschannel_edit_credentials_emb_clickWhen the user clicks on “Modifier les identifiants”on click{"client_id": "uuidv4", "user_id": "int", "connection_id": "String","bank_id": "int", "bank_name": "String", "bank_branch_name": "String"}
Channel optionschannel_synchronizeWhen the user clicks on “synchroniser”on click{"client_id": "uuidv4", "user_id": "int", "connection_id": "String","bank_id": "int", "bank_name": "String", "bank_branch_name": "String"}
Channel optionschannel_synchronize_errorWhen user wants synchronize but there is an erroron response error{"client_id": "uuidv4", "user_id": "int", "connection_id": "String","bank_id": "int", "bank_name": "String", "bank_branch_name": "String"}