# Versions

## Version 2

<mark style="color:green;">`POST`</mark> `https://okaydocdemo.innov8tif.com/ekyc/api/ekyc/v2/doc-verify/vn-old-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": "151d1e33-5b8b-49d1-8bff-1afc584143fd",
    "methodList": [
        {
            "method": "landmark",
            "label": "Landmark Analysis Result",
            "componentList": [
                {
                    "code": "l-vn-old-id-front-logo",
                    "label": "Logo",
                    "value": "74.92177486419678",
                    "imageUrl": "/public/image/v2/151d1e33-5b8b-49d1-8bff-1afc584143fd?type=l-vn-old-id-front-logo",
                    "refImageUrl": null
                },
                {
                    "code": "l-vn-old-id-front-header1",
                    "label": "Header1",
                    "value": "84.9748969078064",
                    "imageUrl": "/public/image/v2/151d1e33-5b8b-49d1-8bff-1afc584143fd?type=l-vn-old-id-front-header1",
                    "refImageUrl": null
                },
                {
                    "code": "l-vn-old-id-front-header2",
                    "label": "Header2",
                    "value": "84.71530079841614",
                    "imageUrl": "/public/image/v2/151d1e33-5b8b-49d1-8bff-1afc584143fd?type=l-vn-old-id-front-header2",
                    "refImageUrl": null
                },
                {
                    "code": "l-vn-old-id-front-no",
                    "label": "No",
                    "value": "90.30178189277649",
                    "imageUrl": "/public/image/v2/151d1e33-5b8b-49d1-8bff-1afc584143fd?type=l-vn-old-id-front-no",
                    "refImageUrl": null
                },
                {
                    "code": "l-vn-old-id-front-name",
                    "label": "Name",
                    "value": "88.81002068519592",
                    "imageUrl": "/public/image/v2/151d1e33-5b8b-49d1-8bff-1afc584143fd?type=l-vn-old-id-front-name",
                    "refImageUrl": null
                },
                {
                    "code": "l-vn-old-id-front-dob",
                    "label": "Date Of Birth",
                    "value": "87.4322772026062",
                    "imageUrl": "/public/image/v2/151d1e33-5b8b-49d1-8bff-1afc584143fd?type=l-vn-old-id-front-dob",
                    "refImageUrl": null
                },
                {
                    "code": "l-vn-old-id-front-pob",
                    "label": "Place Of Birth",
                    "value": "83.88580083847046",
                    "imageUrl": "/public/image/v2/151d1e33-5b8b-49d1-8bff-1afc584143fd?type=l-vn-old-id-front-pob",
                    "refImageUrl": null
                },
                {
                    "code": "l-vn-old-id-front-address",
                    "label": "Address",
                    "value": "82.717764377594",
                    "imageUrl": "/public/image/v2/151d1e33-5b8b-49d1-8bff-1afc584143fd?type=l-vn-old-id-front-address",
                    "refImageUrl": null
                },
                {
                    "code": "l-vn-old-id-front-backgroundlandmark",
                    "label": "Background Landmark",
                    "value": "41.22561812400818",
                    "imageUrl": "/public/image/v2/151d1e33-5b8b-49d1-8bff-1afc584143fd?type=l-vn-old-id-front-backgroundlandmark",
                    "refImageUrl": null
                },
                {
                    "code": "l-vn-old-id-front-wavinglines",
                    "label": "Waving Lines",
                    "value": "75.50296783447266",
                    "imageUrl": "/public/image/v2/151d1e33-5b8b-49d1-8bff-1afc584143fd?type=l-vn-old-id-front-wavinglines",
                    "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/151d1e33-5b8b-49d1-8bff-1afc584143fd?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="<https://1723857616-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoP1M8bTYgFFHHnAdjjta%2Fuploads%2F3SW3YT4Tt8e0MQAyUO6p%2FOkayDoc%20VN%20Old%20ID%20v2.postman_collection.rar?alt=media&token=c9059ee2-499d-457c-a249-15bd02e00f16>" %}
OkayDoc VN Old IC v2
{% endfile %}

## Version 1

<mark style="color:green;">`POST`</mark> `http://okaydocdemo.innov8tif.com/ekyc/api/ekyc/v1/doc-verify/vn-old-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": "7c9cb00b-e133-4178-8e7b-514b7dfe96f4",
    "methodList": [
        {
            "method": "landmark",
            "label": "Landmark Analysis Result",
            "componentList": [
                {
                    "code": "l-vn-old-id-front-logo",
                    "label": "Logo",
                    "value": "74.92177486419678",
                    "imageUrl": "/public/image/v2/xxxxxxxxxxxxxxxxxxx?type=l-vn-old-id-front-logo",
                    "refImageUrl": null
                },
                {
                    "code": "l-vn-old-id-front-header1",
                    "label": "Header1",
                    "value": "84.9748969078064",
                    "imageUrl": "/public/image/v2/xxxxxxxxxxxxxxxxxxxxxxx?type=l-vn-old-id-front-header1",
                    "refImageUrl": null
                },
                {
                    "code": "l-vn-old-id-front-header2",
                    "label": "Header2",
                    "value": "84.71530079841614",
                    "imageUrl": "/public/image/v2/xxxxxxxxxxxxxxxxx?type=l-vn-old-id-front-header2",
                    "refImageUrl": null
                },
                {
                    "code": "l-vn-old-id-front-no",
                    "label": "No",
                    "value": "90.30178189277649",
                    "imageUrl": "/public/image/v2/xxxxxxxxxxxxxxxxx?type=l-vn-old-id-front-no",
                    "refImageUrl": null
                },
                {
                    "code": "l-vn-old-id-front-name",
                    "label": "Name",
                    "value": "88.81002068519592",
                    "imageUrl": "/public/image/v2/xxxxxxxxxxxxxxxxxxxxxx?type=l-vn-old-id-front-name",
                    "refImageUrl": null
                },
                {
                    "code": "l-vn-old-id-front-dob",
                    "label": "Date Of Birth",
                    "value": "87.4322772026062",
                    "imageUrl": "/public/image/v2/xxxxxxxxxxxxxxxxxx?type=l-vn-old-id-front-dob",
                    "refImageUrl": null
                },
                {
                    "code": "l-vn-old-id-front-pob",
                    "label": "Place Of Birth",
                    "value": "83.88580083847046",
                    "imageUrl": "/public/image/v2/xxxxxxxxxxxxxxxxx?type=l-vn-old-id-front-pob",
                    "refImageUrl": null
                },
                {
                    "code": "l-vn-old-id-front-address",
                    "label": "Address",
                    "value": "82.717764377594",
                    "imageUrl": "/public/image/v2/xxxxxxxxxxxxxxxxxxxxx?type=l-vn-old-id-front-address",
                    "refImageUrl": null
                },
                {
                    "code": "l-vn-old-id-front-backgroundlandmark",
                    "label": "Background Landmark",
                    "value": "41.22561812400818",
                    "imageUrl": "/public/image/v2/xxxxxxxxxxxxxxxxxxxxx?type=l-vn-old-id-front-backgroundlandmark",
                    "refImageUrl": null
                },
                {
                    "code": "l-vn-old-id-front-wavinglines",
                    "label": "Waving Lines",
                    "value": "75.50296783447266",
                    "imageUrl": "/public/image/v2/xxxxxxxxxxxxxxx?type=l-vn-old-id-front-wavinglines",
                    "refImageUrl": null
                }
            ]
        }
    ],
    "outputImageList": [
        {
            "tag": "cropId",
            "imageUrl": "/public/image/v2/xxxxxxxxxxxxxxxxxxxxx?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="<https://1723857616-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoP1M8bTYgFFHHnAdjjta%2Fuploads%2FxiTyPbfTIL0aIY3NkKDH%2FOkayDoc%20VN%20Old%20ID.postman_collection.rar?alt=media&token=0029335a-c495-4136-8e4a-fbc07f623d3d>" %}
OkayDoc VN Old ID Card
{% endfile %}
