# 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="ingestion-api/ingest-documents-via-file" %}
[ingest-documents-via-file](https://docs.cleartax.in/cleartax-docs/clear-finance-cloud/cfc-api-reference/ingestion-api/ingest-documents-via-file)
{% 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="ingestion-api/deprecated-ingest-documents-via-json" %}
[deprecated-ingest-documents-via-json](https://docs.cleartax.in/cleartax-docs/clear-finance-cloud/cfc-api-reference/ingestion-api/deprecated-ingest-documents-via-json)
{% endcontent-ref %}
