Creating a placeholder Bank Account and posting Transaction via the Common UI
The following diagram shows the flow (sequence diagram) for creating a placeholder bank account, then importing transactions from the Transaction Import Connector, with the use of the Common UI.
If a user doesn’t have a bank account already on Banking Service, a placeholder bank account is created in the region the user has specified based on the country code provided by the Product. A bankAccountId is then returned to the Common UI which is used when calling the POST /imports endpoint to generate an Upload URL.
Once a file has been uploaded to the generated Upload URL after the POST /imports request, the Transactions Import Connector will perform a continuous polling until the status of the Transaction Import is either ‘awaitingConfirmation’ or ‘error’. You can read more about State Machine Statuses here.
After the POST /confirm endpoint is called, the Transaction Import Connector will perform another continuous poll until the Transaction Import status is either ‘complete’ or ‘error’.