> For the complete documentation index, see [llms.txt](https://docs.cleartax.in/cleartax-docs/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/cleartax-docs/clear-finance-cloud/cfc-api-reference/ingestion-api.md).

# 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 %}
