# Ingest Deductions via File

A file can contain multiple deductions. Each deduction can be for an invoice or for an advance payment. If there are multiple deductions for the same invoice or payment, each deduction represents one row in the file.

A file can contain documents belonging to the same TAN.

To upload a file, the following 4 APIs are to be used in the same order:

{% content-ref url="/pages/eOOrny52YxMRaoDTte7J" %}
[Get Pre-signed URL](/cleartax-docs/tds-api/tds-api-reference/tds-apis/upload-deductions/ingest-deductions-via-file/get-pre-signed-url.md)
{% endcontent-ref %}

{% content-ref url="/pages/tkVhu4yaoUVTZWb2zjeI" %}
[Upload File to Storage](/cleartax-docs/clear-finance-cloud/cfc-api-reference/ingestion-api/ingest-documents-via-file/upload-file-to-storage.md)
{% endcontent-ref %}

{% content-ref url="/pages/OtDLJWWRNcaE24cqbUMO" %}
[Trigger File Ingestion](/cleartax-docs/tds-api/tds-api-reference/tds-apis/upload-deductions/ingest-deductions-via-file/trigger-file-ingestion.md)
{% endcontent-ref %}

{% content-ref url="/pages/3tmF6QK1zeWG3sGcvO4U" %}
[Get File Ingestion Status](/cleartax-docs/tds-api/tds-api-reference/tds-apis/upload-deductions/ingest-deductions-via-file/get-file-ingestion-status.md)
{% endcontent-ref %}


---

# 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/tds-api/tds-api-reference/tds-apis/upload-deductions/ingest-deductions-via-file.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.
