Skip to content

Analysis Result - Onboarding

The onboarding result is described as follows:

{
    "applicant_id": "ap-...",
    "reasons": [],
    "customer_data": {},
    "document": {}
}
ParameterType / defaultNote
1applicant_idstringThe same applicant_id you receive when getting a token
2reasonslist[string]

If the onboarding is accepted, list empty.

If rejected, this will indicate the reasons of the rejection

3customer_dataobject / {}When using the callback, ShareID can return the customer_data you provided. This information is for your internal use and will only be included in the callback
4documentobjectThe document field contains the information extracted from the user ID document and the analysis result see below for details
1. applicant_id The `applicant_id` uniquely identifies the user in our system. You should keep track of this value in order to [fetch the result](/ai-analysis-result/analysis-result-onboarding/) later. If you're using a callback, the `applicant_id` will also be send to your server (check here [result on the callback](/ai-analysis-result/analysis-result-onboarding/)).
"ap-...
2. reasons The list of rejection reasons among the values below. This list is empty if the onboarding is accepted.
reason_idnote
doc_expiredDocument expired
surname_not_extractedSurname not extracted
name_not_extractedName not extracted
date_not_extractedDate not extracted
no_docDocument detection problem: Document disappeared, is blurry, occluded or poorly illuminated
doc_spoofDocument printed or shown on screen (spoofing)
doc_injectDocument injected or digitally modified
doc_mismatchDocument front and back mismatch
doc_fraudFraud suspicion on document
face_insufficient_qualityInsufficient face quality for encoding extraction.
no_faceFace detection problem: Face disappeared, is blurry, occluded or poorly illuminated
face_spoofFace printed or shown on screen (spoofing)
face_injectFace injected or DeepFake
face_fraudFraud on document ownership
multiple_facesMultiple faces present in the video
analysis_failedAnalysis has failed
no_errorNo error
3. customer_data Any data you sent with the onboarding request here: [getting a token](/get-a-token/get-a-token-onboarding/)
4. document This field contains the information extracted from the user ID document and the analysis result.
{
    "type": {
        "doc_type": "",
        "doc_model": "",
        "country_code": "",
    },
    "ocr": {
      // Personal data extracted from user document -- see examples below
    },
    "doc_front": "",
    "doc_back": "",
    "face_face": "",
    "face_doc": ""
}
FieldType
doc_typestringone of: "id_card" "passport" "driver_permit" "residency_permit"
doc_modelstringinternal model reference detected
country_codestringcountry code ISO 3166-1.alpha-2
doc_frontstring | nullbase64 encoded image of document front page
doc_backstring | nullbase64 encoded image of document back page
face_facestring | nullbase64 encoded image of face from liveness
face_docstring | nullbase64 encoded image of face from document

As you'll receive the images in a json document they will be encoded in base64. So you will need to decode them on your side.

Note that those images are not sent by default because it makes the json document largely heavier.

Result examples

{
    "type": {
        "doc_type": "passport",
        "doc_model": "2006",
        "country_code": "fr",
    },
    "ocr": {
      "doc_num": "", //if it appears on the document
        "surname": "",//if it appears on the document
        "alternate_name": "",//if it appears on the document
        "widow_of": "",//if it appears on the document
        "mariage_name": "",//if it appears on the document
        "name": "",//if it appears on the document
        "height": "",//if it appears on the document
        "birth_place": "",//if it appears on the document
        "birth_date": "",//if it appears on the document
        "address": "",//if it appears on the document
        "expiration_date": "",//if it appears on the document
        "issuance_date": "",//if it appears on the document
        "issuance_place": "",//if it appears on the document
    },
    "doc_front": "",
    "doc_back": "",
    "face_face": "",
    "face_doc": ""
}