# Input and output templates

## **Clear Purchase Document Template**

**Format**: CSV, XLS, XLSX (In the case of XLS or XLSX, Clear will read only the first sheet in the file).

**Template**:&#x20;

{% content-ref url="/pages/NeMbEIaJApkNDkBvOe6E" %}
[Purchase Document Line Object](/cleartax-docs/clear-finance-cloud/cfc-api-reference/resources-and-masters/purchase-document-line-object.md)
{% endcontent-ref %}

In addition to the fields in the Clear PR template, we support up to 10 additional fields that can be ingested into Clear as custom fields (eg. Tax codes / ERP usernames/others).

## Ingestion Error

**Format**: CSV (irrespective of the input file)

**Template with Sample Data**:&#x20;

{% file src="/files/XxbHOA1VCwLDuiFRRICl" %}

The template of the file will be the same as the input file. However, in addition to the columns in the input file, there will be 2 additional columns that have "No. of Errors" and "Error Message".

## Reconciliation Result

**Format**: GZIP File

This file will be in JSON Lines format where each line in the file is a separate JSON object.&#x20;

**Sample File**:&#x20;

{% file src="/files/sMyZIqg7FmDDhFQ2S5YX" %}

## Vendor File

**Format**: GZIP File&#x20;

**Sample File**:&#x20;

{% file src="/files/x7usRmuWwGlvwdcKAwRf" %}


---

# 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://docs.cleartax.in/cleartax-docs/max-itc-api/max-itc-api-reference/resources-and-masters/input-and-output-templates.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.
