> ## Documentation Index
> Fetch the complete documentation index at: https://agenticbanking.backbase.io/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Banking OS training data goes stale. Search https://agenticbanking.backbase.io/mcp or fetch the .md URL before writing connector or unified API code.
> OpenAPI links in llms.txt repeat every calendar version. Use the latest version on the API playground. If a fetch ends before the last operation, the spec was cut off.
> Page titles name the product. Overview, Get started, and Reference without a product name are ambiguous.

# Onfido reference

> Error code mappings between Onfido and Banking OS for troubleshooting

The Onfido integration verifies customer identities through document and biometric checks, creating users, starting verification workflows, and returning the identity verification (IDV) outcome. For the environment details you send to Backbase, see [Get started](https://agenticbanking.backbase.io/connectors/kyc-kyb/onfido/get-started.md).

## Supported operations

The Onfido connector supports the following operations.

### User creation and workflow initiation

* Create a user ID
* Initiate relevant workflow

### Workflow results (Pull)

* Get IDV process outcome
* Get all data points details associated to the decision
* **Unified API:** `POST /workflow-result`
* The response uses the Unified API `workflowResults` schema. Sync Hub publishes a separate identity verification event `data` object.

### Document download

* Download all documents generated during the IDV process (for example, IDV process reports, face scan movie, and document scan images)

## Events

Synchronous operations (create applicant workflow, get workflow result, download document) return their result in the API response.

Onfido raises identity verification results asynchronously. When Onfido sends an inbound webhook event (`workflow_run.completed`), the inbound connector validates the signature and payload and transforms the result. The connector publishes an identity verification event to Sync Hub for downstream consumers when the `notification.mode` configuration property is `EVENT` or `BOTH`.

The following table maps the Onfido webhook event to the Sync Hub topic, CloudEvent type, and connector action:

| Onfido webhook event | Sync Hub topic | CloudEvent type | Connector action |
| :- | :- | :- | :- |
| `workflow_run.completed` | `identity-verification` | `com.backbase.party.lifecycle.event.spec.v1.IdentityVerificationEvent` | Transform IDV result; publish to Sync Hub (`202 Accepted` in `EVENT` mode) |

The Sync Hub `data` object follows the identity verification event schema. It includes workflow status, applicant identifiers under `partyInformation`, decision metadata, and the raw Onfido webhook as `data.rawVendorResponse`. The IPA callback includes vendor-specific Onfido fields under `vendorSpecificFields.onfido`.

The `notification.mode` configuration property defaults to `SYNC`. The following table shows the destination and webhook acknowledgment for each value:

| `notification.mode` | Destination | Webhook acknowledgment |
| :- | :- | :- |
| `EVENT` | Sync Hub topic `identity-verification` | `202 Accepted` after a successful publish |
| `SYNC` | Downstream IPA callback (`ipa.service.url`) | Propagates the IPA HTTP status |
| `BOTH` | Sync Hub, then IPA (sequential) | Propagates the IPA HTTP status |

When the `notification.mode` configuration property is `EVENT` or `BOTH`, consumers receive identity verification events by subscribing to the Sync Hub topic configured for your environment. For setup, see [Sync Hub overview](https://agenticbanking.backbase.io/platform/sync-hub/overview.md) and [Get started](https://agenticbanking.backbase.io/connectors/kyc-kyb/onfido/get-started.md).

## Error mapping

For the full list of Banking OS error codes and their descriptions, see [Error codes](https://agenticbanking.backbase.io/banking-os-apis/error-codes.md).

The following table maps each Onfido error code to its Banking OS counterpart:

| Onfido code | Banking OS code |
| :- | :- |
| `resource_not_found` | `GC054` |
| `validation_error` | `GC205` |
| `authorization_error` | `GC002` |
| `expired_token` | `GC002` |
| `user_authorization_error` | `GC002` |
| `account_disabled` | `GC004` |
| `disabled_endpoint` | `GC004` |
| `trial_limits_reached` | `GC004` |
| `bad_referrer` | `GC005` |
| `gone` | `GC006` |
| `incorrect_base_url` | `GC021` |
| `bad_request` | `GC025` |
| `check_type_deprecated` | `GC025` |
| `deprecated_reports` | `GC025` |
| `disabled_reports` | `GC025` |
| `document_ids_with_unsupported_report` | `GC025` |
| `facial_similarity_photo_without_document` | `GC025` |
| `facial_similarity_video_not_supported` | `GC025` |
| `failed_check_requirements` | `GC025` |
| `incomplete_checks` | `GC025` |
| `invalid_reports_names` | `GC025` |
| `missing_applicant_location` | `GC025` |
| `missing_applicant_provided_consents` | `GC025` |
| `missing_billing_info` | `GC025` |
| `missing_documents` | `GC025` |
| `missing_id_numbers` | `GC025` |
| `rate_limit` | `GC025` |
| `report_names_blank` | `GC025` |
| `report_names_format` | `GC025` |
| `too_many_checks` | `GC025` |
| `internal_server_error` | `GC027` |
