> For the complete documentation index, see [llms.txt](https://api2-ekycapis.innov8tif.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://api2-ekycapis.innov8tif.com/okaydoc/okaydoc-all/supported-documents/vietnam/vn-new-id-card/versions.md).

# Versions

## Version 2

<mark style="color:green;">`POST`</mark> `https://okaydocdemo.innov8tif.com/ekyc/api/ekyc/v2/doc-verify/vn-new-id-front`

#### Request Body

| Name                                                 | Type   | Description                   |
| ---------------------------------------------------- | ------ | ----------------------------- |
| caseNo                                               | string | Reference code given by user  |
| apiKey<mark style="color:red;">\*</mark>             | string | To be assigned by Innov8tif   |
| idImageBase64Image<mark style="color:red;">\*</mark> | string | Front id card image in base64 |

{% tabs %}
{% tab title="200 " %}

```
{
    "status": "success",
    "messageCode": "api.success",
    "message": "",
    "id": "403edf75-bf24-445d-9636-fa21c075ab0c",
    "methodList": [
        {
            "method": "landmark",
            "label": "Landmark Analysis Result",
            "componentList": [
                {
                    "code": "l-vn-new-id-front-logo",
                    "label": "Logo",
                    "value": "95.9013819694519",
                    "imageUrl": "/public/image/v2/403edf75-bf24-445d-9636-fa21c075ab0c?type=l-vn-new-id-front-logo",
                    "refImageUrl": null
                },
                {
                    "code": "l-vn-new-id-front-header",
                    "label": "Header",
                    "value": "84.98201370239258",
                    "imageUrl": "/public/image/v2/403edf75-bf24-445d-9636-fa21c075ab0c?type=l-vn-new-id-front-header",
                    "refImageUrl": null
                },
                {
                    "code": "l-vn-new-id-front-expiry-d",
                    "label": "Expiry Date",
                    "value": "89.49731588363647",
                    "imageUrl": "/public/image/v2/403edf75-bf24-445d-9636-fa21c075ab0c?type=l-vn-new-id-front-expiry-d",
                    "refImageUrl": null
                },
                {
                    "code": "l-vn-new-id-front-id-no",
                    "label": "ID Number",
                    "value": "93.24602484703064",
                    "imageUrl": "/public/image/v2/403edf75-bf24-445d-9636-fa21c075ab0c?type=l-vn-new-id-front-id-no",
                    "refImageUrl": null
                },
                {
                    "code": "l-vn-new-id-front-dob",
                    "label": "Date Of Birth",
                    "value": "95.00734806060791",
                    "imageUrl": "/public/image/v2/403edf75-bf24-445d-9636-fa21c075ab0c?type=l-vn-new-id-front-dob",
                    "refImageUrl": null
                },
                {
                    "code": "l-vn-new-id-front-gender",
                    "label": "Gender",
                    "value": "94.83407139778137",
                    "imageUrl": "/public/image/v2/403edf75-bf24-445d-9636-fa21c075ab0c?type=l-vn-new-id-front-gender",
                    "refImageUrl": null
                },
                {
                    "code": "l-vn-new-id-front-hometown",
                    "label": "Hometown",
                    "value": "93.04853081703186",
                    "imageUrl": "/public/image/v2/403edf75-bf24-445d-9636-fa21c075ab0c?type=l-vn-new-id-front-hometown",
                    "refImageUrl": null
                },
                {
                    "code": "l-vn-new-id-front-address",
                    "label": "Address",
                    "value": "73.42544198036194",
                    "imageUrl": "/public/image/v2/403edf75-bf24-445d-9636-fa21c075ab0c?type=l-vn-new-id-front-address",
                    "refImageUrl": null
                }
            ]
        },
        {
            "method": "blurrinessDetection",
            "label": "ID Blur Detection",
            "componentList": [
                {
                    "code": "blurrinessDetection",
                    "label": "ID Blur Detection",
                    "value": "Fail",
                    "imageUrl": null,
                    "refImageUrl": null
                }
            ]
        },
        {
            "method": "brightnessDetection",
            "label": "ID Brightness Detection",
            "componentList": [
                {
                    "code": "brightnessDetection",
                    "label": "ID Brightness Detection",
                    "value": "Pass",
                    "imageUrl": null,
                    "refImageUrl": null
                }
            ]
        },
        {
            "method": "colorDetection",
            "label": "Color Mode",
            "componentList": [
                {
                    "code": "colorDetection",
                    "label": "Color Mode",
                    "value": "Pass",
                    "imageUrl": null,
                    "refImageUrl": null
                }
            ]
        }
    ],
    "outputImageList": [
        {
            "tag": "cropId",
            "imageUrl": "/public/image/v2/403edf75-bf24-445d-9636-fa21c075ab0c?type=cropId"
        }
    ]
}
```

{% endtab %}

{% tab title="400: Bad Request " %}

```javascript
{
    // Response
}
```

{% endtab %}

{% tab title="500: Internal Server Error " %}

```javascript
{
    // Response
}
```

{% endtab %}
{% endtabs %}

#### Postman Collection

{% file src="/files/vRBb7lEc82GG9d7ss2yH" %}
OkayDoc VN New IC v2
{% endfile %}

## Version 1

<mark style="color:green;">`POST`</mark> `https://okaydocdemo.innov8tif.com/ekyc/api/ekyc/v1/doc-verify/vn-new-id-front`

#### Request Body

| Name                                                 | Type   | Description                   |
| ---------------------------------------------------- | ------ | ----------------------------- |
| caseNo                                               | string | Reference code given by user  |
| apiKey<mark style="color:red;">\*</mark>             | string | To be assigned by Innov8tif   |
| idImageBase64Image<mark style="color:red;">\*</mark> | string | Front id card image in base64 |

{% tabs %}
{% tab title="200 " %}

```
{
    "status": "success",
    "messageCode": "api.success",
    "message": "",
    "id": "ca11ee04-5faa-4e4f-a920-20e5ae53d8fb",
    "methodList": [
        {
            "method": "landmark",
            "label": "Landmark Analysis Result",
            "componentList": [
                {
                    "code": "l-vn-id-logo",
                    "label": "Logo",
                    "value": "99.88840818405151",
                    "imageUrl": "/public/image/v2/xxxxxxxx?type=l-vn-id-logo",
                    "refImageUrl": null
                },
                {
                    "code": "l-vn-id-header",
                    "label": "Header",
                    "value": "99.54901933670044",
                    "imageUrl": "/public/image/v2/xxxxxxxxxxxxx?type=l-vn-id-header",
                    "refImageUrl": null
                },
                {
                    "code": "l-vn-id-expiry-d",
                    "label": "Expiry Date",
                    "value": "99.31495189666748",
                    "imageUrl": "/public/image/v2/xxxxxxxxxxxxx?type=l-vn-id-expiry-d",
                    "refImageUrl": null
                },
                {
                    "code": "l-vn-id-id-no",
                    "label": "ID Number",
                    "value": "99.23118352890015",
                    "imageUrl": "/public/image/v2/xxxxxxxxxxxxxxx?type=l-vn-id-id-no",
                    "refImageUrl": null
                },
                {
                    "code": "l-vn-id-dob",
                    "label": "Date Of Birth",
                    "value": "99.49858784675598",
                    "imageUrl": "/public/image/v2/xxxxxxxxxxxxxxx?type=l-vn-id-dob",
                    "refImageUrl": null
                },
                {
                    "code": "l-vn-id-gender",
                    "label": "Gender",
                    "value": "99.2161750793457",
                    "imageUrl": "/public/image/v2/xxxxxxxxxxxxxxxx?type=l-vn-id-gender",
                    "refImageUrl": null
                },
                {
                    "code": "l-vn-id-hometown",
                    "label": "Hometown",
                    "value": "99.37647581100464",
                    "imageUrl": "/public/image/v2/xxxxxxxxxxxxxxxx?type=l-vn-id-hometown",
                    "refImageUrl": null
                },
                {
                    "code": "l-vn-id-address",
                    "label": "Address",
                    "value": "99.44106340408325",
                    "imageUrl": "/public/image/v2/xxxxxxxxxxxxxxxxxx?type=l-vn-id-address",
                    "refImageUrl": null
                }
            ]
        }
    ],
    "outputImageList": [
        {
            "tag": "cropId",
            "imageUrl": "/public/image/v2/ca11ee04-5faa-4e4f-a920-20e5ae53d8fb?type=cropId"
        }
    ]}
```

{% endtab %}

{% tab title="400: Bad Request " %}

```javascript
{
    // Response
}
```

{% endtab %}

{% tab title="500: Internal Server Error " %}

```javascript
{
    // Response
}
```

{% endtab %}
{% endtabs %}

#### Postman Collection

{% file src="/files/CUdSvrAbokc5ugXChsHV" %}
OkayDoc VN New IC
{% endfile %}
