# 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="/files/IgUrguPPwM9seJH1lQDP" %}
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="/files/YhV0fVRm2USJ6RurD1Td" %}
OkayDoc VN Old ID Card
{% endfile %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://api2-ekycapis.innov8tif.com/okaydoc/okaydoc-all/supported-documents/vietnam/vn-old-id-card/versions.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
