# Versions

## Version 2&#x20;

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

#### 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 prc id card image in base64 |

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

```javascript
{
    "status": "success",
    "messageCode": "api.success",
    "message": "",
    "id": "bd0074fa-0451-4541-87da-1806fa6a4798",
    "methodList": [
        {
            "method": "landmark",
            "label": "Landmark Analysis Result",
            "componentList": [
                {
                    "code": "l-ph-postal-logo",
                    "label": "Logo",
                    "value": "41.099999999999994",
                    "imageUrl": "/public/image/v2/bd0074fa-0451-4541-87da-1806fa6a4798?type=l-ph-postal-logo",
                    "refImageUrl": null
                },
                {
                    "code": "l-ph-postal-header",
                    "label": "Header",
                    "value": "0",
                    "imageUrl": "/public/image/v2/bd0074fa-0451-4541-87da-1806fa6a4798?type=l-ph-postal-header",
                    "refImageUrl": null
                },
                {
                    "code": "l-ph-postal-philpost",
                    "label": "Philpost",
                    "value": "47.21",
                    "imageUrl": "/public/image/v2/bd0074fa-0451-4541-87da-1806fa6a4798?type=l-ph-postal-philpost",
                    "refImageUrl": null
                }
            ]
        },
        {
            "method": "hologram",
            "label": "Hologram",
            "componentList": [
                {
                    "code": "hologram",
                    "label": "Hologram",
                    "value": "Pass",
                    "imageUrl": "/public/image/v2/bd0074fa-0451-4541-87da-1806fa6a4798?type=hologram",
                    "refImageUrl": null
                }
            ]
        },
        {
            "method": "idBlurDetection",
            "label": "ID Blur Detection",
            "componentList": [
                {
                    "code": "idBlurDetection",
                    "label": "ID Blur Detection",
                    "value": "Pass",
                    "imageUrl": null,
                    "refImageUrl": null
                }
            ]
        },
        {
            "method": "idBrightnessDetc",
            "label": "ID Brightness Detection",
            "componentList": [
                {
                    "code": "idBrightnessDetc",
                    "label": "ID Brightness Detection",
                    "value": "Pass",
                    "imageUrl": null,
                    "refImageUrl": null
                }
            ]
        },
        {
            "method": "colorMode",
            "label": "Color Mode",
            "componentList": [
                {
                    "code": "colorMode",
                    "label": "Color Mode",
                    "value": "Pass",
                    "imageUrl": null,
                    "refImageUrl": null
                }
            ]
        },
        {
            "method": "screen",
            "label": "Screen Detection",
            "componentList": [
                {
                    "code": "screen",
                    "label": "Screen Detection",
                    "value": "Pass",
                    "imageUrl": null,
                    "refImageUrl": null
                }
            ]
        }
    ],
    "outputImageList": [
        {
            "tag": "cropId",
            "imageUrl": "/public/image/v2/bd0074fa-0451-4541-87da-1806fa6a4798?type=cropId"
        }
    ]
}
```

{% endtab %}

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

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

{% endtab %}

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

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

{% endtab %}
{% endtabs %}

## Version 1

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

#### 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 prc id card image in base64 |

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

```javascript
{
    "status": "success",
    "messageCode": "api.success",
    "message": "",
    "id": "4535411b-f833-4d8d-872a-42b22890dc04",
    "methodList": [
        {
            "method": "landmark",
            "label": "Landmark Analysis Result",
            "componentList": [
                {
                    "code": "l-ph-postal-logo",
                    "label": "Logo",
                    "value": "0",
                    "imageUrl": "/public/image/v2/4535411b-f833-4d8d-872a-42b22890dc04?type=l-ph-postal-logo",
                    "refImageUrl": null
                },
                {
                    "code": "l-ph-postal-header",
                    "label": "Header",
                    "value": "0",
                    "imageUrl": "/public/image/v2/4535411b-f833-4d8d-872a-42b22890dc04?type=l-ph-postal-header",
                    "refImageUrl": null
                },
                {
                    "code": "l-ph-postal-philpost",
                    "label": "Philpost",
                    "value": "39.269999999999996",
                    "imageUrl": "/public/image/v2/4535411b-f833-4d8d-872a-42b22890dc04?type=l-ph-postal-philpost",
                    "refImageUrl": null
                }
            ]
        },
        {
            "method": "idBlurDetection",
            "label": "ID Blur Detection",
            "componentList": [
                {
                    "code": "idBlurDetection",
                    "label": "ID Blur Detection",
                    "value": "Pass",
                    "imageUrl": null,
                    "refImageUrl": null
                }
            ]
        },
        {
            "method": "idBrightnessDetc",
            "label": "ID Brightness Detection",
            "componentList": [
                {
                    "code": "idBrightnessDetc",
                    "label": "ID Brightness Detection",
                    "value": "Pass",
                    "imageUrl": null,
                    "refImageUrl": null
                }
            ]
        },
        {
            "method": "colorMode",
            "label": "Color Mode",
            "componentList": [
                {
                    "code": "colorMode",
                    "label": "Color Mode",
                    "value": "Pass",
                    "imageUrl": null,
                    "refImageUrl": null
                }
            ]
        },
        {
            "method": "screen",
            "label": "Screen Detection",
            "componentList": [
                {
                    "code": "screen",
                    "label": "Screen Detection",
                    "value": "Pass",
                    "imageUrl": null,
                    "refImageUrl": null
                }
            ]
        }
    ],
    "outputImageList": [
        {
            "tag": "cropId",
            "imageUrl": "/public/image/v2/4535411b-f833-4d8d-872a-42b22890dc04?type=cropId"
        }
    ]
}
```

{% endtab %}

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

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

{% endtab %}

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

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

{% endtab %}
{% endtabs %}

#### Postman Collection&#x20;

{% file src="<https://1723857616-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoP1M8bTYgFFHHnAdjjta%2Fuploads%2FI3wS00uoTXUTYwH1UMnz%2FPH%20-%20Postal%20ID%20v1.postman_collection.rar?alt=media&token=9b8495c8-4905-4233-944d-4643d9a7d3ca>" %}
OkayDoc-PH-Postal ID v1
{% endfile %}
