# Ingestion API

**GST Applicability**: A document can be an invoice, and its related credit note, debit note, or advance. It can also be a bill of supply, and its related credit note, debit note, or advance.

**Direction**: It can be either a sale (outward) or a purchase (inward).

**Amendment**: It can be an original document or an amendment document.

Clear Finance Cloud provides only 1 option to ingest documents:

### Ingest Documents via File API

{% hint style="success" %}
Ingest Documents via File API is the **most recommended** option since it supports uploading documents in the bulk of up to 30 lakh document line items in one workflow which will typically take around 15 mins to complete.
{% endhint %}

{% content-ref url="/pages/YG6NsqYn4qCVm817bt8t" %}
[Ingest Documents via File](/cleartax-docs/clear-finance-cloud/cfc-api-reference/ingestion-api/ingest-documents-via-file.md)
{% endcontent-ref %}

### (Deprecated) Ingest Documents via JSON API

{% hint style="warning" %}
Ingest Documents via JSON API is the least recommended option since each request can handle only 100 document line items and can take a long time to upload all documents in batches.
{% endhint %}

<mark style="color:red;">**This API is deprecated and no more supported due to scaling issues.**</mark>

{% content-ref url="/pages/TZ219JIozvgml60iIBTZ" %}
[(Deprecated) Ingest Documents via JSON](/cleartax-docs/clear-finance-cloud/cfc-api-reference/ingestion-api/deprecated-ingest-documents-via-json.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/clear-finance-cloud/cfc-api-reference/ingestion-api.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.
