If everything goes right
If the update goes according to planned when refreshing an account, we will send you anaccount.refresh_intent.succeeded event that looks like this:
data key, you will find the detail about the refresh. In this case, the account with id: acc_00000000 got successfully updated, as its status is succeeded. The new_movements field indicates how many new movements were found during the update. If this number is different to zero, you should query the List Movements endpoint to obtain the new movements. If that number is zero, you can assume that you have the latest movements already.
On demand, recurrent and the
new_movements fieldThe new_movements field refers to the amount of movements new after the update, and not since you last called the API, so you must be careful if your account also has recurrent updates, as the new_movements of a refresh may not be the amount of new movements since you last requested movements to Fintoc.If something goes wrong
If the update fails, for example if the bank application is down, we will send you anaccount.refresh_intent.failed event.
data key, you will find the detail about the refresh. In this case, the account with id: acc_00000000 failed to be updated, as its status is failed. If the public_error is retryable_error, you can create a new Refresh Intent without needing to wait 5 minutes (the time you need to wait between Refresh Intents). If the public_error is support_required_error please contact our support team.
If the credentials are invalid
If the update fails because the credentials are invalid, we will send you anaccount.refresh_intent.rejected event:
data key, you will find the detail about the refresh. In this case, the account with id: acc_00000000 failed to be updated due to the bank rejecting the credentials as invalid, as its status is rejected. If this is the case, you can create a new Refresh Intent without needing to wait 5 minutes (the time you need to wait between Refresh Intents). But beware. Doing this too many times too fast could lock the user out of its account. We recommend waiting some time between retries.
Invalid credentialsSometimes, banks say a set of credentials are invalid when they are not. Thatโs why we allow you to retry the Refresh Intent after a
rejected status. If the credentials are in fact invalid, you should re-connect the Link through the widget.