Download OpenAPI specification:Download
API de Verificación de Identidad Biométrica (KYC) de BeTrust.
Flujo de integración mínimo (3 llamadas):
client_credentials).Además, credential_information permite recuperar los datos del documento al finalizar.
Ambientes: Sandbox (
-tst) y Producción. Los hosts de producción se entregan en el onboarding. No hay ambiente de QA expuesto al integrador.
Emite un token Bearer mediante OAuth2 client_credentials.
El client_id/client_secret los entrega BeTrust por ambiente.
| client_id required | string |
| client_secret required | string |
| grant_type required | string Value: "client_credentials" |
{- "client_id": "<tu_client_id>",
- "client_secret": "<tu_client_secret>",
- "grant_type": "client_credentials"
}{- "access_token": "<access_token>",
- "token_type": "Bearer",
- "expires_in": 7200,
- "scope": "",
- "created_at": 1781823641
}Crea una transacción de verificación de identidad.
Scope requerido: engine.transaction.w
Todas las reglas de negocio del flujo se configuran aquí (vía metadata): tipo de liveness,
verificación de documento, enrolamiento, antifraude, branding, etc.
Idempotencia. El mecanismo es el transaction_id único por company_id: reintentar la
creación con el mismo par devuelve 409 Duplicated (no se crea otra transacción).
| transaction_id required | string Identificador de la transacción del lado del integrador. Único por |
| company_id required | string |
| authorization_method required | string Enum: "kyc_register" "kyc_register_simple" "sms" "email" "fido2" "bioidentity" Método de validación. |
| tries | integer >= 1 Default: 3 Intentos permitidos (> 0). Si se omite, se completa según |
| expiration | integer Default: 600 Expiración del link en segundos. |
| webhook | string <uri> URL de notificación de cambios de estado. |
| scope | string |
| user_id | string |
| client_id | string |
| creator_user_id | string |
| allowed_clients | Array of strings |
| nanoid | boolean Si es true, genera un nanoid de 6 caracteres. |
| user_email | string <email> |
| link | string Plantilla de link. Soporta placeholders |
object (Metadata) Configuración del flujo. Requerida para ciertos |
{- "transaction_id": "order-12345",
- "company_id": "201",
- "authorization_method": "kyc_register",
- "tries": 3,
- "expiration": 600,
- "metadata": {
- "country": "CHILE",
- "nin": "11111111-1",
- "challenges_required": 1,
- "capture_document_expiration": 120,
- "capture_facial_expiration": 120,
- "capture_challenge_expiration": 120,
- "require_document_validation": true,
- "document_verification": false,
- "verify_image_authenticity": true,
- "enrolment": false,
- "fraud_check": true,
- "internal_credential_check": false
}
}{- "code": 200,
- "resource": "Transaction",
- "data": {
- "id": 0,
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "transaction_id": "string",
- "user_id": "string",
- "company_id": "string",
- "authorization_method": "string",
- "code": "string",
- "active": true,
- "complete": true,
- "failed": true,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "deleted_at": "2019-08-24T14:15:22Z",
- "scope": "string",
- "expiration": 0,
- "tries": 0,
- "allowed_clients": [
- "string"
], - "nanoid": "string",
- "validator_url": "string",
- "metadata": {
- "country": "CHILE",
- "nin": "string",
- "challenges_required": 0,
- "document_verification": false,
- "require_document_validation": false,
- "verify_image_authenticity": false,
- "enrolment": false,
- "fraud_check": false,
- "internal_credential_check": false,
- "capture_document_expiration": 120,
- "capture_facial_expiration": 120,
- "capture_challenge_expiration": 120,
- "document_tolerance": 0,
- "webhook_full_update": false,
- "web_redirect": false,
- "timer": false,
- "show_timer": true,
- "show_auto_button": true
}, - "client_id": "string",
- "webhook": "string",
- "verification_result": {
- "selfie_document_match": 96.052
}, - "issue_description": "string",
- "step": "Session_start",
- "description": "string",
- "creator_user_id": "string",
- "extra_check_details": { }
}, - "message": "Found"
}{- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "transaction_id": "string",
- "company_id": "string",
- "authorization_method": "string",
- "active": true,
- "complete": true,
- "failed": true,
- "updated_at": "2019-08-24T14:15:22Z",
- "verification_result": {
- "selfie_document_match": 96.052
}
}Obtiene una transacción por su identificador.
Scope requerido: engine.transaction.r
El estado se interpreta con la combinación active / complete / failed
(ver schema Transaction). El detalle del paso y del rechazo viene en step /
issue_description (ver StepCode y IssueCode).
| transaction_uuid required | string Acepta tanto el |
{- "code": 200,
- "resource": "Transaction",
- "data": {
- "id": 0,
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "transaction_id": "string",
- "user_id": "string",
- "company_id": "string",
- "authorization_method": "string",
- "code": "string",
- "active": true,
- "complete": true,
- "failed": true,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "deleted_at": "2019-08-24T14:15:22Z",
- "scope": "string",
- "expiration": 0,
- "tries": 0,
- "allowed_clients": [
- "string"
], - "nanoid": "string",
- "validator_url": "string",
- "metadata": {
- "country": "CHILE",
- "nin": "string",
- "challenges_required": 0,
- "document_verification": false,
- "require_document_validation": false,
- "verify_image_authenticity": false,
- "enrolment": false,
- "fraud_check": false,
- "internal_credential_check": false,
- "capture_document_expiration": 120,
- "capture_facial_expiration": 120,
- "capture_challenge_expiration": 120,
- "document_tolerance": 0,
- "webhook_full_update": false,
- "web_redirect": false,
- "timer": false,
- "show_timer": true,
- "show_auto_button": true
}, - "client_id": "string",
- "webhook": "string",
- "verification_result": {
- "selfie_document_match": 96.052
}, - "issue_description": "string",
- "step": "Session_start",
- "description": "string",
- "creator_user_id": "string",
- "extra_check_details": { }
}, - "message": "Found"
}Recupera los datos del documento de una transacción finalizada.
Host: https://api-tst.trust.lat.
| transaction_id required | string UUID de la transacción. |
{- "code": 200,
- "resource": "User Credential",
- "data": {
- "name": "string",
- "last_name": "string",
- "date_birth": "dd/mm/yyyy",
- "nin": "string",
- "document_number": "string",
- "identity_verification_score": 99.997
}, - "message": "Ok"
}