Moroccan National ID (MRZ & Barcode)

This API provides Data Extraction for the Moroccan National ID document, for both MRZ
 and Barcode NIDs.

Moroccan National ID OCR

POST https://valifystage.com/api/v1/ocr/

Headers

Name
Type
Description

Content-Type

string

application/json

Authentication

string

bearer <access-token>

Request Body

Name
Type
Description
Notes

document_type

string

mar_nid_ocr

data

object

Object containing the parameters below: { "front_img":<base64 str>, "back_img": <base64 str>, "bundle_key": <str> , "lang": <str> }

Please note thatimg cannot be empty (i.e., missing or an empty string "").

Status Codes

{
    "result": {
        "first_name": {
            "arabic": <string>,
            "latin": <string>
        },
        "last_name": {
            "arabic": <string>,
            "latin": <string>
        },
        "birth_place": {
            "arabic": <string>,
            "latin": <string>
        },
        "father_name": {
            "arabic": <string>,
            "latin": <string>
        },
        "mother_name": {
            "arabic": <string>,
            "latin": <string>
        },
        "address": {
            "arabic": <string>,
            "latin": <string>
        },
        "birth_date": <string>,
        "expiration_date": <string>,
        "gender": <string>,
        "civil_status_num": <string>
    },
    "transaction_id": <string>,
    "trials_remaining": <int>
}

Last updated