Getting the Journey Status

The journey summary contains the status of the journey and its steps. Which steps are concluded and no longer should be started and which steps passed or failed the checks.

You can enquire about the journey status at any time by calling getJourneySummary method as follows:

IDWiseDynamic.getJourneySummary(callback: { summary, error in

})
IDWiseDynamic.getJourneySummary() { journeySummary, error ->
  // journeySummary contains the status of all steps and overall journey status 
}
IDWiseDynamic.getJourneySummary(onJourneySummary: (dynamic summary) {
       print("onJourneySummary: $summary")
 });
IDWiseDynamic.getJourneySummary( {
  onJourneySummary(summary) {
    console.log('onJourneySummary:', summary);
  },
  onError(error) {
    console.log('onJourneySummaryError:', error);
  },
});
IDWiseDynamic.getJourneySummary( {
  onJourneySummary(summary) {
    console.log('onJourneySummary:', summary);
  },
  onError(error) {
    console.log('onJourneySummaryError:', error);
  },
});

JourneySummary contains the following information

FieldTypeDescription
journeyIdStringA unique identifier for the user journey.
isCompletedBooleanA boolean field that indicates if the journey is completed or not.
stepSummariesList of StepSummaryAn array of objects that detail the steps the user has gone through in the journey. Each object in this array contains a definition and a result.
journeyResultJourneyResultResult and Status of the verification Journey as described below

StepSummary contains the following information

FieldTypeDescription
definitionStepDefinitionAn object that describes the step.
resultStepResultAn object that contains the result of the step.

StepDefinition contains the following information

FieldTypeDescription
step_idIntAn identifier for the step within the journey.

JourneyResult contains the following information

FieldTypeDescription
completedStepsIntNumber of completed steps in the journey
interimRuleAssessmentInterimRuleAssessmentEnum for the combined Interim rules assessment result [Passed, Failed]
interimRuleDetailsHashMap<String, RuleDetail>Hashmap of all the Rules Assessment Results applicable

RuleDetail contains the following information

FieldTypeDescription
nameStringName of the Rule
resultResult of the Rule AssessmentEnum for the combined Interim rules assessment result [Passed, Failed, CouldNotApply]

Error Feedbacks

You can access the table of error feedbacks, which includes descriptions for each of the feedback codes on here