Callback Functions

The following Callback functions are made for the desktop. For mobile integration, please refer to Mobile App Integration.

For desktop integrations, we have defined several optional callback functions (e.g. onSuccess, onError, onExit) that expect data objects as defined below.
Please add the following callbacks to your configuration.

onSuccess: function(data){
        // (optional)  a callback is called when the action was made successfully  
    },
onError: function(data){
        // (optional) a callback is called when a user encountered an API error
    },
onExit: function(data){
        // (optional) a callback is called when a user exits Chatbot
    },

onSuccess callback

The onSuccess callback function is called when a user has successfully linked an account. It should expect an object that provides the following information:

ParameterDescriptionSupported Project
userIdID of the userBank Logins, Interchange, Card Management
step_nameThis indicates the point at which the user successfully made an actionBank Logins, Interchange, Card Management
typeType of this event, which is successBank Logins, Interchange, Card Management
institution_nameThe full institution name (e.g. "Bank of America")Bank Logins
linkedNodeA list of nodes_id stringsBank Logins, Interchange
unlinkedNodeA list of nodes_id stringsInterchange
cardCard information(status) if it was modifiedCard Management

onError callback

The onError callback function is called when a user encounters an API error. It should expect an object that provides the following information:

ParameterDescriptionSupported Project
userIdID of the userBank Logins, Interchange, Card Management
error_codeThe http_code of error that the user encountered, see Common ErrorsBank Logins, Interchange, Card Management
http_codeThe http code of error that the user encountered, see Common ErrorsBank Logins, Interchange, Card Management
error_messageThe error message that the user encounteredBank Logins, Interchange, Card Management
timeThe timestamp when the error happenedBank Logins, Interchange, Card Management
step_nameThis indicates the point at which the user encountered an errorBank Logins, Interchange, Card Management
typeType of this event, which is errorBank Logins, Interchange, Card Management
institution_nameThe full institution name (e.g. "Bank of America")Bank Logins

onExit callback

The onExit callback function is called when a user exits Chatbot. It should expect an object that provides the following information:

ParameterDescriptionSupported Project
userIdID of the userBank Logins, Interchange, Card Management
step_nameThis indicates the point at which the user exited the ChabotBank Logins, Interchange, Card Management
typeType of this event, which is exitBank Logins, Interchange, Card Management
institution_nameThe full institution name (e.g. "Bank of America")Bank Logins
{
  "userId": String,
  "institution_name": String, 
  "linkedNode":[
    node_id: String,
    node_id: String,
  ],
  "unlinkedNode":[
    node_id: String,
    node_id: String,
  ],
  "step_name": String,
  "type": String,
  "card": String
}
{
  "userId": String,
  "institution_name": String, 
  "error_code": String,
  "http_code": String,
  "error_message":String,
  "time":String,
  "step_name": String,
  "type": String
}
{
  "userId": String,
  "institution_name": String, 
  "step_name": String,
  "type": String
}