Verification result
A verification can finish in the app, but its final status may be set later: by business rules, by an agent reviewing the evidence, or by your backend. This page explains where to read it.
Where to read the result
| Need | Where | How |
|---|---|---|
| Drive the app UI right after the capture | App | The SDK callbacks (scanDocument, validateFace…) |
| Know the final status of the process | App | checkVerificationProcessResult |
| Take the onboarding decision, store the data and evidence | Backend | MobbScan Server API |
| Be notified when the status changes | Backend | Webhooks |
Data received in the app can be manipulated on a compromised device. Base the onboarding decision on the result your backend obtains from the MobbScan Server API.
Check the status from the app
- Swift
- Objective-C
MobbScanAPI.getInstance().checkVerificationProcessResult(forScanId: scanId) { result, resultData, error in
// VERIFIED, NOT_VERIFIED, PENDING or ERROR
}
[[MobbScanAPI getInstance] checkVerificationProcessResultForScanId:scanId
withResultListener:^(MobbScanVerificationProcessResult result, MobbScanVerificationProcessResultData *resultData, NSError *error) {
// VERIFIED, NOT_VERIFIED, PENDING or ERROR
}];
MobbScanVerificationProcessResult | Meaning |
|---|---|
VERIFIED | The process was accepted |
NOT_VERIFIED | The process was rejected |
PENDING | The process has not been decided yet |
ERROR | The status could not be retrieved |
Attach your own data
You can store key/value data with the process — a customer ID or a phone number, for example — so that it appears with the evidence and can be used to search processes. Send it once the document scan has finished. This call requires baseURL to point to the agent service of your environment (…/mobbscan-agent).
- Swift
- Objective-C
MobbScanAPI.getInstance().addExtraParameter(["customerId": "12345"], forValidationWithScanId: scanId, withSuccess: {
// Stored
}, failure: { error in
// Not stored
})
[[MobbScanAPI getInstance] addExtraParameter:@{@"customerId": @"12345"}
forValidationWithScanId:scanId
withSuccess:^{ /* Stored */ }
failure:^(NSError *error) { /* Not stored */ }];
From your backend, use Add extra data instead.
Get data and evidence in your backend
Send the scanId to your backend and use the Server API:
- Get process information — status, extracted data, validations and links to the evidence.
- Evidence — images, recordings, PDF report and certified ZIP.
- Webhooks — receive every status change without polling.