> For the complete documentation index, see [llms.txt](https://docs.cleartax.in/product-help-and-support/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cleartax.in/product-help-and-support/for-large-businesses/e-invoicing/custom-field-custom-e-invoicing-field-setup.md).

# Custom Field - Custom E-Invoicing Field Setup

**Setting Up Custom Fields in the Invoicing Utility**

This tutorial will guide you through the process of setting up custom fields in the invoicing utility. By the end of this guide, you'll be able to add and configure custom fields to tailor your invoicing process to your specific needs.

{% embed url="<https://youtu.be/nvSQDKKjd_k?si=1SfdpjxWtgZXqBaF>" %}
Learn how to add and configure custom fields for your e-invoices
{% endembed %}

{% stepper %}
{% step %}
Go to the **invoicing product** and then proceed to **settings**.

![](/files/5K0JFDx4UJhn1ZsDplJJ)

{% endstep %}

{% step %}
Click on **"Custom Fields"** setting option.

![](/files/CYVBOT6zaPKUQXe7GhDZ)

{% endstep %}

{% step %}
From the **template drop-down**, select **'invoice'**. Then, choose the appropriate **business** classification.

There are two levels of classification to note:

\- Document level

\- Line item level

![](/files/EkUqyZ3ceaVNrWPJJJoC)
{% endstep %}

{% step %}
Refer to the prepared Excel sheet. This sheet includes two additional columns:

\- Unique Identification Number (UIN) at the document level - Product code at the line item level

![](/files/7zD4Ei34Ma4z4tk8afd3)

These columns represent custom fields that aren't part of the standard Clear Tax variables.

Copy the variable names from the Excel sheet.
{% endstep %}

{% step %}
In the **custom field settings**, locate the document level header classification. Use **custom field four** to declare the header variable at the document level. Save the changes.

![](/files/HVDQ1JwIDhi9IrIDeqlU)
{% endstep %}

{% step %}
Update the line item variable using **line item field two**. Save the changes.

![](/files/Oargv3cfmsRQMlc6GrID)

{% endstep %}

{% step %}
When the headers for both document and line item levels are updated in the custom Excel sheet, the data will be captured accordingly.

Navigate to **invoices** and select the **import option**.

![](/files/bSsFu2SyirNqStesKVkF)

{% endstep %}

{% step %}
Check the file for errors and duplicates, then proceed with the import.

![](/files/0DnEb0i7wuo2YzK9WnYK)

{% endstep %}

{% step %}
The imported invoices will now include datasets with the custom variables at both document and line item levels.
{% endstep %}
{% endstepper %}

By following these steps, you've successfully added custom field variables to your Excel sheet, modified them, and integrated them into Clear Tax under the custom field settings. Thank you!


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.cleartax.in/product-help-and-support/for-large-businesses/e-invoicing/custom-field-custom-e-invoicing-field-setup.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
