> 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/okayid-lite/okayid-lite-all/malaysias-lhdn-document-beta.md).

# Malaysia's LHDN Document (BETA)

<mark style="color:green;">`POST`</mark> `https://okayiddemo.innov8tif.com/okayidapi/ocr/v1/lhdn`

#### Request Body

| Name                                                | Type   | Description                   |
| --------------------------------------------------- | ------ | ----------------------------- |
| base64InputString<mark style="color:red;">\*</mark> | string | Base64 string of the PDF file |
| apiKey<mark style="color:red;">\*</mark>            | string | To be provided by Innov8tif   |
| inputType<mark style="color:red;">\*</mark>         | string | Format of the submitted file  |

{% tabs %}
{% tab title="200: OK Successfully Response" %}
{% code title="Successfully Response" %}

```javascript
{
    "status": "success",
    "message": null,
    "result": [
        {
            "ListVerifiedFields": {
                "pFieldMaps": [
                    {
                        "wLCID": 0,
                        "FieldType": 20000,
                        "wFieldType": 20000,
                        "Field_MRZ": null,
                        "Field_Visual": "4xxxx3",
                        "Matrix": null
                    },
                    {
                        "wLCID": 0,
                        "FieldType": 20001,
                        "wFieldType": 20001,
                        "Field_MRZ": null,
                        "Field_Visual": "4xxxx0",
                        "Matrix": null
                    },
                    {
                        "wLCID": 0,
                        "FieldType": 25,
                        "wFieldType": 25,
                        "Field_MRZ": null,
                        "Field_Visual": "Leong",
                        "Matrix": null
                    },
                    {
                        "wLCID": 0,
                        "FieldType": 2,
                        "wFieldType": 2,
                        "Field_MRZ": null,
                        "Field_Visual": "910341103912",
                        "Matrix": null
                    },
                    {
                        "wLCID": 0,
                        "FieldType": 20002,
                        "wFieldType": 20002,
                        "Field_MRZ": null,
                        "Field_Visual": "BE2040244",
                        "Matrix": null
                    },
                    {
                        "wLCID": 0,
                        "FieldType": 20003,
                        "wFieldType": 20003,
                        "Field_MRZ": null,
                        "Field_Visual": "1000.00",
                        "Matrix": null
                    },
                    {
                        "wLCID": 0,
                        "FieldType": 20004,
                        "wFieldType": 20004,
                        "Field_MRZ": null,
                        "Field_Visual": "1000.04",
                        "Matrix": null
                    },
                    {
                        "wLCID": 0,
                        "FieldType": 20005,
                        "wFieldType": 20005,
                        "Field_MRZ": null,
                        "Field_Visual": "1000.04",
                        "Matrix": null
                    },
                    {
                        "wLCID": 0,
                        "FieldType": 20006,
                        "wFieldType": 20006,
                        "Field_MRZ": null,
                        "Field_Visual": "200.04",
                        "Matrix": null
                    },
                    {
                        "wLCID": 0,
                        "FieldType": 20007,
                        "wFieldType": 20007,
                        "Field_MRZ": null,
                        "Field_Visual": "SG987343230",
                        "Matrix": null
                    },
                    {
                        "wLCID": 0,
                        "FieldType": 20008,
                        "wFieldType": 20008,
                        "Field_MRZ": null,
                        "Field_Visual": "Balance Of Tax Payable",
                        "Matrix": null
                    }
                ]
            }
        }
    ],
    "documentType": "LHDN Statement"
}
```

{% endcode %}
{% endtab %}

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

```javascript
{
    status:"error"
}
```

{% endtab %}
{% endtabs %}

{% hint style="warning" %}
This API currently can only support PDF format
{% endhint %}
