# Single-use link ## Introduction This document provides comprehensive guidance for integrating with the B-Trust identity verification service. The service enables secure identity verification through a combination of document authentication and facial recognition. ## Requirements and Compatibility Before proceeding with integration, please ensure you have the following resources and knowledge: - Access to the base URL for the identity verification service - API key and project name provided by the service provider - The product ID associated with the service you intend to utilize - Working knowledge of HTTP GET and POST methods - Authentication credentials for web services - Endpoint for callback registration and webhook configuration - Development environment capable of handling REST API calls - Understanding of JSON request and response structures ## Authentication ### Login Service To access the B-Trust API services, you must first authenticate using the login endpoint. This will provide the access token required for all subsequent requests. **Endpoint:** `https://api-fintecheart.ado-tech.com/api/v1/auth/login` **Method:** POST **Headers:** ``` x-accountId: AdoQa Content-Type: application/json ``` **Request Body:** ```json { "username": "your-username@example.com", "password": "your-password" } ``` **Example Response:** ```json { "access_token": "eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICIzTjZFTlpRcWVJdHdZOGtDN05VdFZsTzBUSlJaTzhsOFRkRkZQSXZzcmJzIn0...", "expires_in": 3600, "refresh_expires_in": 0, "token_type": "Bearer", "not-before-policy": 0, "scope": "email profile" } ``` The `access_token` obtained from this response must be included in the Authorization header for all subsequent API requests, using the format `Bearer {access_token}`. ## Identity Verification Flow Services ### Create Flow Request This endpoint allows you to create a new identity verification request, initiating the verification flow process. **Endpoint:** `https://api-fintecheart.ado-tech.com/api/v1/flowmanager/flowrequest/create` **Method:** POST **Headers:** ``` Authorization: Bearer {access_token} x-accountid: AdoQa Content-Type: application/json ``` **Request Body Parameters:**
Parameter | Type | Description |
---|---|---|
documentType | String | Type of identification document (e.g., "1" for national ID) |
documentNumber | String | The identification number on the document |
flowType | String | The type of verification flow to initiate (e.g., "1" for enrollment) |
riskAmount | Number | The monetary value associated with the transaction for risk assessment |
callBackUrl | String | URL where the user will be redirected after verification |
Field | Description |
---|---|
code | Internal reference code for the request |
typeDocument | Type of identification document |
document | The identification number |
url | The URL to redirect the user for verification |
key | Unique key for this verification request |
flowType | Type of verification flow |
state | Current state of the request (1 = created) |
createFor | Email of user who created the request |
updateFor | Email of user who last updated the request |
valiteKey | Expiration datetime of the verification key |
amountRisk | Monetary value for risk assessment |
customerId | Customer ID in the system |
callBackUrl | URL where user will be redirected after verification |
createDate | Creation datetime of the request |
project | Project ID in the system |
customer | Object containing customer configuration details |
Parameter | Description |
---|---|
key | The unique key of the verification request |
Field | Description |
---|---|
success | Boolean indicating if the request was successful |
message | Message describing the result of the operation |
flowRequestData | Object containing the verification request data |
documentType | Type of identification document |
documentNumber | The identification number on the document |
flowUrl | Base URL for the verification flow |
flowKey | Unique key for this verification request |
flowType | Type of verification flow |
state | Current state of the request |
createdBy | Email of user who created the request |
updateBy | Email of user who last updated the request |
createDate | Creation datetime of the request |
riskAmount | Monetary value for risk assessment |
customerId | Customer ID in the system |
callbackUrl | URL where user will be redirected after verification |
Parameter | Description |
---|---|
client\_id | Your client ID for webhook authentication |
client\_secret | Your client secret for webhook authentication |
grant\_type | Authentication method (use "client\_credentials") |
Field | Description |
---|---|
Uid | Unique identifier for this verification process |
key | Key that matches the flow request key |
StartingDate | Date and time when the verification process started |
CreationDate | Date and time when the verification record was created |
CreationIP | IP address from which the verification was initiated |
DocumentType | Type of identification document |
IdNumber | Identification number from the document |
FirstName | First name of the verified individual |
SecondName | Second name of the verified individual |
FirstSurname | First surname/last name of the verified individual |
SecondSurname | Second surname/last name of the verified individual |
Gender | Gender of the verified individual |
BirthDate | Date of birth of the verified individual |
PlaceBirth | Place of birth of the verified individual |
TransactionType | Type of transaction (1 = Enroll) |
TransactionTypeName | Name of the transaction type |
IssueDate | Date when the identification document was issued |
TransactionId | Unique identifier for the transaction |
ProductId | Identifier of the product used for verification |
ComparationFacesSuccesful | Boolean indicating if facial comparison was successful |
FaceFound | Boolean indicating if a face was detected |
FaceDocumentFrontFound | Boolean indicating if a face was found on the front of the document |
BarcodeFound | Boolean indicating if a barcode was detected and read |
ResultComparationFaces | Numerical score of facial comparison |
ComparationFacesAproved | Boolean indicating if the facial comparison met approval threshold |
Extras | Object containing additional verification data |
Scores | Array of assessment scores for the verification |